From 52254144b291981911f479780f6fbe485da89085 Mon Sep 17 00:00:00 2001 From: Morten Madsen Lyngstad Date: Tue, 8 Jul 2025 07:56:02 +0200 Subject: [PATCH] Reorganize project detail layout and conditional rendering for verification button --- src/staff/templates/staff/project_detail.html | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/staff/templates/staff/project_detail.html b/src/staff/templates/staff/project_detail.html index bcd80534..1a6b19e3 100644 --- a/src/staff/templates/staff/project_detail.html +++ b/src/staff/templates/staff/project_detail.html @@ -4,14 +4,16 @@ {% block content %}

Project {{ object }}

-
-
- - {% object-detail object=object %} +
back {% url 'staff:projects-verify' pk=object.pk as verify_url %} - {% action-button action=verify_url class="btn-secondary text-white" submit_text="Mark as verified" csrf_token=csrf_token %} + {% if object.verified_at is null %} + {% action-button action=verify_url class="btn-secondary text-white" submit_text="Mark as verified" csrf_token=csrf_token %} + {% endif %}
+ + {% object-detail object=object %} + {% endblock %}