Commit 56f3d2b0c63f301a16d198886d545bbeb93da91d
1 parent
bb275368
Exists in
master
and in
1 other branch
passwords forms using evergreen and semi_formal
Showing
2 changed files
with
34 additions
and
0 deletions
Show diff stats
| @@ -0,0 +1,19 @@ | @@ -0,0 +1,19 @@ | ||
| 1 | +<h2>Change your password</h2> | ||
| 2 | + | ||
| 3 | +<p> | ||
| 4 | + Your password has been reset. Choose a new password below. | ||
| 5 | +</p> | ||
| 6 | + | ||
| 7 | +<% form_for(:user, | ||
| 8 | + :url => user_password_path(@user, :token => @user.token), | ||
| 9 | + :html => { :method => :put }) do |form| %> | ||
| 10 | + <fieldset class="inputs"> | ||
| 11 | + <%= form.error_messages %> | ||
| 12 | + <%= form.password :password %> | ||
| 13 | + <%= form.password :password_confirmation %> | ||
| 14 | + </fieldset> | ||
| 15 | + <fieldset class="buttons"> | ||
| 16 | + <%= form.submit "Save this password", :disable_with => "Please wait..." %> | ||
| 17 | + </fieldset> | ||
| 18 | +<% end %> | ||
| 19 | + |
| @@ -0,0 +1,15 @@ | @@ -0,0 +1,15 @@ | ||
| 1 | +<h2>Reset your password</h2> | ||
| 2 | + | ||
| 3 | +<p> | ||
| 4 | + We will email you a link to reset your password. | ||
| 5 | +</p> | ||
| 6 | + | ||
| 7 | +<% form_for :password, :url => passwords_path do |form| %> | ||
| 8 | + <fieldset class="inputs"> | ||
| 9 | + <%= form.string :email %> | ||
| 10 | + </fieldset> | ||
| 11 | + <fieldset class="buttons"> | ||
| 12 | + <%= form.submit "Reset password", :disable_with => "Please wait..." %> | ||
| 13 | + </fieldset> | ||
| 14 | +<% end %> | ||
| 15 | + |