feat(templates/projects): add manage statuses button and restricted mode UI
Provides admin UI to manage statuses and prevents moving tickets to completed statuses
This commit is contained in:
5 files changed
+330
-39
No files matched your search
@@ -17,7 +17,7 @@
|
||||
<p class="text-gray-500 dark:text-gray-400 text-sm mt-1">{{ page_obj.paginator.count }} total projects</p>
|
||||
</div>
|
||||
<div class="flex items-center gap-2">
|
||||
{% if request.user.role != "member" %}
|
||||
{% if request.user.is_admin %}
|
||||
<a href="{% url 'project-create' %}" class="dk-btn dk-btn-primary text-sm"><i class="fas fa-plus"></i> New Project</a>
|
||||
{% endif %}
|
||||
<form class="flex gap-2" method="get">
|
||||
@@ -215,7 +215,7 @@
|
||||
<td colspan="20" class="text-center py-12 text-gray-400">
|
||||
<i class="fas fa-folder-open text-4xl mb-3 block text-gray-300 dark:text-gray-600"></i>
|
||||
<p class="text-sm font-medium text-gray-500 dark:text-gray-400">No projects yet</p>
|
||||
{% if request.user.role != "member" %}
|
||||
{% if request.user.is_admin %}
|
||||
<a href="{% url 'project-create' %}" class="text-primary text-sm mt-2 inline-block hover:underline">Create your first project</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
Reference in new issue
Block a user