evodata/app/views/passwords/new.html.erb

30 lines
1.4 KiB
Plaintext

<div class="min-h-full flex flex-col justify-center py-12 sm:px-6 lg:px-8">
<div class="sm:mx-auto sm:w-full sm:max-w-md">
<h2 class="text-center text-3xl font-extrabold text-gray-900">
Forgot your password?
</h2>
<p class="mt-2 text-center text-sm text-gray-600">
Or
<%= link_to "back to sign-in", login_path, class: "font-medium text-indigo-600 hover:text-indigo-500" %>
</p>
</div>
<div class="mt-8 sm:mx-auto sm:w-full sm:max-w-md">
<div class="bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10">
<%= form_with url: passwords_path, scope: :user, class: "space-y-6" do |form| %>
<div>
<%= form.label :email, class: "block text-sm font-medium text-gray-700" do %>
Email address
<% end %>
<div class="mt-1">
<%= form.text_field :email, required: true, autocomplete: "email", class: "appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" %>
</div>
</div>
<div>
<%= form.submit "Reset Password", class: "w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500" %>
</div>
<% end %>
</div>
</div>
</div>