2020-03-06 12:11:38 +03:00
|
|
|
<%= form_for @conn, "/password", [class: "bg-white max-w-md w-full mx-auto shadow-md rounded px-8 py-6 mt-8"], fn f -> %>
|
|
|
|
<h2 class="text-xl font-black">Set your password</h2>
|
2019-09-02 14:29:19 +03:00
|
|
|
<div class="my-4">
|
2020-03-06 12:11:38 +03:00
|
|
|
<p class="text-gray-600 text-sm mt-1 mb-2">Min 6 characters</p>
|
2020-03-26 15:22:48 +03:00
|
|
|
<%= password_input f, :password, class: "transition bg-gray-100 appearance-none border border-transparent rounded w-full p-2 text-gray-700 leading-normal appearance-none focus:outline-none focus:bg-white focus:border-gray-300" %>
|
2019-09-02 14:29:19 +03:00
|
|
|
<%= if @conn.assigns[:changeset] do %>
|
|
|
|
<%= error_tag @changeset, :password %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<%= submit "Set password →", class: "button mt-4 w-full" %>
|
2020-03-06 12:11:38 +03:00
|
|
|
<p class="text-center text-gray-600 text-xs mt-4">
|
2019-09-02 14:29:19 +03:00
|
|
|
Don't have an account? <%= link("Register", to: "/register") %> instead.
|
|
|
|
</p>
|
|
|
|
<% end %>
|