Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UX/UI: Mise a jour du thème vers la v2.6.1 #5452

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions itou/static/css/itou.css
Original file line number Diff line number Diff line change
Expand Up @@ -259,27 +259,6 @@ an input field being invalid, generating an uncontrolled red box-shadow. */
min-height: 11rem;
}

/* HTMX button indicator */
.has-btn-with-spinner-loading-text.has-spinner-loading {
pointer-events: none;
}

.has-btn-with-spinner-loading-text.has-spinner-loading::after {
display: none;
}

.has-btn-with-spinner-loading-text.has-spinner-loading .stable-text {
display: none;
}

.has-btn-with-spinner-loading-text .loading-text {
display: none;
}

.has-btn-with-spinner-loading-text.has-spinner-loading .loading-text {
display: block;
}

/* step 1/5 */
.progress-bar-20 {
width: 20%;
Expand Down
3 changes: 1 addition & 2 deletions itou/templates/apply/includes/accept_section.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ <h3 class="modal-title" id="confirmation-modal-label">Confirmation de l’embauc
{% include "companies/includes/_company_info.html" with company=company show_cta=True extra_box_class="mb-3 mb-lg-5" open_in_tab=True only %}
</div>
<div class="modal-footer">
<form class="has-btn-with-spinner-loading-text"
hx-post="{{ request.path }}"
<form hx-post="{{ request.path }}"
hx-target="#acceptFormDiv"
hx-swap="outerHTML"
hx-vals='{"confirmed": "True"}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% if job_application %}
<form {% if for_detail %} hx-target="#rdvi-invitation-requests" hx-post="{% url "apply:rdv_insertion_invite_for_detail" job_application.pk %}" {% else %} hx-post="{% url "apply:rdv_insertion_invite" job_application.pk %}" {% endif %}
hx-swap="outerHTML"
class="d-inline-flex has-btn-with-spinner-loading-text">
class="d-inline-flex">
{% csrf_token %}
<button class="btn btn-danger btn-ico w-100 w-md-auto"
data-bs-toggle="tooltip"
Expand Down Expand Up @@ -42,7 +42,7 @@
{% else %}
<form {% if for_detail %} hx-target="#rdvi-invitation-requests" hx-post="{% url "apply:rdv_insertion_invite_for_detail" job_application.pk %}" {% else %} hx-post="{% url "apply:rdv_insertion_invite" job_application.pk %}" {% endif %}
hx-swap="outerHTML"
class="d-inline-flex has-btn-with-spinner-loading-text">
class="d-inline-flex">
{% csrf_token %}
<button class="btn btn-secondary btn-ico w-100 w-md-auto" aria-label="Proposer un rendez-vous à {{ job_application.job_seeker.get_full_name }}" {% matomo_event "candidature" "clic" "proposer-rdv" %}>
<div class="stable-text">
Expand Down
6 changes: 3 additions & 3 deletions itou/utils/staticfiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,11 @@
},
"theme-inclusion": {
"download": {
"url": "https://github.com/gip-inclusion/itou-theme/archive/refs/tags/v2.5.7.zip",
"sha256": "78930e93a7e8604fbd9236f40f687fd65f4a378c62dba05be9b7120c04c6dc28",
"url": "https://github.com/gip-inclusion/itou-theme/archive/refs/tags/v2.6.1.zip",
"sha256": "c377ced35245a972b9286f50ba8e3b8994d39142637af446e09b9d787acf51c0",
},
"extract": {
"origin": "itou-theme-2.5.7/dist",
"origin": "itou-theme-2.6.1/dist",
"destination": "vendor/theme-inclusion/",
"files": [
"javascripts/app.js",
Expand Down
4 changes: 2 additions & 2 deletions tests/www/apply/__snapshots__/test_detail_rdv_insertion.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@



<form class="d-inline-flex has-btn-with-spinner-loading-text" hx-post="/apply/11111111-1111-1111-1111-111111111111/rdv_insertion_invite_for_detail" hx-swap="outerHTML" hx-target="#rdvi-invitation-requests">
<form class="d-inline-flex" hx-post="/apply/11111111-1111-1111-1111-111111111111/rdv_insertion_invite_for_detail" hx-swap="outerHTML" hx-target="#rdvi-invitation-requests">
<input name="csrfmiddlewaretoken" type="hidden" value="NORMALIZED_CSRF_TOKEN"/>
<button aria-label="Proposer un rendez-vous à Jacques HENRY" class="btn btn-secondary btn-ico w-100 w-md-auto" data-matomo-action="clic" data-matomo-category="candidature" data-matomo-event="true" data-matomo-option="proposer-rdv">
<div class="stable-text">
Expand Down Expand Up @@ -1148,7 +1148,7 @@



<form class="d-inline-flex has-btn-with-spinner-loading-text" hx-post="/apply/11111111-1111-1111-1111-111111111111/rdv_insertion_invite_for_detail" hx-swap="outerHTML" hx-target="#rdvi-invitation-requests">
<form class="d-inline-flex" hx-post="/apply/11111111-1111-1111-1111-111111111111/rdv_insertion_invite_for_detail" hx-swap="outerHTML" hx-target="#rdvi-invitation-requests">
<input name="csrfmiddlewaretoken" type="hidden" value="NORMALIZED_CSRF_TOKEN"/>
<button aria-label="Proposer un rendez-vous à Jacques HENRY" class="btn btn-secondary btn-ico w-100 w-md-auto" data-matomo-action="clic" data-matomo-category="candidature" data-matomo-event="true" data-matomo-option="proposer-rdv">
<div class="stable-text">
Expand Down
2 changes: 1 addition & 1 deletion tests/www/apply/__snapshots__/test_list_rdv_insertion.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# ---
# name: TestRdvInsertionView.test_rdv_insertion_configured_with_failed_rdv_insertion_exchange
'''
<form class="d-inline-flex has-btn-with-spinner-loading-text" hx-post="/apply/11111111-1111-1111-1111-111111111111/rdv-insertion-invite" hx-swap="outerHTML">
<form class="d-inline-flex" hx-post="/apply/11111111-1111-1111-1111-111111111111/rdv-insertion-invite" hx-swap="outerHTML">
<input name="csrfmiddlewaretoken" type="hidden" value="NORMALIZED_CSRF_TOKEN"/>
<button aria-label="Proposer un rendez-vous à Jacques HENRY" class="btn btn-danger btn-ico w-100 w-md-auto" data-bs-title="Une erreur s’est produite, l’envoi n’a pas abouti." data-bs-toggle="tooltip" data-matomo-action="clic" data-matomo-category="candidature" data-matomo-event="true" data-matomo-option="proposer-rdv">
<div class="stable-text">
Expand Down
Loading