generated from microverseinc/readme-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style: add common bootstrap CDN and style the user signup view
- Loading branch information
1 parent
8ecd8e7
commit 3acc8e0
Showing
2 changed files
with
41 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,40 @@ | ||
<h2>Sign up</h2> | ||
<div class="container mt-5"> | ||
<div class="row justify-content-center"> | ||
<div class="col-md-6 col-lg-4"> | ||
<h2 class="text-center mb-4">Sign up</h2> | ||
|
||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { class: 'needs-validation', novalidate: true }) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
|
||
<div class="field"> | ||
<%= f.label :name %><br /> | ||
<%= f.text_field :name, autocomplete: "name" %> | ||
</div> | ||
<div class="form-group"> | ||
<%= f.label :name %> | ||
<%= f.text_field :name, class: 'form-control', autocomplete: 'name', required: true %> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :email %><br /> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
<div class="form-group"> | ||
<%= f.label :email %> | ||
<%= f.email_field :email, class: 'form-control', autofocus: true, autocomplete: 'email', required: true %> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :password %> | ||
<% if @minimum_password_length %> | ||
<em>(<%= @minimum_password_length %> characters minimum)</em> | ||
<% end %><br /> | ||
<%= f.password_field :password, autocomplete: "new-password" %> | ||
</div> | ||
<div class="form-group"> | ||
<%= f.label :password %> | ||
<% if @minimum_password_length %> | ||
<small class="text-muted">(<%= @minimum_password_length %> characters minimum)</small> | ||
<% end %> | ||
<%= f.password_field :password, class: 'form-control', autocomplete: 'new-password', required: true %> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :password_confirmation %><br /> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password" %> | ||
</div> | ||
<div class="form-group"> | ||
<%= f.label :password_confirmation %> | ||
<%= f.password_field :password_confirmation, class: 'form-control', autocomplete: 'new-password', required: true %> | ||
</div> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Sign up" %> | ||
</div> | ||
<% end %> | ||
<div class="text-center"> | ||
<%= f.submit "Sign up", class: 'btn btn-primary' %> | ||
</div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> | ||
<%= render "devise/shared/links" %> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,14 @@ | |
<html> | ||
<head> | ||
<title>RecipesApp</title> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="description" content="blog app" /> | ||
<meta name="author" content="Demes Ameneshoa and Arthur Iturres" /> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" | ||
crossorigin="anonymous" | ||
/> | ||
<%= csrf_meta_tags %> | ||
<%= csp_meta_tag %> | ||
|
||
|