skill-assessment-app/app/views/candidate/question.html.erb

38 lines
1.1 KiB
Plaintext
Raw Normal View History

2016-07-27 22:16:12 -05:00
<%
content_for :title, "Skills Assessment"
content_for :category, @question.category
content_for :footer_title, "Skills Assessment"
%>
<form method="post" action="/question">
<main class="questions_tpl">
<h2 class="question-text"><%= @question.question %></h2>
<%= render partial: "questions/#{@question.input_type}" %>
<% if @status.on_summary %>
<div class="btn-container-summary">
<input type="submit" name="update" value="Save and return to summary">
</div>
<% else %>
<div class="btn-container-left">
<input type="submit" name="save" value="Save">
</div>
<div class="btn-container-right">
<input type="submit" name="submit" value="Next">
</div>
<% end %>
</main>
</form>
2016-07-27 22:53:14 -05:00
<% unless @status.on_summary %>
<div class="progress ignore-margin">
<div class="progress-bar" role="progressbar" aria-valuenow="<%= @status.progress %>"
aria-valuemin="0" aria-valuemax="100" style="width: <%= @status.progress %>%">
<span><%= @status.progress %>%</span>
2016-07-27 22:16:12 -05:00
</div>
2016-07-27 22:53:14 -05:00
</div>
<% end %>