Skip to content

Commit

Permalink
apply: Remove archived filter help text
Browse files Browse the repository at this point in the history
  • Loading branch information
tonial committed Jan 7, 2025
1 parent 123aa81 commit db8287c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 75 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,7 @@
<input type="hidden" name="{{ filters_form.job_seeker.name }}" value="{{ filters_form.job_seeker.value }}">
{% endif %}
<hr>
{# TODO: Use "apply/includes/job_applications_filters/field_collapse.html" when getting rid of the help text. #}
<fieldset>
<legend>
<button class="btn btn-outline-transparent has-collapse-caret collapsed"
data-bs-toggle="collapse"
data-bs-target="#collapse-{{ filters_form.archived.name }}"
type="button"
aria-expanded="false"
aria-controls="collapse-{{ filters_form.archived.name }}">
Type de candidature <span class="badge badge-sm rounded-pill bg-important">Nouveau</span>
</button>
</legend>
<div class="mt-3 collapse" id="collapse-{{ filters_form.archived.name }}">
<div class="mb-3">
<i>En savoir plus sur les types de candidatures <a href="{{ ITOU_HELP_CENTER_URL }}/articles/27110481864593--Archiver-une-candidature" target="_blank" rel="noopener" aria-label="Documentation des types de candidatures">dans la documentation</a>.</i>
</div>
{% bootstrap_field filters_form.archived %}
</div>
</fieldset>
{% include "apply/includes/job_applications_filters/field_collapse.html" with field=filters_form.archived legend="Type de candidature" only %}
{% endif %}
{% include "apply/includes/job_applications_filters/dates.html" %}
</div>
69 changes: 27 additions & 42 deletions tests/www/apply/__snapshots__/test_list_for_siae.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -1834,17 +1834,12 @@

<hr/>

<fieldset>
<legend>
<button aria-controls="collapse-archived" aria-expanded="false" class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-target="#collapse-archived" data-bs-toggle="collapse" type="button">
Type de candidature <span class="badge badge-sm rounded-pill bg-important">Nouveau</span>
</button>
</legend>
<div class="mt-3 collapse" id="collapse-archived">
<div class="mb-3">
<i>En savoir plus sur les types de candidatures <a aria-label="Documentation des types de candidatures" href="https://aide.emplois.inclusion.beta.gouv.fr/hc/fr/articles/27110481864593--Archiver-une-candidature" rel="noopener" target="_blank">dans la documentation</a>.</i>
</div>
<div class="form-group"><div class="" id="id_archived">

<fieldset>
<legend>
<button aria-controls="collapse-archived" aria-expanded="false" class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-target="#collapse-archived" data-bs-toggle="collapse" type="button">Type de candidature</button>
</legend>
<div class="mt-3 collapse" id="collapse-archived"><div class="form-group"><div class="" id="id_archived">



Expand All @@ -1870,9 +1865,9 @@
</div>


</div></div>
</div>
</fieldset>
</div></div></div>
</fieldset>




Expand Down Expand Up @@ -2109,17 +2104,12 @@

<hr/>

<fieldset>
<legend>
<button aria-controls="collapse-archived" aria-expanded="false" class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-target="#collapse-archived" data-bs-toggle="collapse" type="button">
Type de candidature <span class="badge badge-sm rounded-pill bg-important">Nouveau</span>
</button>
</legend>
<div class="mt-3 collapse" id="collapse-archived">
<div class="mb-3">
<i>En savoir plus sur les types de candidatures <a aria-label="Documentation des types de candidatures" href="https://aide.emplois.inclusion.beta.gouv.fr/hc/fr/articles/27110481864593--Archiver-une-candidature" rel="noopener" target="_blank">dans la documentation</a>.</i>
</div>
<div class="form-group"><div class="" id="id_archived">

<fieldset>
<legend>
<button aria-controls="collapse-archived" aria-expanded="false" class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-target="#collapse-archived" data-bs-toggle="collapse" type="button">Type de candidature</button>
</legend>
<div class="mt-3 collapse" id="collapse-archived"><div class="form-group"><div class="" id="id_archived">



Expand All @@ -2145,9 +2135,9 @@
</div>


</div></div>
</div>
</fieldset>
</div></div></div>
</fieldset>




Expand Down Expand Up @@ -2358,17 +2348,12 @@

<hr/>

<fieldset>
<legend>
<button aria-controls="collapse-archived" aria-expanded="false" class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-target="#collapse-archived" data-bs-toggle="collapse" type="button">
Type de candidature <span class="badge badge-sm rounded-pill bg-important">Nouveau</span>
</button>
</legend>
<div class="mt-3 collapse" id="collapse-archived">
<div class="mb-3">
<i>En savoir plus sur les types de candidatures <a aria-label="Documentation des types de candidatures" href="https://aide.emplois.inclusion.beta.gouv.fr/hc/fr/articles/27110481864593--Archiver-une-candidature" rel="noopener" target="_blank">dans la documentation</a>.</i>
</div>
<div class="form-group"><div class="" id="id_archived">

<fieldset>
<legend>
<button aria-controls="collapse-archived" aria-expanded="false" class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-target="#collapse-archived" data-bs-toggle="collapse" type="button">Type de candidature</button>
</legend>
<div class="mt-3 collapse" id="collapse-archived"><div class="form-group"><div class="" id="id_archived">



Expand All @@ -2394,9 +2379,9 @@
</div>


</div></div>
</div>
</fieldset>
</div></div></div>
</fieldset>




Expand Down
23 changes: 9 additions & 14 deletions tests/www/apply/__snapshots__/test_list_prescriptions.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -2377,17 +2377,12 @@

<hr/>

<fieldset>
<legend>
<button aria-controls="collapse-archived" aria-expanded="false" class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-target="#collapse-archived" data-bs-toggle="collapse" type="button">
Type de candidature <span class="badge badge-sm rounded-pill bg-important">Nouveau</span>
</button>
</legend>
<div class="mt-3 collapse" id="collapse-archived">
<div class="mb-3">
<i>En savoir plus sur les types de candidatures <a aria-label="Documentation des types de candidatures" href="https://aide.emplois.inclusion.beta.gouv.fr/hc/fr/articles/27110481864593--Archiver-une-candidature" rel="noopener" target="_blank">dans la documentation</a>.</i>
</div>
<div class="form-group"><div class="" id="id_archived">

<fieldset>
<legend>
<button aria-controls="collapse-archived" aria-expanded="false" class="btn btn-outline-transparent has-collapse-caret collapsed" data-bs-target="#collapse-archived" data-bs-toggle="collapse" type="button">Type de candidature</button>
</legend>
<div class="mt-3 collapse" id="collapse-archived"><div class="form-group"><div class="" id="id_archived">



Expand All @@ -2413,9 +2408,9 @@
</div>


</div></div>
</div>
</fieldset>
</div></div></div>
</fieldset>




Expand Down

0 comments on commit db8287c

Please sign in to comment.