{% extends 'layouts/base.html' %} {% load i18n %} {% block title %}{% if action %}{% trans "Edit Action Plan" %}{% else %}{% trans "Create Action Plan" %}{% endif %} - PX360{% endblock %} {% block content %}

{% if action %}{% trans "Edit Action Plan" %}{% else %}{% trans "Create Action Plan" %}{% endif %}

{% if action %}{% trans "Update action plan details" %}{% else %}{% trans "Create a new improvement action plan" %}{% endif %}

{% csrf_token %} {% if linked_complaint_id %} {% endif %} {% if form.errors %}

{% trans "Please fix the following errors:" %}

    {% for field in form %} {% for error in field.errors %}
  • {{ field.label }}: {{ error }}
  • {% endfor %} {% endfor %} {% for error in form.non_field_errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% if linked_complaint %}

{{ linked_complaint.reference_number }}

{{ linked_complaint.title|truncatechars:60 }}

{% endif %}
{% trans "Cancel" %}
{% endblock %}