{% extends "layouts/base.html" %} {% load i18n %} {% block title %}{% if is_create %}{% trans "Create Template" %}{% else %}{% trans "Edit Template" %}{% endif %} - PX360{% endblock %} {% block content %}
{% trans "Back to Templates" %}

{% if is_create %}{% trans "Create Project Template" %}{% else %}{% trans "Edit Project Template" %}{% endif %}

{% if is_create %} {% trans "Create a reusable template for quality improvement projects" %} {% else %} {% trans "Update template details and task templates" %} {% endif %}

{% trans "Template Information" %}

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

{{ form.name.errors.0 }}

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

{{ form.is_active.errors.0 }}

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

{{ form.description.errors.0 }}

{% endif %}

{% trans "Task Templates" %}

{{ task_template_formset.management_form }}
{% for task_form in task_template_formset %}
{{ task_form.title }} {% if task_form.title.errors %}

{{ task_form.title.errors.0 }}

{% endif %}
{{ task_form.description }}
{{ task_form.DELETE }}
{% endfor %}
{% trans "Cancel" %}

{% trans "Help" %}

{% trans "What are templates?" %}

{% trans "Templates let you define standard project structures that can be reused across your organization." %}

{% trans "Task Templates" %}

{% trans "Add common tasks that should be created automatically when using this template." %}

{% endblock %} {% block extra_js %} {% endblock %}