layout progress bar update
This commit is contained in:
parent
79e1797295
commit
8623fe0d93
@ -1,8 +1,10 @@
|
||||
<%
|
||||
content_for :title, "Skills Assessment"
|
||||
content_for :category, @question.category
|
||||
content_for :summary, true if @status.on_summary
|
||||
content_for :footer_title, "Skills Assessment"
|
||||
%>
|
||||
|
||||
<form method="post" action="/question">
|
||||
<main class="questions_tpl">
|
||||
<h2 class="question-text"><%= @question.question %></h2>
|
||||
|
@ -2,4 +2,3 @@
|
||||
Your answers have been submitted. We will review and your recruiter
|
||||
will contact you if we would like to set up an interview.
|
||||
</p>
|
||||
|
||||
|
@ -14,8 +14,7 @@
|
||||
<div class="layout">
|
||||
<% if content_for?(:category) %>
|
||||
|
||||
<header>
|
||||
-- NO PROGRESS BAR ON EDITS --
|
||||
<header <%= raw("class=\"no-progressbar\"") if content_for?(:summary) %>>
|
||||
<div class="page-title slash-left">
|
||||
<div>Section: <%= yield(:category) %></div>
|
||||
</div>
|
||||
@ -30,7 +29,9 @@
|
||||
</header>
|
||||
|
||||
<% end %>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
</div>
|
||||
<%= render partial: 'layouts/footer' %>
|
||||
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
|
2
test/fixtures/questions.yml
vendored
2
test/fixtures/questions.yml
vendored
@ -86,6 +86,6 @@ fed10:
|
||||
question: StarWars or Star Trek?
|
||||
category: Performance
|
||||
input_type: checkbox
|
||||
input_options: ["Live long and prosper", "Who you calling Scruffy?", "J.J. Abrams"]
|
||||
input_options: ["Live long and prosper", "Who ya gonna call?", "Who you calling Scruffy?", "J.J. Abrams"]
|
||||
sort: 9
|
||||
active: true
|
||||
|
Loading…
Reference in New Issue
Block a user