2016-08-19 16:42:06 -05:00
|
|
|
<%= render partial: 'shared/form_model_errors', locals: { obj: user} %>
|
2017-03-20 10:57:50 -05:00
|
|
|
|
2016-08-18 18:22:57 -05:00
|
|
|
<%= form_for user, url: action do |form| %>
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2016-08-18 18:22:57 -05:00
|
|
|
<%= form.label :name, "Full Name" %>
|
|
|
|
<%= form.text_field :name %>
|
|
|
|
</div>
|
|
|
|
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2016-08-18 18:22:57 -05:00
|
|
|
<%= form.label :email, "eMail" %>
|
|
|
|
<%= form.email_field :email %>
|
|
|
|
</div>
|
|
|
|
|
2017-03-20 10:57:50 -05:00
|
|
|
<div>
|
2016-08-18 18:22:57 -05:00
|
|
|
<%= form.label :role, "Role" %>
|
|
|
|
<%= form.select :role, admin_role_options(user.role), include_blank: false %>
|
|
|
|
</div>
|
2016-08-18 15:35:17 -05:00
|
|
|
|
2017-05-01 16:17:41 -05:00
|
|
|
<div role="group" aria-labelledby="assigned-quiz-list">
|
|
|
|
<div id="assigned-quiz-list"><strong>Quiz Review List</strong></div>
|
2016-11-20 09:51:46 -06:00
|
|
|
<p>
|
|
|
|
Quizzes this user should be reviewing the results of.<br />
|
|
|
|
Admins and Recruiters should not have any checked, unless they are expected
|
|
|
|
to participate in the technical review for that quiz.
|
|
|
|
</p>
|
2017-03-20 10:57:50 -05:00
|
|
|
|
2017-05-01 16:17:41 -05:00
|
|
|
<%= hidden_field_tag('user[quiz_ids][]') %>
|
2017-03-20 10:57:50 -05:00
|
|
|
<ul>
|
2017-05-01 16:17:41 -05:00
|
|
|
<%= form.collection_check_boxes(:quiz_ids, Quiz.all, :id, :name, {include_hidden: false}, {class: ""}) do | quiz | %>
|
2017-03-20 10:57:50 -05:00
|
|
|
<li>
|
|
|
|
<%= quiz.check_box( checked: user.quizzes.include?(quiz.object)) %>
|
|
|
|
<%= quiz.label %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2016-11-20 09:51:46 -06:00
|
|
|
</div>
|
2016-09-15 16:11:44 -05:00
|
|
|
|
2016-08-18 18:22:57 -05:00
|
|
|
<%= form.submit %>
|
2016-08-18 15:35:17 -05:00
|
|
|
<% end %>
|