Add System and Firm Admin task controls
This commit is contained in:
@@ -186,7 +186,21 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="px-4 py-3 text-right align-top">
|
||||
{% if can_manage_tasks %}<a href="/services/templates/{{ service.id }}/tasks/{{ task.id }}/edit" class="text-sm font-medium text-brand-700 hover:underline">Edit</a>{% endif %}
|
||||
{% if can_manage_tasks %}
|
||||
<div class="flex flex-col items-end gap-2">
|
||||
<a href="/services/templates/{{ service.id }}/tasks/{{ task.id }}/edit"
|
||||
class="rounded-lg border border-brand-200 bg-brand-50 px-3 py-1.5 text-xs font-semibold text-brand-700 hover:bg-brand-100">
|
||||
Edit
|
||||
</a>
|
||||
<form method="post" action="/services/templates/{{ service.id }}/tasks/{{ task.id }}/toggle-active">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
|
||||
<button type="submit"
|
||||
class="rounded-lg border px-3 py-1.5 text-xs font-semibold {% if task.is_active %}border-amber-300 bg-amber-50 text-amber-700 hover:bg-amber-100{% else %}border-emerald-300 bg-emerald-50 text-emerald-700 hover:bg-emerald-100{% endif %}">
|
||||
{{ 'Disable for Firm' if task.is_active else 'Enable for Firm' }}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user