Skip to content

Commit

Permalink
add component to closed badge
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Feb 21, 2024
1 parent bc91e10 commit 2e06690
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions lemarche/templates/tenders/_closed_badge.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<span class="badge badge-xs badge-base badge-pill badge-{{ tender.kind|lower }}">
{{ tender_kind_display|default:tender.get_kind_display }} clôturé le {{ tender.deadline_date|default:"" }}
</span>
8 changes: 2 additions & 6 deletions lemarche/templates/tenders/_detail_card.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,15 @@
{% load bootstrap4 static humanize array_choices_display %}

<div class="card c-card c-card--marche siae-card rounded-lg shadow-lg">
<div class="card-header text-right bg-marche text-white fs-sm rounded-top rounded-lg p-3 mb-0">
Date limite de réponse : {{ tender.deadline_date|default:"" }}
{% if not source_form and tender.deadline_date_outdated %}
<span class="badge badge-xs badge-base badge-pill badge-pilotage">Clôturé</span>
{% endif %}
<div class="card-header fs-sm rounded-top rounded-lg px-5">
{% include "tenders/_closed_badge.html" with tender=tender %}
</div>
<div class="card-body pb-5 px-5">
<!-- title & header -->
<div class="row py-4">
<div class="col-md-12">
<h1>
{{ tender.title }}
<span class="fs-sm badge badge-base badge-pill badge-{{ tender.kind|lower }} float-right" aria-hidden="true">{{ tender_kind_display|default:tender.get_kind_display }}</span>
</h1>
</div>
</div>
Expand Down

0 comments on commit 2e06690

Please sign in to comment.