-
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
4aa0e07
commit d2254be
Showing
18 changed files
with
385 additions
and
160 deletions.
There are no files selected for viewing
9 changes: 6 additions & 3 deletions
9
itou/templates/apply/includes/job_applications_filters/criteria.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,10 +1,13 @@ | ||
{% load django_bootstrap5 %} | ||
|
||
|
||
{% if filters_form.criteria %} | ||
<hr> | ||
<fieldset> | ||
<legend>Critères administratifs déclarés</legend> | ||
{% bootstrap_field filters_form.criteria wrapper_class="" %} | ||
<legend> | ||
<button class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-toggle="collapse" data-bs-target="#collapseCriteria" type="button" aria-expanded="false" aria-controls="collapseCriteria"> | ||
Critères administratifs déclarés | ||
</button> | ||
</legend> | ||
<div class="mt-3 collapse" id="collapseCriteria">{% bootstrap_field filters_form.criteria %}</div> | ||
</fieldset> | ||
{% endif %} |
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
47 changes: 43 additions & 4 deletions
47
itou/templates/apply/includes/job_applications_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,8 +1,47 @@ | ||
{% load django_bootstrap5 %} | ||
|
||
{% if filters_form.departments %} | ||
<hr> | ||
<fieldset> | ||
{% bootstrap_field filters_form.departments %} | ||
</fieldset> | ||
{% if btn_dropdown_filter %} | ||
<div class="dropdown"> | ||
<button type="button" class="btn btn-dropdown-filter dropdown-toggle" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false"> | ||
{{ filters_form.departments.label | capfirst }} | ||
</button> | ||
<ul class="dropdown-menu"> | ||
{% for choice in filters_form.departments %} | ||
<li> | ||
<div class="dropdown-item"> | ||
<div class="form-check"> | ||
<input id="{{ choice.id_for_label }}" class="form-check-input" name="{{ choice.data.name }}" type="checkbox" value="{{ choice.data.value }}" {% if choice.data.selected %}checked=""{% endif %}> | ||
<label for="{{ choice.id_for_label }}" class="form-check-label">{{ choice.choice_label }}</label> | ||
</div> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% else %} | ||
<hr> | ||
<fieldset> | ||
<legend> | ||
<button class="btn btn-outline-transparent has-collapse-caret collapsed" | ||
data-bs-toggle="collapse" | ||
data-bs-target="#collapseDdepartments" | ||
type="button" | ||
aria-expanded="false" | ||
aria-controls="collapseDdepartments">{{ filters_form.departments.label | capfirst }}</button> | ||
</legend> | ||
<div class="mt-3 mb-3 collapse" id="collapseDdepartments"> | ||
<ul> | ||
{% for choice in filters_form.departments %} | ||
<li> | ||
<div class="form-check"> | ||
<input id="{{ choice.id_for_label }}" class="form-check-input" name="{{ choice.data.name }}" type="checkbox" value="{{ choice.data.value }}" {% if choice.data.selected %}checked=""{% endif %}> | ||
<label for="{{ choice.id_for_label }}" class="form-check-label">{{ choice.choice_label }}</label> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</fieldset> | ||
{% endif %} | ||
{% endif %} |
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
49 changes: 43 additions & 6 deletions
49
itou/templates/apply/includes/job_applications_filters/selected_jobs.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,8 +1,45 @@ | ||
{% load django_bootstrap5 %} | ||
|
||
{% if filters_form.selected_jobs %} | ||
<hr> | ||
<fieldset> | ||
{% bootstrap_field filters_form.selected_jobs %} | ||
</fieldset> | ||
{% if btn_dropdown_filter %} | ||
<div class="dropdown"> | ||
<button type="button" class="btn btn-dropdown-filter dropdown-toggle" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false"> | ||
{{ filters_form.selected_jobs.label | capfirst }} | ||
</button> | ||
<ul class="dropdown-menu"> | ||
{% for choice in filters_form.selected_jobs %} | ||
<li> | ||
<div class="dropdown-item"> | ||
<div class="form-check"> | ||
<input id="{{ choice.id_for_label }}" class="form-check-input" name="{{ choice.data.name }}" type="checkbox" value="{{ choice.data.value }}" {% if choice.data.selected %}checked=""{% endif %}> | ||
<label for="{{ choice.id_for_label }}" class="form-check-label">{{ choice.choice_label }}</label> | ||
</div> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% else %} | ||
<hr> | ||
<fieldset> | ||
<legend> | ||
<button class="btn btn-outline-transparent has-collapse-caret collapsed" | ||
data-bs-toggle="collapse" | ||
data-bs-target="#collapseSelectedJob" | ||
type="button" | ||
aria-expanded="false" | ||
aria-controls="collapseSelectedJob">{{ filters_form.selected_jobs.label | capfirst }}</button> | ||
</legend> | ||
<div class="mt-3 mb-3 collapse" id="collapseSelectedJob"> | ||
<ul> | ||
{% for choice in filters_form.selected_jobs %} | ||
<li> | ||
<div class="form-check"> | ||
<input id="{{ choice.id_for_label }}" class="form-check-input" name="{{ choice.data.name }}" type="checkbox" value="{{ choice.data.value }}" {% if choice.data.selected %}checked=""{% endif %}> | ||
<label for="{{ choice.id_for_label }}" class="form-check-label">{{ choice.choice_label }}</label> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</fieldset> | ||
{% endif %} | ||
{% endif %} |
30 changes: 16 additions & 14 deletions
30
itou/templates/apply/includes/job_applications_filters/sender.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,17 +1,19 @@ | ||
{% load django_bootstrap5 %} | ||
|
||
{% if filters_form.senders or filters_form.sender_organizations %} | ||
<hr> | ||
<fieldset> | ||
<legend>Émetteur</legend> | ||
{% endif %} | ||
<hr> | ||
<fieldset> | ||
<legend> | ||
<button class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-toggle="collapse" data-bs-target="#collapseSenders" type="button" aria-expanded="false" aria-controls="collapseSenders"> | ||
Émetteur | ||
</button> | ||
</legend> | ||
<div class="mt-3 collapse" id="collapseSenders"> | ||
{% if filters_form.senders %} | ||
{% bootstrap_field filters_form.senders %} | ||
{% endif %} | ||
|
||
{% if filters_form.senders %} | ||
{% bootstrap_field filters_form.senders %} | ||
{% endif %} | ||
|
||
{% if filters_form.sender_organizations %} | ||
{% bootstrap_field filters_form.sender_organizations %} | ||
{% endif %} | ||
|
||
{% if filters_form.senders or filters_form.sender_organizations %}</fieldset>{% endif %} | ||
{% if filters_form.sender_organizations %} | ||
{% bootstrap_field filters_form.sender_organizations %} | ||
{% endif %} | ||
</div> | ||
</fieldset> |
52 changes: 39 additions & 13 deletions
52
itou/templates/apply/includes/job_applications_filters/statut.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,13 +1,39 @@ | ||
<fieldset> | ||
<legend>Statut candidature</legend> | ||
<ul> | ||
{% for choice in filters_form.states %} | ||
<li> | ||
<div class="form-check"> | ||
<input id="{{ choice.id_for_label }}" class="form-check-input" name="{{ choice.data.name }}" type="checkbox" value="{{ choice.data.value }}" {% if choice.data.selected %}checked=""{% endif %}> | ||
<label for="{{ choice.id_for_label }}" class="form-check-label">{{ choice.choice_label }}</label> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</fieldset> | ||
{% if btn_dropdown_filter %} | ||
<div class="dropdown"> | ||
<button type="button" class="btn btn-dropdown-filter dropdown-toggle" data-bs-toggle="dropdown" data-bs-auto-close="outside" aria-expanded="false"> | ||
Statut | ||
</button> | ||
<ul class="dropdown-menu"> | ||
{% for choice in filters_form.states %} | ||
<li> | ||
<div class="dropdown-item"> | ||
<div class="form-check"> | ||
<input id="{{ choice.id_for_label }}" class="form-check-input" name="{{ choice.data.name }}" type="checkbox" value="{{ choice.data.value }}" {% if choice.data.selected %}checked=""{% endif %}> | ||
<label for="{{ choice.id_for_label }}" class="form-check-label">{{ choice.choice_label }}</label> | ||
</div> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
{% else %} | ||
<fieldset> | ||
<legend> | ||
<button class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-toggle="collapse" data-bs-target="#collapseStates" type="button" aria-expanded="false" aria-controls="collapseStates"> | ||
Statut | ||
</button> | ||
</legend> | ||
<div class="mt-3 mb-3 collapse" id="collapseStates"> | ||
<ul> | ||
{% for choice in filters_form.states %} | ||
<li> | ||
<div class="form-check"> | ||
<input id="{{ choice.id_for_label }}" class="form-check-input" name="{{ choice.data.name }}" type="checkbox" value="{{ choice.data.value }}" {% if choice.data.selected %}checked=""{% endif %}> | ||
<label for="{{ choice.id_for_label }}" class="form-check-label">{{ choice.choice_label }}</label> | ||
</div> | ||
</li> | ||
{% endfor %} | ||
</ul> | ||
</div> | ||
</fieldset> | ||
{% endif %} |
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,7 @@ | ||
{% load str_filters %} | ||
|
||
<h3 class="h4 mb-0" id="apply-list-count"{% if request.htmx %} hx-swap-oob="true"{% endif %}> | ||
{% with job_applications_page.paginator.count as counter %} | ||
{{ counter }} <strong>résultat{{ counter|pluralizefr }}</strong> | ||
{% endwith %} | ||
</h3> |
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,19 @@ | ||
{% load str_filters %} | ||
|
||
{% if btn_dropdown_filter %} | ||
<div class="ms-md-auto" id="apply-list-filter-counter"{% if request.htmx %} hx-swap-oob="true"{% endif %}> | ||
{% if filters_counter > 0 %} | ||
<a href="{% if request.user.is_prescriber %}{% url 'apply:list_prescriptions' %}{% elif request.user.is_employer %}{% url 'apply:list_for_siae' %}{% else %}{% url 'apply:list_for_job_seeker' %}{% endif %}" | ||
class="btn btn-ico btn-dropdown-filter" | ||
aria-label="Réinitialiser le{{ filters_counter|pluralizefr }} filtre{{ filters_counter|pluralizefr }} actif{{ filters_counter|pluralizefr }}"> | ||
<i class="ri-eraser-line font-weight-bold" aria-hidden="true"></i> | ||
<span>Effacer tout</span> | ||
</a> | ||
{% endif %} | ||
</div> | ||
{% else %} | ||
<button class="btn btn-ico btn-block btn-outline-primary"> | ||
<i class="ri-eraser-line font-weight-medium" aria-hidden="true"></i> | ||
<span>Effacer tout</span> | ||
</button> | ||
{% endif %} |
Oops, something went wrong.