This repository has been archived on 2024-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
redstoner.com/app/views/users/edit_login.html.erb
2018-03-12 19:26:55 -04:00

39 lines
935 B
Plaintext

<% title "Edit Login Credentials: #{@user.name}" %>
<%= link_to @user.name, @user %> → Edit Login credentials
<h1>Edit Login Credentials</h1>
<%= form_for @user, url: update_login_user_path(@user), method: :put do |f| %>
<table>
<tbody>
<tr>
<td>New email</td>
<td>
<%= f.text_field :email %>
</td>
</tr>
<tr>
<td>New password</td>
<td>
<%= f.password_field :password %>
</td>
</tr>
<tr>
<td>Repeat new password</td>
<td>
<%= f.password_field :password_confirmation %>
</td>
</tr>
<tr>
<td>Current password</td>
<td>
<%= password_field_tag :current_password, nil, disabled: !@user.is?(current_user) %>
</td>
</tr>
</tbody>
</table>
<p><%= f.submit "Save Changes", class: "btn blue left" %></p>
<div class="clear"></div>
<% end %>