Created
March 4, 2020 17:31
-
-
Save minimul/ba7ae1341be449e1fee34e1e86aa33fb to your computer and use it in GitHub Desktop.
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
<%= render 'devise/shared/form_shell', captured: capture { %> | |
<%= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f| %> | |
<div class="field"> | |
<%= f.label :email, class: tw_label %> | |
<%= tw_form_field_wrap f.email_field :email, autofocus: true, autocomplete: "email", class: tw_field %> | |
</div> | |
<div class="field"> | |
<%= f.label :password, class: tw_label %> | |
<%= tw_form_field_wrap f.password_field :password, autocomplete: "current-password", class: tw_field %> | |
</div> | |
<% if devise_mapping.rememberable? %> | |
<div class="flex items-center my-4"> | |
<%= f.check_box :remember_me, class: "form-checkbox h-4 w-4 text-teal-600 transition duration-150 ease-in-out" %> | |
<%= f.label :remember_me, class: "ml-2 block text-sm leading-5 text-gray-900" %> | |
</div> | |
<% end %> | |
<div class="actions"> | |
<%= f.submit "Log in", class: tw_full_width_button %> | |
</div> | |
<% end %> | |
<% } %> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment