NEW: styling (#5)
This commit is contained in:
parent
26995d72e3
commit
2b8a6a1927
13 changed files with 175 additions and 118 deletions
|
@ -1,22 +1,30 @@
|
|||
<h1>Reset password</h1>
|
||||
<h1 class="title is-1">Reset password</h1>
|
||||
|
||||
<%= form_for @changeset, Routes.user_reset_password_path(@conn, :update, @token), fn f -> %>
|
||||
<%= if @changeset.action do %>
|
||||
<div class="alert alert-danger">
|
||||
<div class="help is-danger">
|
||||
<p>Oops, something went wrong! Please check the errors below.</p>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<%= label f, :password, "New password" %>
|
||||
<%= password_input f, :password, required: true %>
|
||||
<%= error_tag f, :password %>
|
||||
<div class="field">
|
||||
<%= label f, :password, "New password", class: "label" %>
|
||||
<div class="control">
|
||||
<%= password_input f, :password, required: true, class: "input" %>
|
||||
</div>
|
||||
<%= error_tag f, :password %>
|
||||
</div>
|
||||
|
||||
<%= label f, :password_confirmation, "Confirm new password" %>
|
||||
<%= password_input f, :password_confirmation, required: true %>
|
||||
<%= error_tag f, :password_confirmation %>
|
||||
<div class="field">
|
||||
<%= label f, :password_confirmation, "Confirm new password", class: "label" %>
|
||||
<div class="control">
|
||||
<%= password_input f, :password_confirmation, required: true, class: "input" %>
|
||||
</div>
|
||||
<%= error_tag f, :password_confirmation %>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%= submit "Reset password" %>
|
||||
<%= submit "Reset password", class: "button is-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
<h1>Forgot your password?</h1>
|
||||
<h1 class="title is-1">Forgot your password?</h1>
|
||||
|
||||
<%= form_for :user, Routes.user_reset_password_path(@conn, :create), fn f -> %>
|
||||
<%= label f, :email %>
|
||||
<%= text_input f, :email, required: true %>
|
||||
<div class="field">
|
||||
<%= label f, :email, class: "label" %>
|
||||
<div class="control">
|
||||
<%= text_input f, :email, required: true, class: "input" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<%= submit "Send instructions to reset password" %>
|
||||
<%= submit "Send instructions to reset password", class: "button is-primary" %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue