| @ -1,47 +1,39 @@ | |||||
| {% load summary_format %} | {% 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 %} | {% else %} | ||||
| <table class="table table-bordered"> | |||||
| <table class="table table-bordered table-striped"> | |||||
| <thead> | |||||
| <tr> | <tr> | ||||
| <td>No answered questions</td> | |||||
| <th>Question</th> | |||||
| <th>Response</th> | |||||
| </tr> | </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 %} | {% endif %} | ||||