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 }} -