admin a11y polish

This commit is contained in:
Mark Moser
2017-05-01 16:17:41 -05:00
parent 9368184aa8
commit b961fe7553
8 changed files with 23 additions and 14 deletions

View File

@ -27,16 +27,18 @@
<% if current_user.acts_as_manager? %>
<div>
<%= form_tag admin_interview_path(test_hash: @candidate.test_hash) do %>
<strong>Interview: </strong>
<div role="group" aria-labelledby="interview-status">
<strong id="interview-status">Interview: </strong>
<%= radio_button_tag :review_status, :approved, checked = @candidate.approved? %>
<%= label_tag :review_status_approved, "Yes" %>
<%= radio_button_tag :review_status, :approved, checked = @candidate.approved? %>
<%= label_tag :review_status_approved, "Yes" %>
<%= radio_button_tag :review_status, :declined, checked = @candidate.declined? %>
<%= label_tag :review_status_declined, "No" %>
<%= radio_button_tag :review_status, :declined, checked = @candidate.declined? %>
<%= label_tag :review_status_declined, "No" %>
</div>
<div>
<span>Review comments for recruiter</span>
<%= label_tag :review_comments, "Review comments for recruiter" %>
<%= text_area_tag :review_comments, @candidate.review_comments %>
<%= submit_tag 'Send Request' %>
</div>

View File

@ -18,11 +18,12 @@
</div>
<% @quiz.each do |question| %>
<%= form_for(:answer, url: '#never-post', html:{id: 'summary-form'}) do |form| %>
<%= form_for(:answer, url: '#never-post', html:{id: "summary-#{question.to_i}"}) do |form| %>
<h2><%= question.question %></h2>
<%= image_tag question.attachment if question.attachment.present? %>
<fieldset disabled>
<legend>Response</legend>
<%= render partial: "quiz/#{question.input_type}", locals: {question: question, answer: question.answer, form: form} %>
</fieldset>
<% end %>