{% extends "admin/base_modal.html" %} {% load i18n %} {% block modal_id %}id_submit_for_epfp_approval{% endblock %} {% block modal_header_text %}{{ submit_for_epfp_approval_title }}{% endblock %} {% block modal_body %} {% if current.approval_status == current.APPROVAL_DRAFT %}

Are you sure you wish to submit this for approval?

{% csrf_token %}
{% elif current.approval_status == current.APPROVAL_SUBMITTED %}

Are you sure you wish to submit this for approval as the role required? Please read the following carefully and ensure that all information is correct before approval.

The overall level of risk for this ePFP is {{ current.maximum_risk_html }}. The required approver role for this level of risk is {{ current.maximum_risk_role }}.
I confirm that the persons who have prepared this plan and have provided the above endorsements are competent and authorised to do so and I confirm that the plan has been prepared in accordance with the DEC procedure for planning prescribed fire plans.
{% csrf_token %}
{{ submit_for_epfp_approval_form.form.valid_to }} {% if submit_for_epfp_approval_form.form.valid_to.errors %} {% for error in submit_for_epfp_approval_form.form.valid_to.errors %}

{{ error }}

{% endfor %} {% endif %} {{ submit_for_epfp_approval_form.form.initial_valid_to }} {{ submit_for_epfp_approval_form.form.prescription }}
{% elif current.approval_status == current.APPROVAL_APPROVED %}

Are you sure to wish to extend the approval of this ePFP for two weeks from {{ current.current_approval.valid_to }} to {{ current.current_approval.next_valid_to }}?

Approval History
I confirm that the persons who have prepared this plan and have provided the above endorsements are competent and authorised to do so and I confirm that the plan has been prepared in accordance with the DEC procedure for planning prescribed fire plans.
{% csrf_token %}
{% endif %} {% endblock %} {% block modal_btn_close_label %} {% if current.approval_status == current.APPROVAL_DRAFT %} {% trans 'Go back' %} {% elif current.approval_status == current.APPROVAL_APPROVED %} {% trans 'Cancel' %} {% endif %} {% endblock %} {% block modal_btn_primary_label %} {% if current.approval_status == current.APPROVAL_DRAFT %} {% trans 'Submit' %} {% elif current.approval_status == current.APPROVAL_APPROVED and not current.is_closed %} {% trans 'Extend Approval' %} {% else %} {% trans 'Approve' %} {% endif %} {% endblock %} {% block modal_btn_close %} {% if current.approval_status == current.APPROVAL_SUBMITTED %} {% else %} {{ block.super }} {% endif %} {% endblock %} {% block modal_btn_primary_onclick %}return document.getElementById('id_submit_for_epfp_approval_form_submit').click();{% endblock %}