Created
January 31, 2021 01:19
-
-
Save mrjonesbot/bb47d1d7bc9f88691023733823c0df98 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| <% content_for :form_block do %> | |
| <h2 class="mb-4">Log in</h2> | |
| <%= form_with( | |
| model: resource, | |
| as: resource_name, | |
| url: session_path(resource_name), | |
| data: { controller: 'reset_form', action: 'turbo:submit-end->reset_form#reset' } | |
| ) do |f| %> | |
| <div class="form-group"> | |
| <%= f.label :email %> | |
| <%= f.email_field :email, autofocus: true, autocomplete: "email", placeholder: "[email protected]", class: "form-control" %> | |
| </div> | |
| <div class="form-group"> | |
| <%= f.label :password %> | |
| <%= f.password_field :password, autocomplete: "off", placeholder: "password", class: "form-control" %> | |
| </div> | |
| <% if devise_mapping.rememberable? -%> | |
| <div class="form-group flex flex-wrap items-center"> | |
| <%= f.check_box :remember_me %> | |
| <%= f.label :remember_me, class: "ml-2 mt-2" %> | |
| </div> | |
| <% end -%> | |
| <div class="form-group"> | |
| <%= f.submit "Log in", class: "btn btn-primary" %> | |
| </div> | |
| <% end %> | |
| <%= render "devise/shared/links" %> | |
| <% end %> | |
| <%= render "devise/shared/form_block" %> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment