{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% if is_create %}{% trans "Add Task" %}{% else %}{% trans "Edit Task" %}{% endif %} - PX360{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% if pdca_phase %} {% trans "Back to Phase" %} {% else %} {% trans "Back to Project" %} {% endif %}

{% if is_create %}{% trans "Add Task" %}{% else %}{% trans "Edit Task" %}{% endif %}

{% if is_create %} {% trans "Create a new task for" %} {{ project.name }} {% if pdca_phase %} — {{ pdca_phase.get_phase_display }} {% trans "phase" %}{% endif %} {% else %} {% trans "Update task details" %} {% endif %}

{% trans "Task Information" %}

{% csrf_token %}
{{ form.title }} {% if form.title.errors %}

{{ form.title.errors.0 }}

{% endif %}
{{ form.description }} {% if form.description.errors %}

{{ form.description.errors.0 }}

{% endif %}
{{ form.status }} {% if form.status.errors %}

{{ form.status.errors.0 }}

{% endif %}
{{ form.assigned_to }} {% if form.assigned_to.errors %}

{{ form.assigned_to.errors.0 }}

{% endif %}
{{ form.pdca_phase }} {% if form.pdca_phase.errors %}

{{ form.pdca_phase.errors.0 }}

{% endif %}
{{ form.due_date }} {% if form.due_date.errors %}

{{ form.due_date.errors.0 }}

{% endif %}
{% if pdca_phase %} {% trans "Cancel" %} {% else %} {% trans "Cancel" %} {% endif %}
{% endblock %}