From 2e06690cfa8a3d6e91bc214032af546cf2891aa1 Mon Sep 17 00:00:00 2001 From: "madjid.asa" Date: Wed, 21 Feb 2024 12:10:13 +0100 Subject: [PATCH 1/6] add component to closed badge --- lemarche/templates/tenders/_closed_badge.html | 3 +++ lemarche/templates/tenders/_detail_card.html | 8 ++------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 lemarche/templates/tenders/_closed_badge.html diff --git a/lemarche/templates/tenders/_closed_badge.html b/lemarche/templates/tenders/_closed_badge.html new file mode 100644 index 000000000..1dddb2eab --- /dev/null +++ b/lemarche/templates/tenders/_closed_badge.html @@ -0,0 +1,3 @@ + + {{ tender_kind_display|default:tender.get_kind_display }} clôturé le {{ tender.deadline_date|default:"" }} + \ No newline at end of file diff --git a/lemarche/templates/tenders/_detail_card.html b/lemarche/templates/tenders/_detail_card.html index 5b16aed13..265e05876 100644 --- a/lemarche/templates/tenders/_detail_card.html +++ b/lemarche/templates/tenders/_detail_card.html @@ -1,11 +1,8 @@ {% load bootstrap4 static humanize array_choices_display %}
-
- Date limite de réponse : {{ tender.deadline_date|default:"" }} - {% if not source_form and tender.deadline_date_outdated %} - Clôturé - {% endif %} +
+ {% include "tenders/_closed_badge.html" with tender=tender %}
@@ -13,7 +10,6 @@

{{ tender.title }} -

From 19581afccc7d34d02beabb5f04389886b1abb0cc Mon Sep 17 00:00:00 2001 From: "madjid.asa" Date: Wed, 21 Feb 2024 12:10:30 +0100 Subject: [PATCH 2/6] update list item --- lemarche/templates/tenders/_card_list_item.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemarche/templates/tenders/_card_list_item.html b/lemarche/templates/tenders/_card_list_item.html index 93d599d99..edb77c815 100644 --- a/lemarche/templates/tenders/_card_list_item.html +++ b/lemarche/templates/tenders/_card_list_item.html @@ -2,7 +2,7 @@