Skip to content

Commit

Permalink
WIP: update events forms & lists
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodeloo committed Sep 28, 2023
1 parent 8958cdd commit 1c7f8e7
Showing 1 changed file with 29 additions and 31 deletions.
60 changes: 29 additions & 31 deletions lacommunaute/templates/event/event_month_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,44 +31,42 @@ <h1 class="s-title-01__title h1"><strong>Les évènements à venir</strong></h1>

<div class="c-box">
<div class="d-flex flex-column flex-md-row align-items-md-center justify-content-md-between">
<h3 class="h4 mb-0">
XX évenement(s)
</h3>
<h3 class="h4 mb-0">XX évenement(s)</h3>
<div class="flex-column flex-md-row btn-group btn-group-sm btn-group-action" role="group" aria-label="Actions sur les évenements">
<a href="{% url 'event:create' %}" class="btn btn-primary btn-ico justify-content-center mt-3 mt-md-0">
<i class="ri-add-line ri-lg" aria-hidden="true"></i>
<span>{% trans "Post a new Public Event" %}</span>
</a>
</div>
</div>
<div class="table-responsive-lg">
<table class="table mt-3 mt-md-4">
<caption class="sr-only">Liste des évenements</caption>
<thead>
<tr>
<th scope="col">Métiers</th>
<th scope="col">Localisation</th>
<th scope="col">Nbre de postes</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<a href="/siae/job_description/19/card" class="btn-link" aria-label="Lien vers fiche de poste : 'Jardinier public'" title="Jardinier public">
Jardinier public
</a>
</td>
<td>
<span class="d-flex align-items-center">
<i class="ri-map-pin-line mr-1" aria-hidden="true"></i>
<span aria-label="Tarascon (13)" title="Tarascon (13)">Tarascon (13)</span>
</span>
</td>
<td>3</td>
</tr>
</tbody>
</table>
</div>

{% if object_list %}
<div class="table-responsive-lg">
<table class="table mt-3 mt-md-4">
<caption class="sr-only">Liste des évenements</caption>
<thead>
<tr>
<th scope="col">Date</th>
<th scope="col">Évènement</th>
</tr>
</thead>
{% for event in object_list %}
<tbody>
<tr>
<td>
{{ event.date|date:"l j F" }} - {{ event.time|time }}
</td>
<td>
<a href="{% url 'event:detail' pk=event.pk%}" class="btn-link" aria-label="Évènement: {{event.name|truncatechars:100}}">{{event.name|truncatechars:100}}</a>
</td>
</tr>
</tbody>
{% endfor %}
</table>
</div>
{% else %}
<p>{% trans "No event yet" %}</p>
{% endif %}

<nav role="navigation" aria-label="Evenements sur les autres mois" class="mt-5">
<ul class="pagination pagination-sm justify-content-center mb-0">
Expand Down

0 comments on commit 1c7f8e7

Please sign in to comment.