Skip to content

Commit

Permalink
fixup! UX/UI: Revamp design of employeur and job search
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisfreitag committed Jun 27, 2024
1 parent 1f3b339 commit 109c7f8
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 136 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,83 +2,15 @@

<div class="d-flex flex-column flex-md-row gap-1">
{% if form.departments %}
<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">
{{ form.departments.label | capfirst }}
</button>
<ul class="dropdown-menu">
{% for choice in 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>
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.departments only %}
{% endif %}

{# getattr and list still painful in Django template #}
{% if form.districts_13 %}
<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">
{{ form.districts_13.label | capfirst }}
</button>
<ul class="dropdown-menu">
{% for choice in form.districts_13 %}
<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>
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.districts_13 only %}
{% endif %}

{% if form.districts_69 %}
<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">
{{ form.districts_69.label | capfirst }}
</button>
<ul class="dropdown-menu">
{% for choice in form.districts_69 %}
<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>
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.districts_69 only %}
{% endif %}

{% if form.districts_75 %}
<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">
{{ form.districts_75.label | capfirst }}
</button>
<ul class="dropdown-menu">
{% for choice in form.districts_75 %}
<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>
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.districts_75 only %}
{% endif %}
</div>
15 changes: 0 additions & 15 deletions itou/templates/search/includes/siaes_search_filters_distance.html

This file was deleted.

15 changes: 0 additions & 15 deletions itou/templates/search/includes/siaes_search_filters_domains.html

This file was deleted.

15 changes: 0 additions & 15 deletions itou/templates/search/includes/siaes_search_filters_kinds.html

This file was deleted.

8 changes: 4 additions & 4 deletions itou/templates/search/siaes_search_results.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
{% include "search/includes/siaes_search_subtitle.html" %}
<div class="d-block w-100">
<div class="btn-dropdown-filter-group mb-3 mb-md-4">
{% include "search/includes/siaes_search_filters_distance.html" %}
{% include "search/includes/siaes_search_filters_kinds.html" %}
{% include "includes/btn_dropdown_filter/radio.html" with field=form.distance only %}
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.kinds only %}
{% if form.contract_types %}
{% include "search/includes/siaes_search_filters_contract_types.html" %}
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.contract_types only %}
{% endif %}
{% if form.domains %}
{% include "search/includes/siaes_search_filters_domains.html" %}
{% include "includes/btn_dropdown_filter/checkboxes.html" with field=form.domains only %}
{% endif %}
{% include "search/includes/siaes_search_filters_departments.html" %}
<div class="ms-lg-auto">
Expand Down

0 comments on commit 109c7f8

Please sign in to comment.