2016-08-19 16:42:06 -05:00
|
|
|
<%= render partial: 'shared/form_model_errors', locals: { obj: user} %>
|
2016-08-18 18:22:57 -05:00
|
|
|
<%= form_for user, url: action do |form| %>
|
|
|
|
<div class="form-group">
|
|
|
|
<%= form.label :name, "Full Name" %>
|
|
|
|
<%= form.text_field :name %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<%= form.label :email, "eMail" %>
|
|
|
|
<%= form.email_field :email %>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<%= form.label :role, "Role" %>
|
|
|
|
<%= form.select :role, admin_role_options(user.role), include_blank: false %>
|
|
|
|
</div>
|
2016-08-18 15:35:17 -05:00
|
|
|
|
2016-08-18 18:22:57 -05:00
|
|
|
<%= form.submit %>
|
2016-08-18 15:35:17 -05:00
|
|
|
<% end %>
|