templates/v2/show.html.twig line 1

Open in your IDE?
  1. {% extends 'print.html.twig' %}
  2. {% block title %}Show form{% endblock %}
  3. {% block pagetitle %}{{ f.propname }} <a class="float-right" href="{{ path('v2_list') }}">Back to list</a>{% endblock %}
  4. {% block body %}
  5.     <style>
  6.         body {
  7.             margin: 20px;
  8.         }
  9.         .table {
  10.             margin-bottom: 3rem;
  11.             border-bottom: 1px solid #dee2e6;
  12.         }
  13.         thead th {
  14.             {# background-color: #A3BA38; #}
  15.             {% if f.brand == "NFC" %}
  16.                 background-color: #96bca6;
  17.             {% elseif f.brand == "ROS" %}
  18.                 background-color: #193543;
  19.             {% else %}
  20.                 background-color: #2b522d;
  21.             {% endif %}
  22.             color: white;
  23.         }
  24.         th span {
  25.             font-weight: normal;
  26.         }
  27.         .table td, .table th {
  28.             max-width: 0; /* Make equal width */
  29.         }
  30.         @media print {
  31.             .print-hide {
  32.                 display: none;
  33.             }
  34.             .table {
  35.                 page-break-inside: avoid;
  36.             }
  37.             .table thead th {
  38.                 -webkit-print-color-adjust: exact !important;
  39.                 {% if f.brand == "NFC" %}
  40.                     background-color: #96bca6 !important;
  41.                 {% elseif f.brand == "ROS" %}
  42.                     background-color: #193543 !important;
  43.                 {% else %}
  44.                     background-color: #2b522d !important;
  45.                 {% endif %}
  46.                 color: white;
  47.             }
  48.         }
  49.     </style>
  50.     <div class="print-hide clearfix mb-3">
  51.         <a class="float-left" href="javascript:print()"><i class="fas fa-print text-muted"></i> Print</a>
  52.         <a class="float-right" href="{{ path('v2_list') }}">Back to list</a>
  53.     </div>
  54.     {% if f.brand == "NFC" %}
  55.         <img src="/images/nfclogo.jpg" alt="New Forest Cottages">
  56.     {% elseif f.brand == "ROS" %}
  57.         <img src="/images/roslogo.png" alt="Rumsey of Sandbanks">
  58.     {% else %}
  59.         <img src="/images/thclogo.gif" alt="Toad Hall Cottages">
  60.     {% endif %}
  61.     <h1 class="my-4">Property Inspection Report and Star rating</h1>
  62.     <table class="table table-striped">
  63.         <thead>
  64.             <tr>
  65.                 <th>Property name</th>
  66.                 <th class="h4">{{ f.propname }}</th>
  67.             </tr>
  68.         </thead>
  69.         <tbody>
  70.             <tr>
  71.                 <th>Date</th>
  72.                 <td>{% if f.date %}{{ f.date | date('d/m/Y') }}{% endif %}</td>
  73.             </tr>
  74.         </tbody>
  75.     </table>
  76.     <p class="mx-2">Scores: 0 = Unacceptable, 1 = Poor, 2 = Quite Good, 3 = Good, 4 = Very Good, 5 = Excellent</p>
  77. {#    {{ dump(f) }}#}
  78.     {# TAB1: EXTERIOR #}
  79.     <table class="table table-striped">
  80.         <thead>
  81.             <tr>
  82.                 <th colspan="2">
  83.                 Exterior
  84.                 </th>
  85.             </tr>
  86.         </thead>
  87.         <tbody>
  88.             <tr{% if f.data.extbuildappear < 3 %} class="text-danger"{% endif %}>
  89.                 <th>Appearance of building</th>
  90.                 <td>{{ f.data.extbuildappear }}</td>
  91.             </tr>
  92.             <tr{% if f.data.extparkfacility < 3 %} class="text-danger"{% endif %}>
  93.                 <th>Parking, gardens and additional facilities</th>
  94.                 <td>{{ f.data.extparkfacility }}</td>
  95.             </tr>
  96.             <tr{% if f.data.extsiding < 3 %} class="text-danger"{% endif %}>
  97.                 <th>Environment and setting</th>
  98.                 <td>{{ f.data.extsiding }}</td>
  99.             </tr>
  100.             <tr>
  101.                 <th>Exterior Score</th>
  102.                 <td><strong>{{ f.data.exteriorTotal|round }}%</strong></td>
  103.             </tr>
  104.         </tbody>
  105.     </table>
  106.     <table class="table table-striped">
  107.         <thead>
  108.             <tr>
  109.                 <th colspan="2">Exterior items</th>
  110.             </tr>
  111.         </thead>
  112.         <tbody>
  113.             <tr>
  114.                 <th>Property Sign</th>
  115.                 <td>{{ f.data.extpropertysign == "" ? '' : f.data.extpropertysign ? 'Yes' : 'No' }}</td>
  116.             </tr>
  117.             {% if f.data.extkeysafe is defined %}
  118.                 <tr>
  119.                     <th>Key Safe</th>
  120.                     <td>{{ f.data.extkeysafe == "" ? '' : f.data.extkeysafe ? 'Yes' : 'No' }}</td>
  121.                 </tr>
  122.             {% endif %}
  123.             {% if f.data.extemergencykeysafe is defined %}
  124.                 <tr>
  125.                     <th>Emergency Key Safe</th>
  126.                     <td>{{ f.data.extemergencykeysafe == "" ? '' : f.data.extemergencykeysafe ? 'Yes' : 'No' }}</td>
  127.                 </tr>
  128.             {% endif %}
  129.             {% if f.data.extlighting is defined %}
  130.                 <tr>
  131.                     <th>Exterior Lighting</th>
  132.                     <td>{{ f.data.extlighting == "" ? '' : f.data.extlighting ? 'Yes' : 'No' }}</td>
  133.                 </tr>
  134.             {% endif %}
  135.             <tr>
  136.                 <th>Gates</th>
  137.                 <td>
  138.                     {% if f.data.extgates is defined %}
  139.                         {% if f.data.extgates == "5" %}
  140.                             Yes
  141.                         {% elseif f.data.extgates == "0" %}
  142.                             No
  143.                         {% elseif f.data.extgates == "n/a" %}
  144.                             n/a
  145.                         {% endif %}
  146.                     {% endif %}
  147.                 </td>
  148.             </tr>
  149.             <tr>
  150.                 <th>Garden furniture</th>
  151.                 <td>
  152.                     {% if f.data.extgardenfurniture is defined %}
  153.                         {% if f.data.extgardenfurniture == "5" %}
  154.                             Yes
  155.                         {% elseif f.data.extgardenfurniture == "0" %}
  156.                             No
  157.                         {% elseif f.data.extgardenfurniture == "n/a" %}
  158.                             n/a
  159.                         {% endif %}
  160.                     {% endif %}
  161.                 </td>
  162.             </tr>
  163.             <tr>
  164.                 <th>Barbecue</th>
  165.                 <td>
  166.                     {% if f.data.extbarbecue is defined %}
  167.                         {% if f.data.extbarbecue == "5" %}
  168.                             Yes
  169.                         {% elseif f.data.extbarbecue == "0" %}
  170.                             No
  171.                         {% elseif f.data.extbarbecue == "n/a" %}
  172.                             n/a
  173.                         {% endif %}
  174.                     {% endif %}
  175.                 </td>
  176.             </tr>
  177.         </tbody>
  178.     </table>
  179.     <table class="table table-striped">
  180.         <thead>
  181.             <tr>
  182.                 <th>Exterior notes and suggestions</th>
  183.             </tr>
  184.         </thead>
  185.         <tbody>
  186.             <tr>
  187.                 <td>{{ f.data.extnotes | nl2br }}</td>
  188.             </tr>
  189.         </tbody>
  190.     </table>
  191.     <table class="table table-striped">
  192.         <thead>
  193.             <tr>
  194.                 <th>Exterior pictures</th>
  195.             </tr>
  196.         </thead>
  197.         <tbody>
  198.             <tr>
  199.                 <td>
  200.                 {% if f.data.extpic1 %}
  201.                     {% if file_exists( f.uuid, f.data.extpic1, '_medium' ) %}
  202.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.extpic1 }}" />
  203.                     {% elseif file_exists( f.uuid, f.data.extpic1 ) %}
  204.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.extpic1 }}" />
  205.                     {% endif %}
  206.                 {% endif %}
  207.                 {% if f.data.extpic2 %}
  208.                     {% if file_exists( f.uuid, f.data.extpic2, '_medium' ) %}
  209.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.extpic2 }}" />
  210.                     {% elseif file_exists( f.uuid, f.data.extpic2 ) %}
  211.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.extpic2 }}" />
  212.                     {% endif %}
  213.                 {% endif %}
  214.                 {% if f.data.extpic3 %}
  215.                     {% if file_exists( f.uuid, f.data.extpic3, '_medium' ) %}
  216.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.extpic3 }}" />
  217.                     {% elseif file_exists( f.uuid, f.data.extpic3 ) %}
  218.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.extpic3 }}" />
  219.                     {% endif %}
  220.                 {% endif %}
  221.                 {% if f.data.extpic4 %}
  222.                     {% if file_exists( f.uuid, f.data.extpic4, '_medium' ) %}
  223.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.extpic4 }}" />
  224.                     {% elseif file_exists( f.uuid, f.data.extpic4 ) %}
  225.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.extpic4 }}" />
  226.                     {% endif %}
  227.                 {% endif %}
  228.                 </td>
  229.             </tr>
  230.         </tbody>
  231.     </table>
  232.     {# TAB2: GENERAL #}
  233.     <table class="table table-striped">
  234.         <thead>
  235.         <tr>
  236.             <th colspan="2">
  237.                 General
  238.             </th>
  239.         </tr>
  240.         </thead>
  241.         <tbody>
  242.         <tr{% if f.data.generalinformationpack < 3 %} class="text-danger"{% endif %}>
  243.             <th>Information Pack</th>
  244.             <td>{{ f.data.generalinformationpack }}</td>
  245.         </tr>
  246.         <tr{% if f.data.generalwelcomepack < 3 %} class="text-danger"{% endif %}>
  247.             <th>Welcome Pack</th>
  248.             <td>{{ f.data.generalwelcomepack }}</td>
  249.         </tr>
  250.         <tr{% if f.data.generalwifi < 3 %} class="text-danger"{% endif %}>
  251.             <th>
  252.                 Wi-Fi
  253.                 <br>
  254.                 <small class="d-inline-block text-muted">0-5 Poor/5-10 Satisfactory/10-20 Good/20-50 Very good/50+ Excellent (Mbps)</small>
  255.             </th>
  256.             <td>{{ f.data.generalwifi }}</td>
  257.         </tr>
  258.         {% if f.data.generalwifilogininfoandspeed is defined %}
  259.         <tr>
  260.             <th>Wi-Fi Login details and speed</th>
  261.             <td>{{ f.data.generalwifilogininfoandspeed | nl2br }}</td>
  262.         </tr>
  263.         {% endif %}
  264.         <tr{% if f.data.generalspaceandeaseofuse < 3 %} class="text-danger"{% endif %}>
  265.             <th>Space and ease of use</th>
  266.             <td>{{ f.data.generalspaceandeaseofuse }}</td>
  267.         </tr>
  268.         <tr{% if f.data.generalaccessories < 3 %} class="text-danger"{% endif %}>
  269.             <th>Accessories and personal touches</th>
  270.             <td>{{ f.data.generalaccessories }}</td>
  271.         </tr>
  272.         <tr{% if f.data.generalcleanliness < 3 %} class="text-danger"{% endif %}>
  273.             <th>Cleanliness</th>
  274.             <td>{{ f.data.generalcleanliness }}</td>
  275.         </tr>
  276.         <tr>
  277.             <th>General Score</th>
  278.             <td><strong>{{ f.data.generalTotal|round }}%</strong></td>
  279.         </tr>
  280.         </tbody>
  281.     </table>
  282.     <table class="table table-striped">
  283.         <thead>
  284.         <tr>
  285.             <th colspan="2">General items</th>
  286.         </tr>
  287.         </thead>
  288.         <tbody>
  289.         <tr>
  290.             <th>Cot</th>
  291.             <td>{{ f.data.generalcot == "" ? '' : f.data.generalcot ? 'Yes' : 'No' }}</td>
  292.         </tr>
  293.         <tr>
  294.             <th>High-chair</th>
  295.             <td>{{ f.data.generalhighchair == "" ? '' : f.data.generalhighchair ? 'Yes' : 'No' }}</td>
  296.         </tr>
  297.         <tr>
  298.             <th>Stair gate</th>
  299.             <td>
  300.                 {% if f.data.generalstairgate is defined %}
  301.                     {% if f.data.generalstairgate == "5" %}
  302.                         Yes
  303.                     {% elseif f.data.generalstairgate == "0" %}
  304.                         No
  305.                     {% elseif f.data.generalstairgate == "n/a" %}
  306.                         n/a
  307.                     {% endif %}
  308.                 {% endif %}
  309. {#                {{ f.data.generalstairgate == "" ? '' : f.data.generalstairgate ? 'Yes' : 'No' }}#}
  310.             </td>
  311.         </tr>
  312.         <tr>
  313.             <th>Vacuum</th>
  314.             <td>{{ f.data.generalvacuum == "" ? '' : f.data.generalvacuum ? 'Yes' : 'No' }}</td>
  315.         </tr>
  316.         <tr>
  317.             <th>Ironing board and iron</th>
  318.             <td>{{ f.data.generaliron == "" ? '' : f.data.generaliron ? 'Yes' : 'No' }}</td>
  319.         </tr>
  320.         <tr>
  321.             <th>Washing machine</th>
  322.             <td>{{ f.data.generalwashingmachine == "" ? '' : f.data.generalwashingmachine ? 'Yes' : 'No' }}</td>
  323.         </tr>
  324.         <tr>
  325.             <th>Tumble dryer</th>
  326.             <td>{{ f.data.generaltumbledryer == "" ? '' : f.data.generaltumbledryer ? 'Yes' : 'No' }}</td>
  327.         </tr>
  328.         </tbody>
  329.     </table>
  330.     <table class="table table-striped">
  331.         <thead>
  332.         <tr>
  333.             <th>General notes and suggestions</th>
  334.         </tr>
  335.         </thead>
  336.         <tbody>
  337.         <tr>
  338.             <td>{{ f.data.generalnotes | nl2br }}</td>
  339.         </tr>
  340.         </tbody>
  341.     </table>
  342.     <table class="table table-striped">
  343.         <thead>
  344.         <tr>
  345.             <th>General pictures</th>
  346.         </tr>
  347.         </thead>
  348.         <tbody>
  349.         <tr>
  350.             <td>
  351.                 {% if f.data.generalpic1 %}
  352.                     {% if file_exists( f.uuid, f.data.generalpic1, '_medium' ) %}
  353.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.generalpic1 }}" />
  354.                     {% elseif file_exists( f.uuid, f.data.generalpic1 ) %}
  355.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.generalpic1 }}" />
  356.                     {% endif %}
  357.                 {% endif %}
  358.                 {% if f.data.generalpic2 %}
  359.                     {% if file_exists( f.uuid, f.data.generalpic2, '_medium' ) %}
  360.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.generalpic2 }}" />
  361.                     {% elseif file_exists( f.uuid, f.data.generalpic2 ) %}
  362.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.generalpic2 }}" />
  363.                     {% endif %}
  364.                 {% endif %}
  365.                 {% if f.data.generalpic3 %}
  366.                     {% if file_exists( f.uuid, f.data.generalpic3, '_medium' ) %}
  367.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.generalpic3 }}" />
  368.                     {% elseif file_exists( f.uuid, f.data.generalpic3 ) %}
  369.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.generalpic3 }}" />
  370.                     {% endif %}
  371.                 {% endif %}
  372.                 {% if f.data.generalpic4 %}
  373.                     {% if file_exists( f.uuid, f.data.generalpic4, '_medium' ) %}
  374.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.generalpic4 }}" />
  375.                     {% elseif file_exists( f.uuid, f.data.generalpic4 ) %}
  376.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.generalpic4 }}" />
  377.                     {% endif %}
  378.                 {% endif %}
  379.             </td>
  380.         </tr>
  381.         </tbody>
  382.     </table>
  383.     {# TAB3: PUBLIC AREAS #}
  384.     <table class="table table-striped">
  385.         <thead>
  386.         <tr>
  387.             <th colspan="2">
  388.                 Public area
  389.             </th>
  390.         </tr>
  391.         </thead>
  392.         <tbody>
  393.         <tr{% if f.data.publicdecoration < 3 %} class="text-danger"{% endif %}>
  394.             <th>Decoration</th>
  395.             <td>{{ f.data.publicdecoration }}</td>
  396.         </tr>
  397.         <tr{% if f.data.publicfurniture < 3 %} class="text-danger"{% endif %}>
  398.             <th>Furniture and soft furnishings</th>
  399.             <td>{{ f.data.publicfurniture }}</td>
  400.         </tr>
  401.         <tr{% if f.data.publicflooring < 3 %} class="text-danger"{% endif %}>
  402.             <th>Flooring</th>
  403.             <td>{{ f.data.publicflooring }}</td>
  404.         </tr>
  405.         <tr{% if f.data.publiclighting < 3 %} class="text-danger"{% endif %}>
  406.             <th>Lighting and heating</th>
  407.             <td>{{ f.data.publiclighting }}</td>
  408.         </tr>
  409.         <tr>
  410.             <th>Public Area Score</th>
  411.             <td><strong>{{ f.data.publicTotal|round }}%</strong></td>
  412.         </tr>
  413.         </tbody>
  414.     </table>
  415.     <table class="table table-striped">
  416.         <thead>
  417.         <tr>
  418.             <th colspan="2">Public area items</th>
  419.         </tr>
  420.         </thead>
  421.         <tbody>
  422.         <tr>
  423.             <th>Curtains/blinds</th>
  424.             <td>{{ f.data.publiccurtains == "" ? '' : f.data.publiccurtains ? 'Yes' : 'No' }}</td>
  425.         </tr>
  426.         <tr>
  427.             <th>Dining table</th>
  428.             <td>{{ f.data.publicdiningtable == "" ? '' : f.data.publicdiningtable ? 'Yes' : 'No' }}</td>
  429.         </tr>
  430.         <tr>
  431.             <th>Coffee table</th>
  432.             <td>{{ f.data.publiccoffeetable == "" ? '' : f.data.publiccoffeetable ? 'Yes' : 'No' }}</td>
  433.         </tr>
  434.         <tr>
  435.             <th>Lamps</th>
  436.             <td>{{ f.data.publiclamps == "" ? '' : f.data.publiclamps ? 'Yes' : 'No' }}</td>
  437.         </tr>
  438.         <tr>
  439.             <th>
  440.                 TV
  441.                 <br>
  442.                 <small class="d-inline-block text-muted">If you do not already provide a Smart TV, we highly recommend one is provided</small>
  443.             </th>
  444.             <td>{{ f.data.publictv == "" ? '' : f.data.publictv ? 'Yes' : 'No' }}</td>
  445.         </tr>
  446.         <tr>
  447.             <th>Fireproof bin (if fireplace)</th>
  448.             <td>{{ f.data.publicfireproofbin == "" ? '' : f.data.publicfireproofbin ? 'Yes' : 'No' }}</td>
  449.         </tr>
  450.         </tbody>
  451.     </table>
  452.     <table class="table table-striped">
  453.         <thead>
  454.         <tr>
  455.             <th>Public area notes and suggestions</th>
  456.         </tr>
  457.         </thead>
  458.         <tbody>
  459.         <tr>
  460.             <td>{{ f.data.publicnotes | nl2br }}</td>
  461.         </tr>
  462.         </tbody>
  463.     </table>
  464.     <table class="table table-striped">
  465.         <thead>
  466.         <tr>
  467.             <th>Public area pictures</th>
  468.         </tr>
  469.         </thead>
  470.         <tbody>
  471.         <tr>
  472.             <td>
  473.                 {% if f.data.publicpic1 %}
  474.                     {% if file_exists( f.uuid, f.data.publicpic1, '_medium' ) %}
  475.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.publicpic1 }}" />
  476.                     {% elseif file_exists( f.uuid, f.data.publicpic1 ) %}
  477.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.publicpic1 }}" />
  478.                     {% endif %}
  479.                 {% endif %}
  480.                 {% if f.data.publicpic2 %}
  481.                     {% if file_exists( f.uuid, f.data.publicpic2, '_medium' ) %}
  482.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.publicpic2 }}" />
  483.                     {% elseif file_exists( f.uuid, f.data.publicpic2 ) %}
  484.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.publicpic2 }}" />
  485.                     {% endif %}
  486.                 {% endif %}
  487.                 {% if f.data.publicpic3 %}
  488.                     {% if file_exists( f.uuid, f.data.publicpic3, '_medium' ) %}
  489.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.publicpic3 }}" />
  490.                     {% elseif file_exists( f.uuid, f.data.publicpic3 ) %}
  491.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.publicpic3 }}" />
  492.                     {% endif %}
  493.                 {% endif %}
  494.                 {% if f.data.publicpic4 %}
  495.                     {% if file_exists( f.uuid, f.data.publicpic4, '_medium' ) %}
  496.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.publicpic4 }}" />
  497.                     {% elseif file_exists( f.uuid, f.data.publicpic4 ) %}
  498.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.publicpic4 }}" />
  499.                     {% endif %}
  500.                 {% endif %}
  501.             </td>
  502.         </tr>
  503.         </tbody>
  504.     </table>
  505.     {# TAB4: KITCHEN #}
  506.     <table class="table table-striped">
  507.         <thead>
  508.         <tr>
  509.             <th colspan="2">
  510.                 Kitchen
  511.             </th>
  512.         </tr>
  513.         </thead>
  514.         <tbody>
  515.         <tr{% if f.data.kitchendecoration < 3 %} class="text-danger"{% endif %}>
  516.             <th>Decoration</th>
  517.             <td>{{ f.data.kitchendecoration }}</td>
  518.         </tr>
  519.         <tr{% if f.data.kitchenfurniture < 3 %} class="text-danger"{% endif %}>
  520.             <th>Furniture and fittings</th>
  521.             <td>{{ f.data.kitchenfurniture }}</td>
  522.         </tr>
  523.         <tr{% if f.data.kitchenflooring < 3 %} class="text-danger"{% endif %}>
  524.             <th>Flooring</th>
  525.             <td>{{ f.data.kitchenflooring }}</td>
  526.         </tr>
  527.         <tr{% if f.data.kitchenlighting < 3 %} class="text-danger"{% endif %}>
  528.             <th>Lighting, heating and ventilation</th>
  529.             <td>{{ f.data.kitchenlighting }}</td>
  530.         </tr>
  531.         <tr{% if f.data.kitchenequipment < 3 %} class="text-danger"{% endif %}>
  532.             <th>Electrical and gas equipment</th>
  533.             <td>{{ f.data.kitchenequipment }}</td>
  534.         </tr>
  535.         <tr{% if f.data.kitchencrockerycutleryglassware < 3 %} class="text-danger"{% endif %}>
  536.             <th>Crockery, cutlery and glassware</th>
  537.             <td>{{ f.data.kitchencrockerycutleryglassware }}</td>
  538.         </tr>
  539.         <tr{% if f.data.kitchenpots < 3 %} class="text-danger"{% endif %}>
  540.             <th>Pots, pans and utensils</th>
  541.             <td>{{ f.data.kitchenpots }}</td>
  542.         </tr>
  543.         <tr>
  544.             <th>Kitchen Score</th>
  545.             <td><strong>{{ f.data.kitchenTotal|round }}%</strong></td>
  546.         </tr>
  547.         </tbody>
  548.     </table>
  549.     <table class="table table-striped">
  550.         <thead>
  551.         <tr>
  552.             <th colspan="2">Kitchen items</th>
  553.         </tr>
  554.         </thead>
  555.         <tbody>
  556.         <tr>
  557.             <th>Cooker</th>
  558.             <td>{{ f.data.kitchencooker == "" ? '' : f.data.kitchencooker ? 'Yes' : 'No' }}</td>
  559.         </tr>
  560.         <tr>
  561.             <th>Fridge</th>
  562.             <td>{{ f.data.kitchenfridge == "" ? '' : f.data.kitchenfridge ? 'Yes' : 'No' }}</td>
  563.         </tr>
  564.         <tr>
  565.             <th>Freezer/ice box</th>
  566.             <td>{{ f.data.kitchenfreezer == "" ? '' : f.data.kitchenfreezer ? 'Yes' : 'No' }}</td>
  567.         </tr>
  568.         <tr>
  569.             <th>Dishwasher</th>
  570.             <td>{{ f.data.kitchendishwasher == "" ? '' : f.data.kitchendishwasher ? 'Yes' : 'No' }}</td>
  571.         </tr>
  572.         <tr>
  573.             <th>Microwave</th>
  574.             <td>{{ f.data.kitchenmicrowave == "" ? '' : f.data.kitchenmicrowave ? 'Yes' : 'No' }}</td>
  575.         </tr>
  576.         <tr>
  577.             <th>Toaster</th>
  578.             <td>{{ f.data.kitchentoaster == "" ? '' : f.data.kitchentoaster ? 'Yes' : 'No' }}</td>
  579.         </tr>
  580.         <tr>
  581.             <th>Kettle</th>
  582.             <td>{{ f.data.kitchenkettle == "" ? '' : f.data.kitchenkettle ? 'Yes' : 'No' }}</td>
  583.         </tr>
  584.         <tr>
  585.             <th>Saucepans</th>
  586.             <td>{{ f.data.kitchensaucepans == "" ? '' : f.data.kitchensaucepans ? 'Yes' : 'No' }}</td>
  587.         </tr>
  588.         <tr>
  589.             <th>Frying pans</th>
  590.             <td>{{ f.data.kitchenfryingpans == "" ? '' : f.data.kitchenfryingpans ? 'Yes' : 'No' }}</td>
  591.         </tr>
  592.         <tr>
  593.             <th>Cookware</th>
  594.             <td>{{ f.data.kitchencookware == "" ? '' : f.data.kitchencookware ? 'Yes' : 'No' }}</td>
  595.         </tr>
  596.         <tr>
  597.             <th>Utensils</th>
  598.             <td>{{ f.data.kitchenutensils == "" ? '' : f.data.kitchenutensils ? 'Yes' : 'No' }}</td>
  599.         </tr>
  600.         <tr>
  601.             <th>Crockery</th>
  602.             <td>{{ f.data.kitchencrockery == "" ? '' : f.data.kitchencrockery ? 'Yes' : 'No' }}</td>
  603.         </tr>
  604.         <tr>
  605.             <th>Cutlery</th>
  606.             <td>{{ f.data.kitchencutlery == "" ? '' : f.data.kitchencutlery ? 'Yes' : 'No' }}</td>
  607.         </tr>
  608.         <tr>
  609.             <th>Glasses</th>
  610.             <td>{{ f.data.kitchenglasses == "" ? '' : f.data.kitchenglasses ? 'Yes' : 'No' }}</td>
  611.         </tr>
  612.         <tr>
  613.             <th>Table mats</th>
  614.             <td>{{ f.data.kitchentablemats == "" ? '' : f.data.kitchentablemats ? 'Yes' : 'No' }}</td>
  615.         </tr>
  616.         <tr>
  617.             <th>Salt and pepper</th>
  618.             <td>{{ f.data.kitchensaltandpepper == "" ? '' : f.data.kitchensaltandpepper ? 'Yes' : 'No' }}</td>
  619.         </tr>
  620.         <tr>
  621.             <th>Washing up bowl</th>
  622.             <td>{{ f.data.kitchenwashingupbowl == "" ? '' : f.data.kitchenwashingupbowl ? 'Yes' : 'No' }}</td>
  623.         </tr>
  624.         <tr>
  625.             <th>Cleaning materials</th>
  626.             <td>{{ f.data.kitchencleaningmaterials == "" ? '' : f.data.kitchencleaningmaterials ? 'Yes' : 'No' }}</td>
  627.         </tr>
  628.         </tbody>
  629.     </table>
  630.     <table class="table table-striped">
  631.         <thead>
  632.         <tr>
  633.             <th>Kitchen notes and suggestions</th>
  634.         </tr>
  635.         </thead>
  636.         <tbody>
  637.         <tr>
  638.             <td>{{ f.data.kitchennotes | nl2br }}</td>
  639.         </tr>
  640.         </tbody>
  641.     </table>
  642.     <table class="table table-striped">
  643.         <thead>
  644.         <tr>
  645.             <th>Kitchen pictures</th>
  646.         </tr>
  647.         </thead>
  648.         <tbody>
  649.         <tr>
  650.             <td>
  651.                 {% if f.data.kitchenpic1 %}
  652.                     {% if file_exists( f.uuid, f.data.kitchenpic1, '_medium' ) %}
  653.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.kitchenpic1 }}" />
  654.                     {% elseif file_exists( f.uuid, f.data.kitchenpic1 ) %}
  655.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.kitchenpic1 }}" />
  656.                     {% endif %}
  657.                 {% endif %}
  658.                 {% if f.data.kitchenpic2 %}
  659.                     {% if file_exists( f.uuid, f.data.kitchenpic2, '_medium' ) %}
  660.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.kitchenpic2 }}" />
  661.                     {% elseif file_exists( f.uuid, f.data.kitchenpic2 ) %}
  662.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.kitchenpic2 }}" />
  663.                     {% endif %}
  664.                 {% endif %}
  665.                 {% if f.data.kitchenpic3 %}
  666.                     {% if file_exists( f.uuid, f.data.kitchenpic3, '_medium' ) %}
  667.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.kitchenpic3 }}" />
  668.                     {% elseif file_exists( f.uuid, f.data.kitchenpic3 ) %}
  669.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.kitchenpic3 }}" />
  670.                     {% endif %}
  671.                 {% endif %}
  672.                 {% if f.data.kitchenpic4 %}
  673.                     {% if file_exists( f.uuid, f.data.kitchenpic4, '_medium' ) %}
  674.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.kitchenpic4 }}" />
  675.                     {% elseif file_exists( f.uuid, f.data.kitchenpic4 ) %}
  676.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.kitchenpic4 }}" />
  677.                     {% endif %}
  678.                 {% endif %}
  679.             </td>
  680.         </tr>
  681.         </tbody>
  682.     </table>
  683.     {# TAB5: BEDROOMS #}
  684.     {% for id in bedrooms %}
  685.         <table class="table table-striped">
  686.             <thead>
  687.             <tr>
  688.                 <th colspan="2">
  689.                     Bedroom {{ loop.index }}: {{ f.data["bedroom_" ~ id ~ "_name"] }}
  690.                 </th>
  691.             </tr>
  692.             </thead>
  693.             <tbody>
  694.             <tr{% if f.data["bedroom_" ~ id ~ "_decoration"] < 3 %} class="text-danger"{% endif %}>
  695.                 <th>Decoration</th>
  696.                 <td>{{ f.data["bedroom_" ~ id ~ "_decoration"] }}</td>
  697.             </tr>
  698.             <tr{% if f.data["bedroom_" ~ id ~ "_furniture"] < 3 %} class="text-danger"{% endif %}>
  699.                 <th>Furniture and soft furnishings</th>
  700.                 <td>{{ f.data["bedroom_" ~ id ~ "_furniture"] }}</td>
  701.             </tr>
  702.             <tr{% if f.data["bedroom_" ~ id ~ "_flooring"] < 3 %} class="text-danger"{% endif %}>
  703.                 <th>Flooring</th>
  704.                 <td>{{ f.data["bedroom_" ~ id ~ "_flooring"] }}</td>
  705.             </tr>
  706.             <tr{% if f.data["bedroom_" ~ id ~ "_lighting"] < 3 %} class="text-danger"{% endif %}>
  707.                 <th>Lighting and heating</th>
  708.                 <td>{{ f.data["bedroom_" ~ id ~ "_lighting"] }}</td>
  709.             </tr>
  710.             <tr{% if f.data["bedroom_" ~ id ~ "_beds"] < 3 %} class="text-danger"{% endif %}>
  711.                 <th>Beds, mattresses and headboard</th>
  712.                 <td>{{ f.data["bedroom_" ~ id ~ "_beds"] }}</td>
  713.             </tr>
  714.             <tr{% if f.data["bedroom_" ~ id ~ "_bedding"] < 3 %} class="text-danger"{% endif %}>
  715.                 <th>Bedding, bed linen and towels</th>
  716.                 <td>{{ f.data["bedroom_" ~ id ~ "_bedding"] }}</td>
  717.             </tr>
  718.             </tbody>
  719.         </table>
  720.         <table class="table table-striped">
  721.             <thead>
  722.             <tr>
  723.                 <th colspan="2">Bedroom  {{ loop.index }} items</th>
  724.             </tr>
  725.             </thead>
  726.             <tbody>
  727.             <tr>
  728.                 <th>Curtains and blinds</th>
  729.                 <td>{{ f.data["bedroom_" ~ id ~ "_curtains"] == "" ? '' : f.data["bedroom_" ~ id ~ "_curtains"] ? 'Yes' : 'No' }}</td>
  730.             </tr>
  731.             <tr>
  732.                 <th>Duvets/blankets/pillows</th>
  733.                 <td>{{ f.data["bedroom_" ~ id ~ "_duvets"] == "" ? '' : f.data["bedroom_" ~ id ~ "_duvets"] ? 'Yes' : 'No' }}</td>
  734.             </tr>
  735.             <tr>
  736.                 <th>Mattress protector/pillowslips</th>
  737.                 <td>{{ f.data["bedroom_" ~ id ~ "_mattressprotector"] == "" ? '' : f.data["bedroom_" ~ id ~ "_mattressprotector"] ? 'Yes' : 'No' }}</td>
  738.             </tr>
  739.             {% if f.data["bedroom_" ~ id ~ "_towelsprovided"] is defined %}
  740.             <tr>
  741.                 <th>Towels provided</th>
  742.                 <td>{{ f.data["bedroom_" ~ id ~ "_towelsprovided"] == "" ? '' : f.data["bedroom_" ~ id ~ "_towelsprovided"] ? 'Yes' : 'No' }}</td>
  743.             </tr>
  744.             {% endif %}
  745.             <tr>
  746.                 <th>Wardrobe/hanging space/hangers</th>
  747.                 <td>{{ f.data["bedroom_" ~ id ~ "_wardrobe"] == "" ? '' : f.data["bedroom_" ~ id ~ "_wardrobe"] ? 'Yes' : 'No' }}</td>
  748.             </tr>
  749.             <tr>
  750.                 <th>Bedside tables</th>
  751.                 <td>{{ f.data["bedroom_" ~ id ~ "_bedsidetable"] == "" ? '' : f.data["bedroom_" ~ id ~ "_bedsidetable"] ? 'Yes' : 'No' }}</td>
  752.             </tr>
  753.             <tr>
  754.                 <th>Lamps</th>
  755.                 <td>{{ f.data["bedroom_" ~ id ~ "_lamps"] == "" ? '' : f.data["bedroom_" ~ id ~ "_lamps"] ? 'Yes' : 'No' }}</td>
  756.             </tr>
  757.             <tr>
  758.                 <th>Waste bins</th>
  759.                 <td>{{ f.data["bedroom_" ~ id ~ "_wastebins"] == "" ? '' : f.data["bedroom_" ~ id ~ "_wastebins"] ? 'Yes' : 'No' }}</td>
  760.             </tr>
  761.             </tbody>
  762.         </table>
  763.     {% endfor %}
  764.     <table class="table table-striped">
  765.         <thead>
  766.         <tr>
  767.             <th colspan="2">Bedrooms score</th>
  768.         </tr>
  769.         </thead>
  770.         <tbody>
  771.         <tr>
  772.             <th>Bedrooms Score</th>
  773.             <td><strong>{{ f.data.bedroomsTotal|round }}%</strong></td>
  774.         </tr>
  775.         </tbody>
  776.     </table>
  777.     <table class="table table-striped">
  778.         <thead>
  779.         <tr>
  780.             <th colspan="2">Bedrooms notes and suggestions</th>
  781.         </tr>
  782.         </thead>
  783.         <tbody>
  784.         <tr>
  785.             <td colspan="2">{{ f.data.bedroomsnotes | nl2br }}</td>
  786.         </tr>
  787.         </tbody>
  788.     </table>
  789.     <table class="table table-striped">
  790.         <thead>
  791.         <tr>
  792.             <th>Bedrooms pictures</th>
  793.         </tr>
  794.         </thead>
  795.         <tbody>
  796.         <tr>
  797.             <td>
  798.                 {% if f.data.bedroomspic1 %}
  799.                     {% if file_exists( f.uuid, f.data.bedroomspic1, '_medium' ) %}
  800.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.bedroomspic1 }}" />
  801.                     {% elseif file_exists( f.uuid, f.data.bedroomspic1 ) %}
  802.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.bedroomspic1 }}" />
  803.                     {% endif %}
  804.                 {% endif %}
  805.                 {% if f.data.bedroomspic2 %}
  806.                     {% if file_exists( f.uuid, f.data.bedroomspic2, '_medium' ) %}
  807.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.bedroomspic2 }}" />
  808.                     {% elseif file_exists( f.uuid, f.data.bedroomspic2 ) %}
  809.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.bedroomspic2 }}" />
  810.                     {% endif %}
  811.                 {% endif %}
  812.                 {% if f.data.bedroomspic3 %}
  813.                     {% if file_exists( f.uuid, f.data.bedroomspic3, '_medium' ) %}
  814.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.bedroomspic3 }}" />
  815.                     {% elseif file_exists( f.uuid, f.data.bedroomspic3 ) %}
  816.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.bedroomspic3 }}" />
  817.                     {% endif %}
  818.                 {% endif %}
  819.                 {% if f.data.bedroomspic4 %}
  820.                     {% if file_exists( f.uuid, f.data.bedroomspic4, '_medium' ) %}
  821.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.bedroomspic4 }}" />
  822.                     {% elseif file_exists( f.uuid, f.data.bedroomspic4 ) %}
  823.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.bedroomspic4 }}" />
  824.                     {% endif %}
  825.                 {% endif %}
  826.             </td>
  827.         </tr>
  828.         </tbody>
  829.     </table>
  830.     {# TAB5: BATHROOMS #}
  831.     {% for id in bathrooms %}
  832.         <table class="table table-striped">
  833.             <thead>
  834.             <tr>
  835.                 <th colspan="2">
  836.                     Bathroom {{ loop.index }}: {{ f.data["bathroom_" ~ id ~ "_name"] }}
  837.                 </th>
  838.             </tr>
  839.             </thead>
  840.             <tbody>
  841.             <tr{% if f.data["bathroom_" ~ id ~ "_decoration"] < 3 %} class="text-danger"{% endif %}>
  842.                 <th>Decoration</th>
  843.                 <td>{{ f.data["bathroom_" ~ id ~ "_decoration"] }}</td>
  844.             </tr>
  845.             <tr{% if f.data["bathroom_" ~ id ~ "_furniture"] < 3 %} class="text-danger"{% endif %}>
  846.                 <th>Fixtures and fittings</th>
  847.                 <td>{{ f.data["bathroom_" ~ id ~ "_furniture"] }}</td>
  848.             </tr>
  849.             <tr{% if f.data["bathroom_" ~ id ~ "_flooring"] < 3 %} class="text-danger"{% endif %}>
  850.                 <th>Flooring</th>
  851.                 <td>{{ f.data["bathroom_" ~ id ~ "_flooring"] }}</td>
  852.             </tr>
  853.             <tr{% if f.data["bathroom_" ~ id ~ "_lighting"] < 3 %} class="text-danger"{% endif %}>
  854.                 <th>Lighting, heating and ventilation</th>
  855.                 <td>{{ f.data["bathroom_" ~ id ~ "_lighting"] }}</td>
  856.             </tr>
  857.             </tbody>
  858.         </table>
  859.         <table class="table table-striped">
  860.             <thead>
  861.             <tr>
  862.                 <th colspan="2">Bathroom {{ loop.index }} items</th>
  863.             </tr>
  864.             </thead>
  865.             <tbody>
  866.             <tr>
  867.                 <th>Towel rail</th>
  868.                 <td>{{ f.data["bathroom_" ~ id ~ "_towelrail"] == "" ? '' : f.data["bathroom_" ~ id ~ "_towelrail"] ? 'Yes' : 'No' }}</td>
  869.             </tr>
  870.             <tr>
  871.                 <th>Mirror</th>
  872.                 <td>{{ f.data["bathroom_" ~ id ~ "_mirror"] == "" ? '' : f.data["bathroom_" ~ id ~ "_mirror"] ? 'Yes' : 'No' }}</td>
  873.             </tr>
  874.             <tr>
  875.                 <th>Shaver point</th>
  876.                 <td>{{ f.data["bathroom_" ~ id ~ "_shaverpoint"] == "" ? '' : f.data["bathroom_" ~ id ~ "_shaverpoint"] ? 'Yes' : 'No' }}</td>
  877.             </tr>
  878.             <tr>
  879.                 <th>Waste bin</th>
  880.                 <td>{{ f.data["bathroom_" ~ id ~ "_wastebin"] == "" ? '' : f.data["bathroom_" ~ id ~ "_wastebin"] ? 'Yes' : 'No' }}</td>
  881.             </tr>
  882.             <tr>
  883.                 <th>Bath mats</th>
  884.                 <td>{{ f.data["bathroom_" ~ id ~ "_bathmats"] == "" ? '' : f.data["bathroom_" ~ id ~ "_bathmats"] ? 'Yes' : 'No' }}</td>
  885.             </tr>
  886.             <tr>
  887.                 <th>Toilet brush</th>
  888.                 <td>{{ f.data["bathroom_" ~ id ~ "_toiletbrush"] == "" ? '' : f.data["bathroom_" ~ id ~ "_toiletbrush"] ? 'Yes' : 'No' }}</td>
  889.             </tr>
  890.             <tr>
  891.                 <th>Shower head</th>
  892.                 <td>{{ f.data["bathroom_" ~ id ~ "_showerhead"] == "" ? '' : f.data["bathroom_" ~ id ~ "_showerhead"] ? 'Yes' : 'No' }}</td>
  893.             </tr>
  894.             </tbody>
  895.         </table>
  896.     {% endfor %}
  897.     <table class="table table-striped">
  898.         <thead>
  899.         <tr>
  900.             <th colspan="2">Bathrooms score</th>
  901.         </tr>
  902.         </thead>
  903.         <tbody>
  904.         <tr>
  905.             <th>Bathrooms Score</th>
  906.             <td><strong>{{ f.data.bathroomsTotal|round }}%</strong></td>
  907.         </tr>
  908.         </tbody>
  909.     </table>
  910.     <table class="table table-striped">
  911.         <thead>
  912.         <tr>
  913.             <th colspan="2">Bathrooms notes and suggestions</th>
  914.         </tr>
  915.         </thead>
  916.         <tbody>
  917.         <tr>
  918.             <td colspan="2">{{ f.data.bathroomsnotes | nl2br }}</td>
  919.         </tr>
  920.         </tbody>
  921.     </table>
  922.     <table class="table table-striped">
  923.         <thead>
  924.         <tr>
  925.             <th>Bathrooms pictures</th>
  926.         </tr>
  927.         </thead>
  928.         <tbody>
  929.         <tr>
  930.             <td>
  931.                 {% if f.data.bathroomspic1 %}
  932.                     {% if file_exists( f.uuid, f.data.bathroomspic1, '_medium' ) %}
  933.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.bathroomspic1 }}" />
  934.                     {% elseif file_exists( f.uuid, f.data.bathroomspic1 ) %}
  935.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.bathroomspic1 }}" />
  936.                     {% endif %}
  937.                 {% endif %}
  938.                 {% if f.data.bathroomspic2 %}
  939.                     {% if file_exists( f.uuid, f.data.bathroomspic2, '_medium' ) %}
  940.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.bathroomspic2 }}" />
  941.                     {% elseif file_exists( f.uuid, f.data.bathroomspic2 ) %}
  942.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.bathroomspic2 }}" />
  943.                     {% endif %}
  944.                 {% endif %}
  945.                 {% if f.data.bathroomspic3 %}
  946.                     {% if file_exists( f.uuid, f.data.bathroomspic3, '_medium' ) %}
  947.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.bathroomspic3 }}" />
  948.                     {% elseif file_exists( f.uuid, f.data.bathroomspic3 ) %}
  949.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.bathroomspic3 }}" />
  950.                     {% endif %}
  951.                 {% endif %}
  952.                 {% if f.data.bathroomspic4 %}
  953.                     {% if file_exists( f.uuid, f.data.bathroomspic4, '_medium' ) %}
  954.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.bathroomspic4 }}" />
  955.                     {% elseif file_exists( f.uuid, f.data.bathroomspic4 ) %}
  956.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.bathroomspic4 }}" />
  957.                     {% endif %}
  958.                 {% endif %}
  959.             </td>
  960.         </tr>
  961.         </tbody>
  962.     </table>
  963.     {# TAB7: SAFETY #}
  964.     <table class="table table-striped">
  965.         <thead>
  966.         <tr>
  967.             <th colspan="3">
  968.                 Safety
  969.             </th>
  970.         </tr>
  971.         </thead>
  972.         <tbody>
  973.         <tr>
  974.             <th>Fire risk assessment</th>
  975.             <td>{{ f.data.safetyfire == "" ? '' : f.data.safetyfire ? 'Yes' : 'No' }}</td>
  976.             <td>{{ f.data.safetyfire_date == "" ? '' : f.data.safetyfire_date|date('d/m/Y') }}</td>
  977.         </tr>
  978.         {% if f.data.safetyboiler is defined %}
  979.         <tr>
  980.             <th>Boiler safety certificate</th>
  981.             <td>
  982.                 {% if f.data.safetyboiler is defined %}
  983.                     {% if f.data.safetyboiler == "5" %}
  984.                         Yes
  985.                     {% elseif f.data.safetyboiler == "0" %}
  986.                         No
  987.                     {% elseif f.data.safetyboiler == "n/a" %}
  988.                         n/a
  989.                     {% endif %}
  990.                 {% endif %}
  991. {#                {{ f.data.safetyboiler == "" ? '' : f.data.safetyboiler ? 'Yes' : 'No' }}#}
  992.             </td>
  993.             <td>{{ f.data.safetyboiler_date == "" ? '' : f.data.safetyboiler_date|date('d/m/Y') }}</td>
  994.         </tr>
  995.         {% endif %}
  996.         <tr>
  997.             <th>PAT</th>
  998.             <td>{{ f.data.safetypat == "" ? '' : f.data.safetypat ? 'Yes' : 'No' }}</td>
  999.             <td>{{ f.data.safetypat_date == "" ? '' : f.data.safetypat_date|date('d/m/Y') }}</td>
  1000.         </tr>
  1001.         <tr>
  1002.             <th>EICR</th>
  1003.             <td>{{ f.data.safetyeicr == "" ? '' : f.data.safetyeicr ? 'Yes' : 'No' }}</td>
  1004.             <td>{{ f.data.safetyeicr_date == "" ? '' : f.data.safetyeicr_date|date('d/m/Y') }}</td>
  1005.         </tr>
  1006.         <tr>
  1007.             <th>Legionella checklist
  1008.                 <br>
  1009.                 <small class="d-inline-block text-muted">Review annually</small>
  1010.             </th>
  1011.             <td>{{ f.data.safetylegionella == "" ? '' : f.data.safetylegionella ? 'Yes' : 'No' }}</td>
  1012.             <td>{{ f.data.safetylegionella_date == "" ? '' : f.data.safetylegionella_date|date('d/m/Y') }}</td>
  1013.         </tr>
  1014.         <tr>
  1015.             <th>Public liability insurance</th>
  1016.             <td>{{ f.data.safetypublicliability == "" ? '' : f.data.safetypublicliability ? 'Yes' : 'No' }}</td>
  1017.             <td>{{ f.data.safetypublicliability_date == "" ? '' : f.data.safetypublicliability_date|date('d/m/Y') }}</td>
  1018.         </tr>
  1019.         <tr>
  1020.             <th>Chimney sweep certificate</th>
  1021.             <td>
  1022.                 {% if f.data.safetychimney is defined %}
  1023.                     {% if f.data.safetychimney == "5" %}
  1024.                         Yes
  1025.                     {% elseif f.data.safetychimney == "0" %}
  1026.                         No
  1027.                     {% elseif f.data.safetychimney == "n/a" %}
  1028.                         n/a
  1029.                     {% endif %}
  1030.                 {% endif %}
  1031. {#                {{ f.data.safetychimney == "" ? '' : f.data.safetychimney ? 'Yes' : 'No' }}#}
  1032.             </td>
  1033.             <td>{{ f.data.safetychimney_date == "" ? '' : f.data.safetychimney_date|date('d/m/Y') }}</td>
  1034.         </tr>
  1035. {#        <tr>#}
  1036. {#            <th>Safety Score</th>#}
  1037. {#            <td><strong>{{ f.data.safetyTotal|round }}%</strong></td>#}
  1038. {#            <td></td>#}
  1039. {#        </tr>#}
  1040.         </tbody>
  1041.     </table>
  1042.     <table class="table table-striped">
  1043.         <thead>
  1044.         <tr>
  1045.             <th colspan="2">Safety items</th>
  1046.         </tr>
  1047.         </thead>
  1048.         <tbody>
  1049.         <tr>
  1050.             <th>Fire alarms
  1051.                 <br>
  1052.                 <small class="d-inline-block text-muted">The guidance is that the property has mains wired interlinked smoke alarms throughout the property and a heat alarm in the kitchen. The guidance is that there should be a smoke alarm in every hallway and room.</small>
  1053.             </th>
  1054.             <td>{{ f.data.safetyfirealarms == "" ? '' : f.data.safetyfirealarms ? 'Yes' : 'No' }}</td>
  1055.         </tr>
  1056.         <tr>
  1057.             <th>Carbon Monoxide alarms
  1058.                 <br>
  1059.                 <small class="d-inline-block text-muted">In appropriate places and in date</small>
  1060.             </th>
  1061.             <td>
  1062.                 {% if f.data.safetyco is defined %}
  1063.                     {% if f.data.safetyco == "5" %}
  1064.                         Yes
  1065.                     {% elseif f.data.safetyco == "0" %}
  1066.                         No
  1067.                     {% elseif f.data.safetyco == "n/a" %}
  1068.                         n/a
  1069.                     {% endif %}
  1070.                 {% endif %}
  1071. {#                {{ f.data.safetyco == "" ? '' : f.data.safetyco ? 'Yes' : 'No' }}#}
  1072.             </td>
  1073.         </tr>
  1074.         <tr>
  1075.             <th>Fire extinguishers on each floor
  1076.                 <br>
  1077.                 <small class="d-inline-block text-muted">The guidance is that fire extinguishers are located in a visible and easily accessible location, that there is at least one per floor, and that they are serviced regularly.</small>
  1078.             </th>
  1079.             <td>{{ f.data.safetyfireextinguishers == "" ? '' : f.data.safetyfireextinguishers ? 'Yes' : 'No' }}</td>
  1080.         </tr>
  1081.         <tr>
  1082.             <th>Fire blanket
  1083.                 <br>
  1084.                 <small class="d-inline-block text-muted">The guidance is that the fire blanket is located in a visible and easily accessible location and that it is mounted on the wall.</small>
  1085.             </th>
  1086.             <td>{{ f.data.safetyfireblanket == "" ? '' : f.data.safetyfireblanket ? 'Yes' : 'No' }}</td>
  1087.         </tr>
  1088.         <tr>
  1089.             <th>Emergency lighting
  1090.                 <br>
  1091.                 <small class="d-inline-block text-muted">The guidance is that you have emergency lighting sources in suitable places</small>
  1092.             </th>
  1093.             <td>{{ f.data.safetyemergencylighting == "" ? '' : f.data.safetyemergencylighting ? 'Yes' : 'No' }}</td>
  1094.         </tr>
  1095.         <tr>
  1096.             <th>Fire action sign in place
  1097.                 <br>
  1098.                 <small class="d-inline-block text-muted">Fire action notice in place (with address)</small>
  1099.             </th>
  1100.             <td>{{ f.data.safetyfireactionsign == "" ? '' : f.data.safetyfireactionsign ? 'Yes' : 'No' }}</td>
  1101.         </tr>
  1102.         <tr>
  1103.             <th>Blind cords secured</th>
  1104.             <td>
  1105.                 {% if f.data.safetybindcords is defined %}
  1106.                     {% if f.data.safetybindcords == "5" %}
  1107.                         Yes
  1108.                     {% elseif f.data.safetybindcords == "0" %}
  1109.                         No
  1110.                     {% elseif f.data.safetybindcords == "n/a" %}
  1111.                         n/a
  1112.                     {% endif %}
  1113.                 {% endif %}
  1114. {#                {{ f.data.safetybindcords == "" ? '' : f.data.safetybindcords ? 'Yes' : 'No' }}#}
  1115.             </td>
  1116.         </tr>
  1117.         <tr>
  1118.             <th>Exit door keyless escape access
  1119.                 <br>
  1120.                 <small class="d-inline-block text-muted">The guidance is that all exit doors should have keyless escape access</small>
  1121.             </th>
  1122.             <td>
  1123.                 {% if f.data.exitdoorkeylessescape is defined %}
  1124.                     {{ f.data.exitdoorkeylessescape == "" ? '' : f.data.exitdoorkeylessescape ? 'Yes' : 'No' }}
  1125.                 {% endif %}
  1126.             </td>
  1127.         </tr>
  1128.         <tr>
  1129.             <th>General safety
  1130.                 <br>
  1131.                 <small class="d-inline-block text-muted">We recommend there are secure handrails on staircases,
  1132.                     any sharp or protruding objects are removed, you minimise any trip or slip hazards, and restrict
  1133.                     windows opening fully on upper levels where applicable.</small>
  1134.             </th>
  1135.             <td>&nbsp;</td>
  1136.         </tr>
  1137.         </tbody>
  1138.     </table>
  1139.     <table class="table table-striped">
  1140.         <thead>
  1141.         <tr>
  1142.             <th>Safety notes and suggestions</th>
  1143.         </tr>
  1144.         </thead>
  1145.         <tbody>
  1146.         <tr>
  1147.             <td>{{ f.data.safetynotes | nl2br }}</td>
  1148.         </tr>
  1149.         </tbody>
  1150.     </table>
  1151.     <table class="table table-striped">
  1152.         <thead>
  1153.         <tr>
  1154.             <th>Safety pictures</th>
  1155.         </tr>
  1156.         </thead>
  1157.         <tbody>
  1158.         <tr>
  1159.             <td>
  1160.                 {% if f.data.safetypic1 %}
  1161.                     {% if file_exists( f.uuid, f.data.safetypic1, '_medium' ) %}
  1162.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.safetypic1 }}" />
  1163.                     {% elseif file_exists( f.uuid, f.data.safetypic1 ) %}
  1164.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.safetypic1 }}" />
  1165.                     {% endif %}
  1166.                 {% endif %}
  1167.                 {% if f.data.safetypic2 %}
  1168.                     {% if file_exists( f.uuid, f.data.safetypic2, '_medium' ) %}
  1169.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.safetypic2 }}" />
  1170.                     {% elseif file_exists( f.uuid, f.data.safetypic2 ) %}
  1171.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.safetypic2 }}" />
  1172.                     {% endif %}
  1173.                 {% endif %}
  1174.                 {% if f.data.safetypic3 %}
  1175.                     {% if file_exists( f.uuid, f.data.safetypic3, '_medium' ) %}
  1176.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.safetypic3 }}" />
  1177.                     {% elseif file_exists( f.uuid, f.data.safetypic3 ) %}
  1178.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.safetypic3 }}" />
  1179.                     {% endif %}
  1180.                 {% endif %}
  1181.                 {% if f.data.safetypic4 %}
  1182.                     {% if file_exists( f.uuid, f.data.safetypic4, '_medium' ) %}
  1183.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/_medium/{{ f.data.safetypic4 }}" />
  1184.                     {% elseif file_exists( f.uuid, f.data.safetypic4 ) %}
  1185.                         <img class="thumb" src="/uploads/images/{{ f.uuid }}/{{ f.data.safetypic4 }}" />
  1186.                     {% endif %}
  1187.                 {% endif %}
  1188.             </td>
  1189.         </tr>
  1190.         </tbody>
  1191.     </table>
  1192.     <table class="table table-striped">
  1193.         <thead>
  1194.             <tr>
  1195.                 <th>Total Score</th>
  1196.                 <th class="h4">{{ f.totalScore|round }}%</th>
  1197.             </tr>
  1198.         </thead>
  1199.         <tbody>
  1200.             <tr>
  1201.                 <th>Star rating</th>
  1202.                 <td>
  1203.                     {% for x in 0..4 %}
  1204.                         {% if f.data.stars - x >= 1 %}
  1205.                             <i class="fas fa-star"></i>
  1206.                         {% elseif f.data.stars - x > 0 %}
  1207.                             <i class="fas fa-star-half-alt"></i>
  1208.                         {% else %}
  1209.                             <i class="far fa-star"></i>
  1210.                         {% endif %}
  1211.                     {% endfor %}
  1212.                 </td>
  1213.             </tr>
  1214.         </tbody>
  1215.     </table>
  1216.     <table class="table">
  1217.         <tr>
  1218.             <td>
  1219. <p><strong>1 and 2 Star:</strong> Below our minimum standards and cannot continue to be marketed without the improvements and recommendations contained within the report being undertaken within a reasonable timescale.</p>
  1220. <p><strong>3 Star:</strong> (Minimum Standard) Furnished and equipped to a comfortable standard. Generally simple in style and more functional than contemporary but with everything in good working order.</p>
  1221. <p><strong>3 1⁄2 Star:</strong> An improvement on 3 Star, often quite attractive and welcoming with a more practical, contemporary presentation, raising it above average.</p>
  1222.             <td>
  1223. <p><strong>4 Star:</strong> Very Good with a ‘Home from Home’ feeling. Good quality, attractive, generally well equipped with recent fixtures, fittings and furnishings, though perhaps not now in ‘as new’ condition.</p>
  1224. <p><strong>4 1⁄2 Star:</strong> High standards of comfort and presentation throughout, often in a desirable location with extra touches for a very enjoyable experience.</p>
  1225. <p><strong>5 Star:</strong> An excellent to exceptional property, normally in a beautiful location, providing high standards throughout.</p>
  1226.             </td>
  1227.             <td>
  1228. <p>
  1229. <strong>Star rating scores:</strong>
  1230. </p>
  1231. <p>
  1232. 1 Star - 34% - 47%<br/>
  1233. 2 Star - 48% - 59%<br/>
  1234. 3 Star - 60% - 67% <br/>
  1235. 3 1⁄2 Star - 68% - 74% <br/>
  1236. 4 Star - 75% - 83% <br/>
  1237. 4 1⁄2 Star - 84% - 90% <br/>
  1238. 5 Star - 91% - 100%
  1239. </p>
  1240.             </td>
  1241.         </tr>
  1242.     </table>
  1243. {% endblock %}