-
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.
UX/UI: Revamp design of employeur and job search
- Loading branch information
1 parent
7d3eda5
commit a42647f
Showing
10 changed files
with
110 additions
and
178 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
itou/templates/search/includes/siaes_search_filters_company.html
This file was deleted.
Oops, something went wrong.
90 changes: 14 additions & 76 deletions
90
itou/templates/search/includes/siaes_search_filters_departments.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 |
---|---|---|
@@ -1,78 +1,16 @@ | ||
{% load django_bootstrap5 %} | ||
|
||
{% if form.departments %} | ||
<hr> | ||
<fieldset> | ||
<div class="form-group mb-0"> | ||
<legend class="has-collapse-caret mb-0" | ||
data-bs-toggle="collapse" | ||
href="#collapse_{{ form.departments.name }}" | ||
role="button" | ||
aria-expanded="{% if form.departments.value %}true{% else %}false{% endif %}" | ||
aria-controls="collapse_{{ form.departments.name }}"> | ||
{{ form.departments.label | capfirst }} | ||
</legend> | ||
<div class="collapse mt-3{% if form.departments.value %} show{% endif %}" id="collapse_{{ form.departments.name }}"> | ||
{{ form.departments }} | ||
</div> | ||
</div> | ||
</fieldset> | ||
{% endif %} | ||
|
||
{# getattr and list still painful in Django template #} | ||
{% if form.districts_13 %} | ||
<hr> | ||
<fieldset> | ||
<div class="form-group mb-0"> | ||
<legend class="has-collapse-caret mb-0" | ||
data-bs-toggle="collapse" | ||
href="#collapse_{{ form.districts_13.name }}" | ||
role="button" | ||
aria-expanded="{% if form.districts_13.value %}true{% else %}false{% endif %}" | ||
aria-controls="collapse_{{ form.districts_13.name }}"> | ||
{{ form.districts_13.label | capfirst }} | ||
</legend> | ||
<div class="collapse mt-3{% if form.districts_13.value %} show{% endif %}" id="collapse_{{ form.districts_13.name }}"> | ||
{{ form.districts_13 }} | ||
</div> | ||
</div> | ||
</fieldset> | ||
{% endif %} | ||
|
||
{% if form.districts_69 %} | ||
<hr> | ||
<fieldset> | ||
<div class="form-group mb-0"> | ||
<legend class="has-collapse-caret mb-0" | ||
data-bs-toggle="collapse" | ||
href="#collapse_{{ form.districts_69.name }}" | ||
role="button" | ||
aria-expanded="{% if form.districts_69.value %}true{% else %}false{% endif %}" | ||
aria-controls="collapse_{{ form.districts_69.name }}"> | ||
{{ form.districts_69.label | capfirst }} | ||
</legend> | ||
<div class="collapse mt-3{% if form.districts_69.value %} show{% endif %}" id="collapse_{{ form.districts_69.name }}"> | ||
{{ form.districts_69 }} | ||
</div> | ||
</div> | ||
</fieldset> | ||
{% endif %} | ||
|
||
{% if form.districts_75 %} | ||
<hr> | ||
<fieldset> | ||
<div class="form-group mb-0"> | ||
<legend class="has-collapse-caret mb-0" | ||
data-bs-toggle="collapse" | ||
href="#collapse_{{ form.districts_75.name }}" | ||
role="button" | ||
aria-expanded="{% if form.districts_75.value %}true{% else %}false{% endif %}" | ||
aria-controls="collapse_{{ form.districts_75.name }}"> | ||
{{ form.districts_75.label | capfirst }} | ||
</legend> | ||
<div class="collapse mt-3{% if form.districts_75.value %} show{% endif %}" id="collapse_{{ form.districts_75.name }}"> | ||
{{ form.districts_75 }} | ||
</div> | ||
</div> | ||
</fieldset> | ||
{% endif %} | ||
<div class="d-flex flex-column flex-md-row gap-1"> | ||
{% if form.departments %} | ||
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.departments only %} | ||
{% endif %} | ||
{% if form.districts_13 %} | ||
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.districts_13 only %} | ||
{% endif %} | ||
{% if form.districts_69 %} | ||
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.districts_69 only %} | ||
{% endif %} | ||
{% if form.districts_75 %} | ||
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.districts_75 only %} | ||
{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{% load str_filters %} | ||
|
||
<div id="search-subtitle"{% if request.htmx %} hx-swap-oob="true"{% endif %}> | ||
{% if request.resolver_match.view_name == "search:employers_results" %} | ||
<h2 class="my-3 my-md-4">Employeur{{ siaes_count|pluralizefr }}</h2> | ||
{% else %} | ||
<h2 class="my-3 my-md-4"> | ||
Poste{{ job_descriptions_count|pluralizefr }} ouvert{{ job_descriptions_count|pluralizefr }} au recrutement | ||
</h2> | ||
{% 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
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
Oops, something went wrong.