-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'production' into chore/upgrade-slim-5
- Loading branch information
Showing
37 changed files
with
231 additions
and
199 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
section.py-2.rdv-background-color-flat-blue-ecume | ||
section.py-2.rdv-background-color-alt-blue-ecume | ||
.fr-container | ||
h1.mb-3.rdv-color-white | ||
= render(current_domain.search_banner_template_name, context: context) | ||
.fr-col-12.fr-col-lg-10.fr-col-offset-lg-1 | ||
h1.fr-mb-3w.rdv-color-active-blue | ||
= render(current_domain.search_banner_template_name, context: context) |
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,38 +1,26 @@ | ||
.fr-container | ||
= render "search/selected_motif_recap", context: context | ||
- if context.shown_lieux.empty? | ||
= render "search/nothing_to_show", context: context | ||
- else | ||
h3.rdv-font-weight-700 = t(".select_lieu") | ||
p = t(".lieu_available", count: context.shown_lieux.count) | ||
= render "search/selected_motif_recap", context: context | ||
- if context.shown_lieux.empty? | ||
= render "search/nothing_to_show", context: context | ||
- else | ||
h3 = t(".select_lieu") | ||
p = t(".lieu_available", count: context.shown_lieux.count) | ||
ul.fr-raw-list | ||
- context.next_availability_by_lieux.each do |lieu, next_availability| | ||
.card.mb-3 class=("card-hoverable" if next_availability) | ||
.card-body | ||
.row | ||
.col-md | ||
h4.card-title.mb-0.mt-0.rdv-color-text-default-success.rdv-font-weight-700= lieu.name | ||
.mb-3.mt-0.rdv-color-text-default-success.rdv-font-weight-700.larger=lieu.organisation.name | ||
.card-subtitle= lieu.address | ||
.card-subtitle= context.service.name | ||
.col-md.align-self-center.pt-3.pt-md-0.position-static | ||
- motif = next_availability.motif | ||
- if motif.restriction_for_rdv.blank? | ||
= link_to prendre_rdv_path(context.query_params.merge(lieu_id: lieu.id, date: next_availability.starts_at)), class: "d-block stretched-link" do | ||
.row | ||
.col | ||
= t(".next_availability") | ||
br | ||
strong= l(next_availability.starts_at, format: :human) | ||
.col-auto.align-self-center | ||
i.fa.fa-chevron-right | ||
- else | ||
= link_to prendre_rdv_path(context.query_params.merge(lieu_id: lieu.id, date: next_availability.starts_at)), class: "d-block stretched-link", "data-turbolinks": false, data: { toggle: "modal", target: "#js-rdv-restriction-motif#{lieu.id}" } do | ||
.row | ||
.col | ||
= t(".next_availability") | ||
br | ||
strong= l(next_availability.starts_at, format: :human) | ||
.col-auto.align-self-center | ||
i.fa.fa-chevron-right | ||
= render "/common/modal", id: "js-rdv-restriction-motif#{lieu.id}" , title: "À lire avant de prendre un rendez-vous", confirm_path: prendre_rdv_path(context.query_params.merge(lieu_id: lieu.id, date: next_availability.starts_at)) do | ||
= restriction_for_rdv_to_html(motif) | ||
- motif = next_availability.motif | ||
- if motif.restriction_for_rdv.blank? | ||
- link = link_to "#{lieu.name} - #{lieu.address}", prendre_rdv_path(context.query_params.merge(lieu_id: lieu.id, date: next_availability.starts_at)) | ||
- else | ||
- link = link_to "#{lieu.name} - #{lieu.address}", prendre_rdv_path(context.query_params.merge(lieu_id: lieu.id, date: next_availability.starts_at)), "data-turbolinks": false, data: { toggle: "modal", target: "#js-rdv-restriction-motif#{lieu.id}" } | ||
= render "/common/modal", id: "js-rdv-restriction-motif#{lieu.id}", title: "À lire avant de prendre un rendez-vous", confirm_path: prendre_rdv_path(context.query_params.merge(lieu_id: lieu.id, date: next_availability.starts_at)) do | ||
= restriction_for_rdv_to_html(motif) | ||
li.fr-card.fr-enlarge-link.fr-card--lg.fr-card--horizontal.fr-mb-3w | ||
.fr-card__body | ||
.fr-card__content | ||
.fr-card__title = link | ||
p.fr-card__desc = lieu.organisation.name | ||
.fr-card__end | ||
.fr-card__detail | ||
p.fr-text.rdv-color-text-default-grey | ||
span.fr-icon-calendar-2-fill.fr-mr-1w | ||
= "#{t('.next_availability')} " | ||
strong= l(next_availability.starts_at, format: :human) |
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,19 +1,35 @@ | ||
.fr-container | ||
.card | ||
.card-body | ||
= link_to path_to_service_selection(params), class: "d-block stretched-link", title: "Retour à la selection du service" do | ||
.row | ||
.col-auto.align-self-center | ||
i.fa.fa-chevron-left | ||
.col | ||
h2.fr-pb-0.fr-mb-0 = context.service.name | ||
.fr-container | ||
- if context.unique_motifs_by_name_and_location_type.empty? | ||
= render "search/nothing_to_show", context: context | ||
- else | ||
h2.rdv-font-weight-700 Sélectionnez le motif de votre RDV : | ||
.card | ||
.card-body | ||
= link_to path_to_service_selection(params), class: "d-block stretched-link", title: "Retour à la sélection du service" do | ||
.row | ||
.col-auto.align-self-center | ||
i.fa.fa-chevron-left | ||
.col | ||
h2.fr-pb-0.fr-mb-0 = context.service.name | ||
- if context.unique_motifs_by_name_and_location_type.empty? | ||
= render "search/nothing_to_show", context: context | ||
- else | ||
h2 Sélectionnez le motif de votre RDV : | ||
ul.fr-raw-list | ||
- context.unique_motifs_by_name_and_location_type.each do |motif| | ||
.card.card-hoverable.mb-3 | ||
= link_to prendre_rdv_path(context.query_params.merge(motif_name_with_location_type: motif.name_with_location_type)), class: "rdv-background-image-none" do | ||
= render "search/motif_selection_card", motif: motif | ||
= render "search/referent_booking_card", context: context | ||
li.fr-card.fr-enlarge-link.fr-card--horizontal.fr-mb-2w | ||
.fr-card__body | ||
.fr-card__content | ||
.fr-card__title | ||
= link_to motif.name, prendre_rdv_path(context.query_params.merge(motif_name_with_location_type: motif.name_with_location_type)) | ||
.fr-card__start | ||
ul.fr-badges-group | ||
- case motif.location_type | ||
- when "phone" | ||
li.fr-badge.fr-badge--blue-cumulus.fr-icon-phone-fill.fr-badge--icon-left = motif.human_attribute_value(:location_type) | ||
- when "home" | ||
li.fr-badge.fr-badge--blue-cumulus.fr-icon-home-4-fill.fr-badge--icon-left = motif.human_attribute_value(:location_type) | ||
- when "public_office" | ||
li.fr-badge.fr-badge--blue-cumulus.fr-icon-building-fill.fr-badge--icon-left = motif.human_attribute_value(:location_type) | ||
- when "visio" | ||
li.fr-badge.fr-badge--blue-cumulus.fr-icon-mac-fill.fr-badge--icon-left = motif.human_attribute_value(:location_type) | ||
- else | ||
li.fr-badge.fr-badge--blue-cumulus = motif.human_attribute_value(:location_type) | ||
- if motif.collectif? | ||
li.fr-badge.fr-badge--purple-glycine.fr-icon-team-fill.fr-badge--icon-left = "RDV collectif" | ||
= render "search/referent_booking_card", context: context |
This file was deleted.
Oops, something went wrong.
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,12 +1,12 @@ | ||
- if organisation.website? | ||
.card-subtitle.my-2 | ||
.fa.fa-earth-europe> | ||
.fr-card__detail.fr-text--sm | ||
span.fr-icon-global-fill.fr-mr-1w | ||
= organisation.website | ||
- if organisation.phone_number? | ||
.card-subtitle.my-2 | ||
.fa.fa-phone> | ||
.fr-card__detail.fr-text--sm | ||
span.fr-icon-phone-fill.fr-mr-1w | ||
= organisation.phone_number | ||
- if organisation.email? | ||
.card-subtitle.my-2 | ||
.fa.fa-envelope> | ||
.fr-card__detail.fr-text--sm | ||
span.fr-icon-mail-fill.fr-mr-1w | ||
= organisation.email |
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,22 +1,19 @@ | ||
.fr-container | ||
= render "search/selected_motif_recap", context: context | ||
- if context.next_availability_by_motifs_organisations.empty? | ||
= render "search/nothing_to_show", context: context | ||
- else | ||
h3.rdv-font-weight-700 Sélectionnez la structure avec laquelle prendre RDV: | ||
= render "search/selected_motif_recap", context: context | ||
- if context.next_availability_by_motifs_organisations.empty? | ||
= render "search/nothing_to_show", context: context | ||
- else | ||
h3 Sélectionnez la structure avec laquelle prendre RDV : | ||
ul.fr-raw-list | ||
- context.next_availability_by_motifs_organisations.each do |organisation, next_availability| | ||
.card.mb-3 class="card-hoverable" | ||
.card-body | ||
.row | ||
.col-md | ||
h3.card-title.mb-3.mt-0.rdv-color-text-default-success.rdv-font-weight-700= organisation.name | ||
li.fr-card.fr-enlarge-link.fr-card--horizontal.fr-mb-2w | ||
.fr-card__body | ||
.fr-card__content | ||
.fr-card__title | ||
= link_to organisation.name, prendre_rdv_path(context.query_params.merge(user_selected_organisation_id: organisation.id, date: next_availability.starts_at)) | ||
.fr-card__end | ||
= render "search/organisation_card_subtitles", organisation: organisation | ||
.col-md.align-self-center.pt-3.pt-md-0.position-static | ||
= link_to prendre_rdv_path(context.query_params.merge(user_selected_organisation_id: organisation.id, date: next_availability.starts_at)), class: "d-block stretched-link" do | ||
.row | ||
.col | ||
| Prochaine disponibilité le | ||
br | ||
strong= l(next_availability.starts_at, format: :human) | ||
.col-auto.align-self-center | ||
i.fa.fa-chevron-right | ||
.fr-card__detail | ||
p.fr-text.fr-mt-3w.rdv-color-text-default-grey | ||
span.fr-icon-calendar-2-fill.fr-mr-1w | ||
' Prochaine disponibilité le | ||
strong= l(next_availability.starts_at, format: :human) |
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 |
---|---|---|
@@ -1,14 +1,11 @@ | ||
.fr-container | ||
- if context.unique_motifs_by_name_and_location_type.empty? | ||
= render "search/nothing_to_show", context: context | ||
- else | ||
h2.rdv-font-weight-700 Sélectionnez le service avec qui vous voulez prendre un RDV : | ||
- unless context.invitation? | ||
- context.services.each do |service| | ||
.card.mb-3 | ||
= link_to prendre_rdv_path(context.query_params.merge(service_id: service.id)), class: "rdv-background-image-none" do | ||
.card-body | ||
.row | ||
.col-md | ||
h3.card-title.mb-3.mt-0.rdv-color-text-default-success.rdv-font-weight-700= service.name | ||
= render "search/referent_booking_card", context: context | ||
- if context.unique_motifs_by_name_and_location_type.empty? | ||
= render "search/nothing_to_show", context: context | ||
- else | ||
h2 Sélectionnez le service avec qui vous voulez prendre un RDV : | ||
- context.services.each do |service| | ||
.fr-card.fr-enlarge-link.fr-card--horizontal.fr-mb-2w | ||
.fr-card__body | ||
.fr-card__content | ||
.fr-card__title | ||
= link_to service.name, prendre_rdv_path(context.query_params.merge(service_id: service.id)) | ||
= render "search/referent_booking_card", context: context |
Oops, something went wrong.