Browse Source

Questions will always exist now

pull/163/head
ariannedee 5 years ago
parent
commit
1470f16588
1 changed files with 34 additions and 42 deletions
  1. +34
    -42
      edivorce/apps/core/templates/partials/review_user_responses.html

+ 34
- 42
edivorce/apps/core/templates/partials/review_user_responses.html View File

@ -1,47 +1,39 @@
{% load summary_format %}
{% if questions %}
{% if step == 'your_children' %}
<table class="table table-striped">
<thead>
<tr>
<th class="table-bordered">Question</th>
<th class="table-bordered">Response</th>
</tr>
</thead>
{% format_children source=questions %}
</table>
{% else %}
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>Question</th>
<th>Response</th>
</tr>
</thead>
<tbody>
{% if step == 'prequalification' %}
{% prequal_tag source=questions %}
{% elif step == 'your_information' or step == 'your_spouse' %}
{% personal_info_tag source=questions %}
{% elif step == 'your_marriage' %}
{% marriage_tag source=questions %}
{% elif step == 'other_questions' %}
{% combine_address source=questions %}
{% else %}
{% for question in questions %}
<tr>
<td style="padding-right: 5%">{{question.question__name}}</td>
<td class="value-column">{% reformat_value source=question %}</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
{% endif %}
{% if step == 'your_children' %}
<table class="table table-striped">
<thead>
<tr>
<th class="table-bordered">Question</th>
<th class="table-bordered">Response</th>
</tr>
</thead>
{% format_children source=questions %}
</table>
{% else %}
<table class="table table-bordered">
<table class="table table-bordered table-striped">
<thead>
<tr>
<td>No answered questions</td>
<th>Question</th>
<th>Response</th>
</tr>
</table>
</thead>
<tbody>
{% if step == 'prequalification' %}
{% prequal_tag source=questions %}
{% elif step == 'your_information' or step == 'your_spouse' %}
{% personal_info_tag source=questions %}
{% elif step == 'your_marriage' %}
{% marriage_tag source=questions %}
{% elif step == 'other_questions' %}
{% combine_address source=questions %}
{% else %}
{% for question in questions %}
<tr>
<td style="padding-right: 5%">{{question.question__name}}</td>
<td class="value-column">{% reformat_value source=question %}</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
{% endif %}

Loading…
Cancel
Save