Reconcile firm tasks fully with system defaults

This commit is contained in:
A R R R Associates
2026-09-19 16:02:07 +05:30
parent 5cee4f8de4
commit 53732a7270
3 changed files with 259 additions and 56 deletions
@@ -68,12 +68,10 @@
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<button class="rounded-xl border border-brand-300 px-4 py-2 text-sm font-medium text-brand-700 hover:bg-brand-50" type="submit">Sync System Defaults</button>
</form>
{% if system_update_available_count > 0 %}
<form method="post" action="/services/templates/{{ service.id }}/system-updates/upgrade-all" onsubmit="return confirm('Upgrade all {{ system_update_available_count }} firm task(s) with pending system updates to the latest System Default? Firm-only tasks will remain unchanged. Safe pending/unstarted tasks in open engagements will be synchronized; started, completed and reviewed history will be preserved.');">
<form method="post" action="/services/templates/{{ service.id }}/system-updates/upgrade-all" onsubmit="return confirm('Fully align this firm service checklist to the current System Default? All system-derived tasks will follow the current system version and sequence; system-retired tasks will be retired; genuine firm-only tasks will remain. Existing historical, started, completed and reviewed engagement work will be preserved.');">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<button class="rounded-xl bg-violet-700 px-4 py-2 text-sm font-semibold text-white hover:bg-violet-800" type="submit">Upgrade All to System ({{ system_update_available_count }})</button>
<button class="rounded-xl bg-violet-700 px-4 py-2 text-sm font-semibold text-white hover:bg-violet-800" type="submit">Full Upgrade to System{% if system_update_available_count > 0 %} ({{ system_update_available_count }} pending){% endif %}</button>
</form>
{% endif %}
</div>
{% endif %}
</div>
@@ -178,11 +176,11 @@
<div class="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<div>
<h3 class="text-sm font-semibold text-violet-950">System updates awaiting firm decision</h3>
<p class="mt-1 text-xs text-violet-800">{{ system_update_available_count }} customized task(s) have a newer system revision. Use <span class="font-semibold">Upgrade All to System</span> for full alignment, or continue using the existing task-by-task Upgrade / Keep controls below.</p>
<p class="mt-1 text-xs text-violet-800">{{ system_update_available_count }} customized task(s) have a newer system revision. Use <span class="font-semibold">Full Upgrade to System</span> to reconcile the complete system-derived checklist, or continue using the existing task-by-task Upgrade / Keep controls below.</p>
</div>
<form method="post" action="/services/templates/{{ service.id }}/system-updates/upgrade-all" onsubmit="return confirm('Upgrade all {{ system_update_available_count }} firm task(s) with pending system updates to the latest System Default? Firm-only tasks will remain unchanged. Safe pending/unstarted tasks in open engagements will be synchronized; started, completed and reviewed history will be preserved.');">
<form method="post" action="/services/templates/{{ service.id }}/system-updates/upgrade-all" onsubmit="return confirm('Fully align every system-derived task for this firm/service to the current System Default? Genuine firm-only tasks and protected engagement history will remain unchanged.');">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<button class="whitespace-nowrap rounded-xl bg-violet-700 px-4 py-2 text-sm font-semibold text-white hover:bg-violet-800" type="submit">Upgrade All to System ({{ system_update_available_count }})</button>
<button class="whitespace-nowrap rounded-xl bg-violet-700 px-4 py-2 text-sm font-semibold text-white hover:bg-violet-800" type="submit">Full Upgrade to System</button>
</form>
</div>
</section>