{% extends "ui/templates/base/layout.html" %} {% block content %}

{{ service.service_name }}

System default task templates for {{ service.service_code }}

{% if request.query_params.get('imported') %}
Excel import completed: {{ request.query_params.get('created','0') }} created, {{ request.query_params.get('updated','0') }} updated, {{ request.query_params.get('retired','0') }} retired.{% if request.query_params.get('full_sync') == '1' %} Full Synchronization was applied.{% endif %}
{% endif %} {% if request.query_params.get('import_error') %}
Excel import failed validation. No partial update was committed. Review the workbook and try again.
{% endif %}
Active System Defaults
{{ active_default_task_count }}

These tasks are available for synchronization to firms and new engagement work.

Retired System Defaults
{{ retired_default_task_count }}

Soft-retired tasks remain in the database so historical engagement and audit records are preserved.

Export · Edit · Re-import This Service

Export this service's current tasks, edit the Import Ready sheet, then re-import. Existing exports now carry a stable system_task_id so renaming and resequencing update the correct task.

System Default Task List

Active tasks are shown by default. Retired tasks remain available for audit/history review.

{% if show_retired %}Hide Retired{% else %}Show Retired ({{ retired_default_task_count }}){% endif %}
{% for task in display_default_tasks %}
{{ task.sequence_no }}. {{ task.task_name }}
Role: {{ task.default_role_name or '-' }} · Mandatory: {{ 'Yes' if task.is_mandatory else 'No' }} · Review: {{ ((task.normal_review_role or 'manager').replace('_',' ').title()) if task.requires_review else 'No' }} · AQMM: {{ 'Yes' if task.is_aqmm_task else 'No' }}
{{ 'Active' if task.is_active else 'Inactive' }} Edit
{% if task.description %}

{{ task.description }}

{% endif %}
{% else %}
No active default tasks configured. Use Show Retired to view inactive historical defaults.
{% endfor %}

Add Default Task Template

Optional ERP tool linked to the task. Existing task workflow remains unchanged.

AQMM / Quality Control Tagging
{% endblock %}