Skip to content

Commit

Permalink
Improve card titles
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Oct 11, 2023
1 parent 2960752 commit 3b86fa3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
7 changes: 4 additions & 3 deletions lemarche/templates/tenders/_detail_card.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{% load bootstrap4 static array_choices_display humanize %}
{% load bootstrap4 static humanize array_choices_display get_verbose_name %}

<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:"" }}
Expand All @@ -17,11 +18,11 @@ <h1>
</div>
</div>
<div class="row text-bold">
<div class="col" title="Secteurs d'activité : {{ tender.sectors_full_list_string|safe }}">
<div class="col" title="{% get_verbose_name tender 'sectors' %} : {{ tender.sectors_full_list_string|safe }}">
<i class="ri-award-line"></i>
{{ tender.sectors_list_string|safe }}
</div>
<div class="col" title="Lieu d'éxécution">
<div class="col" title="{% get_verbose_name tender 'location' %}">
<i class="ri-map-pin-2-line"></i>
{{ tender.location_display|safe }}
</div>
Expand Down
8 changes: 4 additions & 4 deletions lemarche/templates/tenders/_list_item_network.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load static humanize %}
{% load static humanize get_verbose_name %}

<div class="card c-card c-card--marche c-card--link siae-card" role="button" data-url="{% url 'dashboard_networks:tender_detail' network.slug tender.slug %}">
<div class="card-body">
Expand All @@ -23,19 +23,19 @@ <h2 class="py-2">{{ tender.title }}</h2>
<hr />

<div class="row">
<div class="col-md-4" title="Secteurs d'activité">
<div class="col-md-4" title="{% get_verbose_name tender 'sectors' %} : {{ tender.sectors_full_list_string|safe }}">
{% if tender.sectors.count %}
<i class="ri-award-line"></i>
{{ tender.sectors_list_string|safe }}
{% endif %}
</div>
<div class="col-md-4 text-center" title="Lieu d'intervention">
<div class="col-md-4 text-center" title="{% get_verbose_name tender 'location' %}">
{% if tender.perimeters_list_string %}
<i class="ri-map-pin-2-line"></i>
{{ tender.location_display|safe }}
{% endif %}
</div>
<div class="col-md-4 text-center">
<div class="col-md-4 text-center" title="{% get_verbose_name tender 'amount' %}">
{% if tender.amount %}
<i class="ri-money-euro-circle-line"></i>
{{ tender.get_amount_display|default:"-" }}
Expand Down
8 changes: 4 additions & 4 deletions lemarche/templates/tenders/_list_item_siae.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% load static humanize %}
{% load static humanize get_verbose_name %}

<div class="card c-card c-card--marche c-card--link siae-card" role="button" data-url="{% url 'tenders:detail' tender.slug %}">
<div class="card-body">
Expand Down Expand Up @@ -30,19 +30,19 @@ <h2 class="py-2">{{ tender.title }}</h2>
<hr />

<div class="row">
<div class="col-md-4" title="Secteurs d'activité">
<div class="col-md-4" title="{% get_verbose_name tender 'sectors' %} : {{ tender.sectors_full_list_string|safe }}">
{% if tender.sectors.count %}
<i class="ri-award-line"></i>
{{ tender.sectors_list_string|safe }}
{% endif %}
</div>
<div class="col-md-4 text-center" title="Lieu d'intervention">
<div class="col-md-4 text-center" title="{% get_verbose_name tender 'location' %}">
{% if tender.perimeters_list_string %}
<i class="ri-map-pin-2-line"></i>
{{ tender.location_display|safe }}
{% endif %}
</div>
<div class="col-md-4 text-center">
<div class="col-md-4 text-center" title="{% get_verbose_name tender 'amount' %}">
{% if tender.amount %}
<i class="ri-money-euro-circle-line"></i>
{{ tender.get_amount_display|default:"-" }}
Expand Down

0 comments on commit 3b86fa3

Please sign in to comment.