skill-assessment-app/app/views/admin/profile/edit.html.erb
2017-06-05 11:30:35 -05:00

33 lines
751 B
Plaintext

<%
content_for :section_title, "Edit: #{@user.name}"
content_for :title, "Profile - Skills Assessment Admin"
%>
<h1>Edit Profile</h1>
<%= render partial: 'shared/form_model_errors', locals: {obj: @user} %>
<%= form_for @user, url: admin_profile_url, method: :post do |form| %>
<div>
<%= form.label :name, "Full Name" %>
<%= form.text_field :name %>
</div>
<div>
<%= form.label :email, "eMail" %>
<%= form.email_field :email %>
</div>
<div>
<%= form.label :password, "New Password" %>
<%= form.password_field :password %>
</div>
<div>
<%= form.label :password_confirmation, "New Password Confirmation" %>
<%= form.password_field :password_confirmation %>
</div>
<%= form.submit %>
<% end %>