{% extends 'v2/base.html.twig' %}
{% block title %}Delete inspection{% endblock %}
{% block pagetitle %}Delete inspection <a class="float-right" href="{{ path('forms_index') }}">Back to list</a>
{% endblock %}
{% block body %}
<div id="form_delete_confirmation" class="row">
<div class="col-8">
<p class="text-danger">Are you sure you want to delete this inspection?</p>
<ul>
<li class="form-delete-propname">{% if f.propname is defined %}{{ f.propname }}{% endif %}</li>
</ul>
<form id="form_delete_db" action="{{ path('v2_form_delete_confirm') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token('delete') }}">
<input type="hidden" name="uuid" value="{{ f.uuid }}" />
<button name="delete" class="btn btn-danger">Yes, I'm sure I want to delete it</button>
</form>
<p></p>
<form id="form_delete_cache" class="mt-5" action="{{ path('forms_index') }}">
<p class="text-muted">The web browser has saved an offline version of this inspection so that you can use
it if there is no internet connection. Clearing the offline version on this web browser can
sometimes fix problems, but you will lose any changes that have not been uploaded.</p>
<button name="cache" class="btn btn-light form-delete-cache form-delete-cache-only"
>Clear offline version</button>
</form>
<p class="mt-3"><a href="{{ path('v2_list') }}">Back to list</a></p>
</div>
</div>
{% endblock %}