Newer
Older
dmpopidor / app / views / sections / _progress.html.erb
<!-- Partial template for showing the progress for a section, i.e. the valid answers -->
<% num_section_questions = section.questions.size() %>
<% num_section_answers = section.num_answered_questions(plan.id) %>

<%= section.title %>
<span class="fa fa-plus" aria-hidden="true"></span>
<span class="right section-status">
  <%= num_section_answers %>/<%= num_section_questions %>
  <span class="fa <%= num_section_answers > 0 ? 'fa-check-circle' : 'fa-circle-o' %>"></span>
</span>