-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90c56cb
commit 59c12eb
Showing
5 changed files
with
114 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{% load str_filters %} | ||
|
||
<div id="employee-records-container"> | ||
<div class="d-flex align-items-center"> | ||
<div class="flex-grow-1"> | ||
{% with navigation_pages.paginator.count as counter %} | ||
<h3 class="h4 m-0">{{ counter }} résultat{{ counter|pluralizefr }}</h3> | ||
{% endwith %} | ||
</div> | ||
<div> | ||
<span class="fs-sm">Trier par :</span> | ||
<button type="button" class="btn btn-sm btn-link dropdown-toggle p-0" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> | ||
{{ ordered_by_label }} | ||
</button> | ||
<div class="dropdown-menu dropdown-menu-end" id="order-form-group"> | ||
{% for order_value, order_label in form.order.field.choices %} | ||
<button class="dropdown-item {% if order_value == form.order.value %}active{% endif %}" type="button" value="{{ order_value }}"> | ||
{{ order_label }} | ||
</button> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
</div> | ||
|
||
{# "Real" employee records objects #} | ||
<div class="employee-records-list"> | ||
{% if employee_records_list %} | ||
{% for employee_record in navigation_pages %} | ||
{% include "employee_record/includes/list_item.html" with employee_record=employee_record item=employee_record.job_application only %} | ||
{% endfor %} | ||
{# New employee records i.e. job applications #} | ||
{% else %} | ||
{% for job_application in navigation_pages %} | ||
{% include "employee_record/includes/list_item.html" with employee_record=None item=job_application only %} | ||
{% endfor %} | ||
{% endif %} | ||
</div> | ||
|
||
{% if not navigation_pages %} | ||
<div class="c-box c-box--results my-3 my-md-4"> | ||
<div class="c-box--results__body"> | ||
<p class="mb-0">Aucune fiche salarié avec le statut selectionné.</p> | ||
</div> | ||
</div> | ||
{% endif %} | ||
{% include "includes/pagination.html" with page=navigation_pages boost=True boost_target="#employee-records-container" boost_indicator="#employee-records-container" %} | ||
</div> | ||
{% if request.htmx %} | ||
{% include "employee_record/includes/list_status_help.html" with request=request status=form.status.value only %} | ||
{% endif %} |
41 changes: 41 additions & 0 deletions
41
itou/templates/employee_record/includes/list_status_help.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<div id="status-help"{% if request.htmx %} hx-swap-oob="true"{% endif %}> | ||
{% if status == "NEW" %} | ||
<p> | ||
Vous trouverez ici les candidatures validées <b>à partir desquelles vous devez créer de nouvelles fiches salarié</b>. | ||
</p> | ||
{% elif status == "READY" %} | ||
<p class="mb-0"> | ||
Vous trouverez ici les fiches salarié complétées | ||
<b>en attente d’envoi à l’ASP, qui a lieu automatiquement à intervalles réguliers</b>. | ||
</p> | ||
<p> | ||
À ce stade, seule la visualisation des informations de la fiche est | ||
possible. | ||
</p> | ||
<p>Merci de votre patience.</p> | ||
{% elif status == "SENT" %} | ||
<p class="mb-0">Vous trouverez ici les fiches salarié complétées et envoyées à l'ASP.</p> | ||
<p> | ||
À ce stade, et en attendant un retour de l'ASP, seule la visualisation des informations de | ||
la fiche est possible. | ||
</p> | ||
{% elif status == "REJECTED" %} | ||
<p class="mb-0"> | ||
Vous trouverez ici les fiches salarié envoyées à l'ASP et retournées avec une | ||
erreur. | ||
</p> | ||
<p>Vous pouvez modifier les fiches en erreur et les envoyer à nouveau.</p> | ||
{% elif status == "PROCESSED" %} | ||
<p class="mb-0">Vous trouverez ici les fiches salarié envoyées et validées par l'ASP.</p> | ||
<p> | ||
Aucune action ultérieure n'est possible à ce stade, mais vous pouvez consulter le détail de | ||
la fiche salarié. | ||
</p> | ||
{% elif status == "DISABLED" %} | ||
<p class="mb-0">Vous trouverez ici les fiches salarié que vous avez désactivées.</p> | ||
<p> | ||
En cas de besoin vous pouvez réactiver une fiche, elle sera transférée dans la catégorie | ||
"Nouvelle". | ||
</p> | ||
{% endif %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters