{% extends 'v2/base.html.twig' %}
{% block title %}Property inspections Form{% endblock %}
{% block pagetitle %}Property inspections Form <a class="float-right" href="{{ path('v2_list') }}">Back to list</a>{% endblock %}
{% block body %}
<style>
.v2 legend, .v2 label {
font-weight: bold;
}
.v2 .custom-file-label {
font-weight: normal;
}
.v2 .form-group {
margin-bottom: 2rem;
}
.v2 .form-check-inline {
display: flex;
flex-wrap: wrap;
gap: 4px 1rem;
}
.v2 .form-check-inline .form-check {
flex-grow: 1;
padding: 0;
}
.v2 .form-check-inline label {
border: 1px solid #ccc;
padding: 0.4rem 0;
width: 100%;
border-radius: 0.25rem;
font-weight: normal;
}
.v2 .form-check-inline .form-check-text {
flex-grow: 0;
}
.v2 .form-check-inline .form-check-text label {
border: 0;
}
.v2 .form-check-inline .form-check-input {
display: block;
visibility: hidden;
width: 0px; height: 0px;
text-indent: -9999px;
}
.v2 .form-check-inline .form-check-input:checked + label {
background-color: #A3BA38;
border: 1px solid #A3BA38;
font-weight: normal;
color: white;
}
.v2 .form-check-inline .form-check-text .form-check-input:checked + label {
background-color: white;
color: #565656;
border: 0;
}
.v2 .has-error,
.v2 .has-error label {
border-color: red;
}
.v2 .nav-item .has-error {
/*background-color: #fcc;*/
/*color: #565656;*/
color: red;
}
.v2 .nav-item .has-error.active {
background-color: red;
color: white;
}
.v2 .alert-danger {
margin-top: 2rem;
margin-bottom: -1rem;
color: red;
background-color: white;
border-color: red;
}
@media (max-width: 767px) {
.form-check-inline .form-check {
width: 100%;
text-align: center;
}
}
.v2 hr {
margin-top: 4rem;
margin-bottom: 3rem;
}
</style>
<form method="post" id="form_form" enctype="application/x-www-form-urlencoded">
<input type="hidden" id="form_uuid" name="form[uuid]" value="{{ uuid ?? '' }}">
<input type="hidden" id="form_version" name="form[version]" value="0">
<div class="row v2">
<div class="col-md-12 col-12">
<ul class="nav nav-pills mb-3" id="myTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="home-tab" data-toggle="pill" href="#home" role="tab" aria-controls="home" aria-selected="true">Property Details</a>
</li>
<li class="nav-item">
<a class="nav-link" id="exterior-tab" data-toggle="pill" href="#exterior" role="tab" aria-controls="exterior" aria-selected="false">Exterior</a>
</li>
<li class="nav-item">
<a class="nav-link" id="general-tab" data-toggle="pill" href="#general" role="tab" aria-controls="general" aria-selected="false">General</a>
</li>
<li class="nav-item">
<a class="nav-link" id="public-tab" data-toggle="pill" href="#public" role="tab" aria-controls="public" aria-selected="false">Public areas</a>
</li>
<li class="nav-item">
<a class="nav-link" id="kitchen-tab" data-toggle="pill" href="#kitchen" role="tab" aria-controls="kitchen" aria-selected="false">Kitchen</a>
</li>
<li class="nav-item">
<a class="nav-link" id="bedrooms-tab" data-toggle="pill" href="#bedrooms" role="tab" aria-controls="bedrooms" aria-selected="false">Bedrooms</a>
</li>
<li class="nav-item">
<a class="nav-link" id="bathrooms-tab" data-toggle="pill" href="#bathrooms" role="tab" aria-controls="bathrooms" aria-selected="false">Bathrooms</a>
</li>
<li class="nav-item">
<a class="nav-link" id="safety-tab" data-toggle="pill" href="#safety" role="tab" aria-controls="safety" aria-selected="false">Safety</a>
</li>
{# <li class="nav-item ml-auto">#}
{# <button type="submit" class="btn btn-primary">Save</button>#}
{# </li>#}
</ul>
<div id="errors"></div>
<div class="tab-content my-5 mx-3" id="myTabContent">
<div class="tab-pane room-tab fade show active" id="home" role="tabpanel" aria-labelledby="home-tab">
<div class="form-group">
<label for="forms_date" class="required">Date</label>
<input type="date" id="forms_date" name="forms[date]" required="required" class="form-control">
</div>
<div class="form-group">
<label for="forms_propname" class="required">Property name</label>
<input type="text" id="forms_propname" name="forms[propname]" required="required" class="form-control">
</div>
<div class="form-group">
<label for="forms_totalScore">Total Score</label>
<input type="text" id="forms_totalScore" name="forms[totalScore]" disabled="disabled" class="col-2 form-control">
</div>
<div class="form-group">
<label for="forms_stars">Star rating</label>
<input type="text" id="forms_stars" name="forms[stars]" disabled="disabled" class="col-2 form-control">
</div>
</div>
<div class="tab-pane room-tab fade" id="exterior" role="tabpanel" aria-labelledby="exterior-tab">
{% include "v2/_score.html.twig" with { label: 'Appearance of building', name: 'extbuildappear', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Parking, garden and additional facilities', name: 'extparkfacility', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Environment and setting', name: 'extsiding', required: true } %}
{% include "v2/_subtotal.html.twig" with { label: 'Exterior Total', name: 'exteriorTotal' } %}
<hr>
{% include "v2/_yesno.html.twig" with { label: 'Property Sign', name: 'extpropertysign' } %}
{% include "v2/_yesno.html.twig" with { label: 'Key Safe', name: 'extkeysafe' } %}
{% include "v2/_yesno.html.twig" with { label: 'Emergency Key Safe', name: 'extemergencykeysafe' } %}
{% include "v2/_yesno.html.twig" with { label: 'Exterior Lighting', name: 'extlighting' } %}
{% include "v2/_yesno.html.twig" with { label: 'Gates', name: 'extgates', 'na': true } %}
{% include "v2/_yesno.html.twig" with { label: 'Garden Furniture', name: 'extgardenfurniture', 'na': true } %}
{% include "v2/_yesno.html.twig" with { label: 'Barbecue', name: 'extbarbecue', 'na': true } %}
<hr>
{% include "v2/_text.html.twig" with { label: 'Notes', name: 'extnotes' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 1', name: 'extpic1' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 2', name: 'extpic2' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 3', name: 'extpic3' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 4', name: 'extpic4' } %}
</div>
<div class="tab-pane room-tab fade" id="general" role="tabpanel" aria-labelledby="general-tab">
{% include "v2/_score.html.twig" with { label: 'Information Pack', name: 'generalinformationpack', required: true, notes: 'Including rubbish instructions' } %}
{% include "v2/_score.html.twig" with { label: 'Welcome Pack', name: 'generalwelcomepack', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Wi-Fi', name: 'generalwifi', required: true, notes: '0-5 Poor/5-10 Satisfactory/10-20 Good/20-50 Very good/50+ Excellent (Mbps)' } %}
{% include "v2/_text.html.twig" with { label: 'Wi-Fi Login info and speed', name: 'generalwifilogininfoandspeed' } %}
{% include "v2/_score.html.twig" with { label: 'Space and ease of use', name: 'generalspaceandeaseofuse', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Accessories and personal touches', name: 'generalaccessories', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Cleanliness', name: 'generalcleanliness', required: true } %}
{% include "v2/_subtotal.html.twig" with { label: 'General Total', name: 'generalTotal' } %}
<hr>
{% include "v2/_yesno.html.twig" with { label: 'Cot', name: 'generalcot' } %}
{% include "v2/_yesno.html.twig" with { label: 'High-chair', name: 'generalhighchair' } %}
{% include "v2/_yesno.html.twig" with { label: 'Stair gate', name: 'generalstairgate', 'na': true } %}
{% include "v2/_yesno.html.twig" with { label: 'Vacuum', name: 'generalvacuum' } %}
{% include "v2/_yesno.html.twig" with { label: 'Ironing board and iron', name: 'generaliron' } %}
{% include "v2/_yesno.html.twig" with { label: 'Washing machine', name: 'generalwashingmachine' } %}
{% include "v2/_yesno.html.twig" with { label: 'Tumble dryer', name: 'generaltumbledryer' } %}
<hr>
{% include "v2/_text.html.twig" with { label: 'Notes', name: 'generalnotes' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 1', name: 'generalpic1' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 2', name: 'generalpic2' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 3', name: 'generalpic3' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 4', name: 'generalpic4' } %}
</div>
<div class="tab-pane room-tab fade" id="public" role="tabpanel" aria-labelledby="public-tab">
{% include "v2/_score.html.twig" with { label: 'Decoration', name: 'publicdecoration', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Furniture and soft furnishings', name: 'publicfurniture', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Flooring', name: 'publicflooring', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Lighting and heating', name: 'publiclighting', required: true } %}
{% include "v2/_subtotal.html.twig" with { label: 'Public Total', name: 'publicTotal' } %}
<hr>
{% include "v2/_yesno.html.twig" with { label: 'Curtains/blinds', name: 'publiccurtains' } %}
{% include "v2/_yesno.html.twig" with { label: 'Dining table', name: 'publicdiningtable' } %}
{% include "v2/_yesno.html.twig" with { label: 'Coffee table', name: 'publiccoffeetable' } %}
{% include "v2/_yesno.html.twig" with { label: 'Lamps', name: 'publiclamps' } %}
{% include "v2/_yesno.html.twig" with { label: 'TV', name: 'publictv', 'notes': 'If you do not already provide a Smart TV, we highly recommend one is provided' } %}
{% include "v2/_yesno.html.twig" with { label: 'Fireproof bin (if fireplace)', name: 'publicfireproofbin' } %}
<hr>
{% include "v2/_text.html.twig" with { label: 'Notes', name: 'publicnotes' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 1', name: 'publicpic1' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 2', name: 'publicpic2' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 3', name: 'publicpic3' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 4', name: 'publicpic4' } %}
</div>
<div class="tab-pane room-tab fade" id="kitchen" role="tabpanel" aria-labelledby="kitchen-tab">
{% include "v2/_score.html.twig" with { label: 'Decoration', name: 'kitchendecoration', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Furniture and fittings', name: 'kitchenfurniture', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Flooring', name: 'kitchenflooring', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Lighting, heating and ventilation', name: 'kitchenlighting', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Electrical and gas equipment', name: 'kitchenequipment', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Crockery, cutlery and glassware', name: 'kitchencrockerycutleryglassware', required: true } %}
{% include "v2/_score.html.twig" with { label: 'Pots, pans and utensils', name: 'kitchenpots', required: true } %}
{% include "v2/_subtotal.html.twig" with { label: 'Kitchen Total', name: 'kitchenTotal' } %}
<hr>
{% include "v2/_yesno.html.twig" with { label: 'Cooker', name: 'kitchencooker' } %}
{% include "v2/_yesno.html.twig" with { label: 'Fridge', name: 'kitchenfridge' } %}
{% include "v2/_yesno.html.twig" with { label: 'Freezer/ice box', name: 'kitchenfreezer' } %}
{% include "v2/_yesno.html.twig" with { label: 'Dishwasher', name: 'kitchendishwasher' } %}
{% include "v2/_yesno.html.twig" with { label: 'Microwave', name: 'kitchenmicrowave' } %}
{% include "v2/_yesno.html.twig" with { label: 'Toaster', name: 'kitchentoaster' } %}
{% include "v2/_yesno.html.twig" with { label: 'Kettle', name: 'kitchenkettle' } %}
{% include "v2/_yesno.html.twig" with { label: 'Saucepans', name: 'kitchensaucepans' } %}
{% include "v2/_yesno.html.twig" with { label: 'Frying pans', name: 'kitchenfryingpans' } %}
{% include "v2/_yesno.html.twig" with { label: 'Cookware', name: 'kitchencookware' } %}
{% include "v2/_yesno.html.twig" with { label: 'Utensils', name: 'kitchenutensils' } %}
{% include "v2/_yesno.html.twig" with { label: 'Crockery', name: 'kitchencrockery' } %}
{% include "v2/_yesno.html.twig" with { label: 'Cutlery', name: 'kitchencutlery' } %}
{% include "v2/_yesno.html.twig" with { label: 'Glasses', name: 'kitchenglasses' } %}
{% include "v2/_yesno.html.twig" with { label: 'Table mats', name: 'kitchentablemats' } %}
{% include "v2/_yesno.html.twig" with { label: 'Salt and pepper', name: 'kitchensaltandpepper' } %}
{% include "v2/_yesno.html.twig" with { label: 'Washing up bowl', name: 'kitchenwashingupbowl' } %}
{% include "v2/_yesno.html.twig" with { label: 'Cleaning materials', name: 'kitchencleaningmaterials' } %}
<hr>
{% include "v2/_text.html.twig" with { label: 'Notes', name: 'kitchennotes' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 1', name: 'kitchenpic1' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 2', name: 'kitchenpic2' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 3', name: 'kitchenpic3' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 4', name: 'kitchenpic4' } %}
</div>
<div class="tab-pane room-tab fade" id="bedrooms" role="tabpanel" aria-labelledby="bedrooms-tab">
<ul class="nav nav-pills mb-3" id="bedTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="bedroom_1-tab" data-toggle="pill" href="#bedroom_1" role="tab" aria-controls="bedroom_1" aria-selected="true">Bedroom 1</a>
</li>
<li class="nav-item">
<button class="btn" id="btn_add_bedroom" data-rooms="1">+ Add new bedroom</button>
</li>
</ul>
<div class="tab-content my-5 mx-3" id="bedTabContent">
<div class="tab-pane fade show active" id="bedroom_1" role="tabpanel" aria-labelledby="bedroom_1-tab">
{% include "v2/_bedroom.html.twig" with { id: 1 } %}
</div>
</div>
{% include "v2/_subtotal.html.twig" with { label: 'Bedrooms Total', name: 'bedroomsTotal' } %}
{% include "v2/_text.html.twig" with { label: 'Notes', name: 'bedroomsnotes' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 1', name: 'bedroomspic1' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 2', name: 'bedroomspic2' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 3', name: 'bedroomspic3' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 4', name: 'bedroomspic4' } %}
</div>
<div class="tab-pane room-tab fade" id="bathrooms" role="tabpanel" aria-labelledby="bathrooms-tab">
<ul class="nav nav-pills mb-3" id="bathTab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="bathroom_1-tab" data-toggle="pill" href="#bathroom_1" role="tab" aria-controls="bathroom_1" aria-selected="true">Bathroom 1</a>
</li>
<li class="nav-item">
<button class="btn" id="btn_add_bathroom" data-rooms="1">+ Add new bathroom</button>
</li>
</ul>
<div class="tab-content my-5 mx-3" id="bathTabContent">
<div class="tab-pane fade show active" id="bathroom_1" role="tabpanel" aria-labelledby="bathroom_1-tab">
{% include "v2/_bathroom.html.twig" with { id: 1 } %}
</div>
</div>
{% include "v2/_subtotal.html.twig" with { label: 'Bathrooms Total', name: 'bathroomsTotal' } %}
{% include "v2/_text.html.twig" with { label: 'Notes', name: 'bathroomsnotes' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 1', name: 'bathroomspic1' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 2', name: 'bathroomspic2' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 3', name: 'bathroomspic3' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 4', name: 'bathroomspic4' } %}
</div>
<div class="tab-pane room-tab fade" id="safety" role="tabpanel" aria-labelledby="safety-tab">
{% include "v2/_yesno.html.twig" with { label: 'Fire risk assessment', name: 'safetyfire', notes: 'Review annually', required: true, date: true } %}
{% include "v2/_yesno.html.twig" with { label: 'Boiler safety certificate', name: 'safetyboiler', 'na': true, required: true, date: true } %}
{% include "v2/_yesno.html.twig" with { label: 'PAT', name: 'safetypat', required: true, date: true } %}
{% include "v2/_yesno.html.twig" with { label: 'EICR', name: 'safetyeicr', required: true, date: true } %}
{% include "v2/_yesno.html.twig" with { label: 'Legionella checklist', name: 'safetylegionella', notes: 'Review annually', required: true, date: true } %}
{% include "v2/_yesno.html.twig" with { label: 'Public liability insurance', name: 'safetypublicliability', required: true, date: true } %}
{% include "v2/_yesno.html.twig" with { label: 'Chimney sweep certificate', name: 'safetychimney', 'na': true, required:true, date: true } %}
{# {% include "v2/_subtotal.html.twig" with { label: 'Safety Total', name: 'safetyTotal' } %}#}
<input type="hidden" id="forms_safetyTotal" name="forms[safetyTotal]">
<hr>
{% include "v2/_yesno.html.twig" with { label: 'Fire alarms', name: 'safetyfirealarms', notes: '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.' } %}
{% include "v2/_yesno.html.twig" with { label: 'Carbon Monoxide alarms', name: 'safetyco', notes: 'In appropriate places and in date', 'na': true } %}
{% include "v2/_yesno.html.twig" with { label: 'Fire extinguishers on each floor', name: 'safetyfireextinguishers', notes: '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.' } %}
{% include "v2/_yesno.html.twig" with { label: 'Fire blanket', name: 'safetyfireblanket', notes: 'The guidance is that the fire blanket is located in a visible and easily accessible location and that it is mounted on the wall.' } %}
{% include "v2/_yesno.html.twig" with { label: 'Emergency lighting', name: 'safetyemergencylighting', notes: 'The guidance is that you have emergency lighting sources in suitable places' } %}
{% include "v2/_yesno.html.twig" with { label: 'Fire action sign in place', name: 'safetyfireactionsign', notes: 'Fire action notice in place (with address)' } %}
{% include "v2/_yesno.html.twig" with { label: 'Blind cords secured', name: 'safetybindcords', 'na': true } %}
{% include "v2/_yesno.html.twig" with { label: 'Exit door keyless escape access', name: 'exitdoorkeylessescape', notes: 'The guidance is that all exit doors should have keyless escape access' } %}
<hr>
{% include "v2/_text.html.twig" with { label: 'Notes', name: 'safetynotes' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 1', name: 'safetypic1' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 2', name: 'safetypic2' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 3', name: 'safetypic3' } %}
{% include "v2/_file.html.twig" with { label: 'Picture 4', name: 'safetypic4' } %}
</div>
</div>
<div class="m-3 d-flex justify-content-between align-items-baseline">
<span>
<button type="submit" class="btn btn-primary" formnovalidate title="Check for missing fields and save">Save</button>
<button id="btn-save-draft" class="btn btn-outline-primary ml-2" formnovalidate title="Save incomplete inspection">{{ button_label|default('Save Draft') }}</button>
</span>
<a id="scrollToTop" href="#top">↑ Top</a>
</div>
</div>
</div>
</form>
{% endblock %}
{% block javascripts %}
{{ parent() }}
{% endblock %}