generated from microverseinc/readme-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5300b0b
commit 57312de
Showing
15 changed files
with
352 additions
and
162 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
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,31 @@ | ||
<%# <%= render "layouts/signup" %> | ||
<div class="container d-flex flex-column justify-content-center align-items-center"> | ||
|
||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
|
||
<div class="field mt-2 mb-2"> | ||
<%= f.text_field :name, autofocus: true, autocomplete: "name", placeholder: "Full Name" %> | ||
</div> | ||
|
||
<div class="field mb-2"> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "Email" %> | ||
</div> | ||
|
||
<div class="field mb-2"> | ||
<%= f.label :password %> | ||
<% if @minimum_password_length %> | ||
<em>(<%= @minimum_password_length %> characters minimum)</em> | ||
<% end %><br /> | ||
<%= f.password_field :password, autocomplete: "new-password", placeholder: "******" %> | ||
<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> | ||
<div class="sign-up-header"> | ||
<%= link_to 'Back', root_path, class: 'go-back' %> | ||
<h2>REGISTER</h2> | ||
<div class="submit"> | ||
<%= f.submit "Sign up" %> | ||
</div> | ||
</div> | ||
|
||
<div class="field mb-2"> | ||
<%= f.label :password_confirmation %><br /> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password", placeholder: "******" %> | ||
</div> | ||
|
||
<div class="actions mb-5"> | ||
<%= f.submit "Sign up" %> | ||
<%= render "devise/shared/error_messages", resource: resource %> | ||
<div class='form-inputs'> | ||
<div class='div-input'> | ||
<%= f.text_field :name, autofocus: true, autocomplete: "name", placeholder: "Full Name" %> | ||
</div> | ||
<div class='div-input'> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "Email" %> | ||
</div> | ||
<div class='div-input'> | ||
<%= f.label :password %> | ||
<% if @minimum_password_length %> | ||
<em>(<%= @minimum_password_length %> characters minimum)</em> | ||
<% end %><br /> | ||
<%= f.password_field :password, autocomplete: "new-password", placeholder: "******" %> | ||
</div> | ||
<div class='div-input'> | ||
<%= f.label :password_confirmation %><br /> | ||
<%= f.password_field :password_confirmation, autocomplete: "new-password", placeholder: "******" %> | ||
</div> | ||
</div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> | ||
</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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
<h2>Log in</h2> | ||
|
||
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> | ||
<div class="field"> | ||
<%= f.label :email %><br /> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
|
||
<div class="field"> | ||
<%= f.label :password %><br /> | ||
<%= f.password_field :password, autocomplete: "current-password" %> | ||
<div class="sign-up-header"> | ||
<%= link_to 'Back', root_path, class: 'go-back' %> | ||
<h2>LOG IN</h2> | ||
<div class="submit"> | ||
<%= f.submit "Log in" %> | ||
</div> | ||
</div> | ||
|
||
<% if devise_mapping.rememberable? %> | ||
<div class="field"> | ||
<%= f.check_box :remember_me %> | ||
<%= f.label :remember_me %> | ||
<div class='form-inputs'> | ||
<div class="div-input"> | ||
<%= f.label :email %><br /> | ||
<%= f.email_field :email, autofocus: true, autocomplete: "email" %> | ||
</div> | ||
<div class="div-input"> | ||
<%= f.label :password %><br /> | ||
<%= f.password_field :password, autocomplete: "current-password" %> | ||
</div> | ||
<% end %> | ||
|
||
<div class="actions"> | ||
<%= f.submit "Log in" %> | ||
<% if devise_mapping.rememberable? %> | ||
<div class="div-input check-box"> | ||
<%= f.check_box :remember_me %> | ||
<%= f.label :remember_me %> | ||
</div> | ||
<% end %> | ||
</div> | ||
<% end %> | ||
|
||
<%= render "devise/shared/links" %> |
Oops, something went wrong.