diff --git a/app/assets/stylesheets/admin/composants/_recherche_structure.scss b/app/assets/stylesheets/admin/composants/_recherche_structure.scss index 5175a044d..ac746a0e7 100644 --- a/app/assets/stylesheets/admin/composants/_recherche_structure.scss +++ b/app/assets/stylesheets/admin/composants/_recherche_structure.scss @@ -19,8 +19,12 @@ background-image: image-url('punaise-recherche.svg'); } } - .description-liste-structures { + + h3.description-liste-structures { + @include texte; margin-bottom: 1rem; color: $eva_main_blue; + font-family: $font-texte; + font-weight: normal; } } diff --git a/app/assets/stylesheets/admin/composants/_rejoindre_structure.scss b/app/assets/stylesheets/admin/composants/_rejoindre_structure.scss index 050e88cb4..e0407e4ab 100644 --- a/app/assets/stylesheets/admin/composants/_rejoindre_structure.scss +++ b/app/assets/stylesheets/admin/composants/_rejoindre_structure.scss @@ -9,7 +9,7 @@ .infos { max-width: 16.25rem; .sous-infos { - margin-top: .75rem; + margin: .75rem 0 0 0; font-size: .75rem; } } diff --git a/app/assets/stylesheets/admin/pages/_logged_out.scss b/app/assets/stylesheets/admin/pages/_logged_out.scss index 3807d2278..45aefd3e1 100644 --- a/app/assets/stylesheets/admin/pages/_logged_out.scss +++ b/app/assets/stylesheets/admin/pages/_logged_out.scss @@ -6,6 +6,28 @@ body.logged_out { font-size: .875rem; background-color: $eva_light; + h2 { + padding: 0; + margin: 0 0 1.125rem;; + font-size: 1.125rem; + font-family: $font-titre; + text-shadow: none; + box-shadow: none; + color: $grey-50; + background: none; + } + + h3 { + @include titre-carte; + font-size: 1.25rem; + line-height: 1.5rem; + margin-bottom: 1.25rem; + padding: 0; + + .description { + margin-bottom: 0; + } + } + #wrapper { flex-direction: column; display: flex; @@ -81,30 +103,6 @@ body.logged_out { } } - h2 { - padding: 0; - margin: 0 0 1.125rem;; - font-size: 1.125rem; - font-family: $font-titre; - text-shadow: none; - border-top-left-radius: 0.5rem; - border-top-right-radius: 0.5rem; - box-shadow: none; - color: $grey-50; - background: none; - } - - h3 { - @include titre-carte; - font-size: 1.25rem; - line-height: 1.5rem; - margin-bottom: 1.25rem; - padding: 0; - + .description { - margin-bottom: 0; - } - } - .panels-login { display: grid; grid-template-columns: 1fr 1fr; diff --git a/app/components/recherche_structure_component.html.erb b/app/components/recherche_structure_component.html.erb index 9cf2ee895..ec563e02b 100644 --- a/app/components/recherche_structure_component.html.erb +++ b/app/components/recherche_structure_component.html.erb @@ -10,7 +10,7 @@ <% if @ville_ou_code_postal.present? %> <% if @structures_code_postal.present? %> -

<%= @structures_code_postal.size %> résultat(s) pour <%= @code_postal %>

+

<%= t('.titre_resultats', count: @structures_code_postal.size, code_postal: @code_postal) %>

<% @structures_code_postal.each do |structure| %> <%= render(RejoindreStructureComponent.new(structure, @current_compte)) %> <% end %> @@ -19,7 +19,7 @@ <% end %> <% if @structures.present? %> -

Structures à proximité

+

<%= t('.titre_resultats_proches', count: @structures.size) %>

<% @structures.each do |structure| %> <%= render(RejoindreStructureComponent.new(structure, @current_compte)) %> <% end %> diff --git a/app/components/rejoindre_structure_component.html.erb b/app/components/rejoindre_structure_component.html.erb index 7b12aea76..07587b3a9 100644 --- a/app/components/rejoindre_structure_component.html.erb +++ b/app/components/rejoindre_structure_component.html.erb @@ -1,7 +1,7 @@

<%= @structure.nom %>

-
<%= t('.code_postal') %><%= @structure.code_postal %>
+

<%= t('.code_postal') %><%= @structure.code_postal %>

<% if @current_compte.present? %> <%= link_to t('.rejoindre_structure'), diff --git a/app/views/active_admin/devise/registrations/new.html.erb b/app/views/active_admin/devise/registrations/new.html.erb index a7379a9a2..219207daf 100644 --- a/app/views/active_admin/devise/registrations/new.html.erb +++ b/app/views/active_admin/devise/registrations/new.html.erb @@ -9,7 +9,7 @@ <%= resource.structure&.nom -%> <% end %>
- <%= link_to t('.lien_retour'), + <%= link_to t('structures.index.title'), structures_path( code_postal: params[:code_postal], ville_ou_code_postal: params[:ville_ou_code_postal] diff --git a/app/views/admin/recherche_structure/_recherche_structure.html.erb b/app/views/admin/recherche_structure/_recherche_structure.html.erb index a7397f2da..2b4e34abd 100644 --- a/app/views/admin/recherche_structure/_recherche_structure.html.erb +++ b/app/views/admin/recherche_structure/_recherche_structure.html.erb @@ -1,5 +1,4 @@
-

<%= t('.titre') %>

<%= t('.message_accueil') %>

<%= render(@recherche_structure_component) %>
diff --git a/app/views/structures/index.html.erb b/app/views/structures/index.html.erb index 16c03e719..a7136259b 100644 --- a/app/views/structures/index.html.erb +++ b/app/views/structures/index.html.erb @@ -4,6 +4,9 @@ <% content_for :titre do %> <%= t('.titre') -%> <% end %> + <% content_for :sous_titre do %> + <%= t('.title') -%> + <% end %> <%= link_to t('.lien_retour'), new_compte_session_path, diff --git a/config/locales/components/recheche_structure.yml b/config/locales/components/recheche_structure.yml index 8ebc6ed02..b22d851fb 100644 --- a/config/locales/components/recheche_structure.yml +++ b/config/locales/components/recheche_structure.yml @@ -4,3 +4,11 @@ fr: bouton_recherche_structure: Chercher label_champ_recherche: Entrez la localisation de la structure placeholder_recherche: Code postal ou ville + titre_resultats: + zero: "" + one: "1 résultat pour %{code_postal}" + other: "%{count} résultats pour %{code_postal}" + titre_resultats_proches: + zero: "" + one: Structure à proximité + other: Structures à proximité diff --git a/config/locales/views/recherche_structure.yml b/config/locales/views/recherche_structure.yml index 4219c67ed..3fe425793 100644 --- a/config/locales/views/recherche_structure.yml +++ b/config/locales/views/recherche_structure.yml @@ -2,5 +2,4 @@ fr: admin: recherche_structure: recherche_structure: - titre: Quelle est votre structure ? message_accueil: Avant de pouvoir commencer à utiliser eva en tant que conseiller ou conseillère, vous devez retrouver votre structure pour la rejoindre. diff --git a/config/locales/views/structures.yml b/config/locales/views/structures.yml index 3db56764b..ef3fdb346 100644 --- a/config/locales/views/structures.yml +++ b/config/locales/views/structures.yml @@ -3,6 +3,7 @@ fr: index: title: Rechercher ma structure titre: Bienvenue ! + sous_titre: Rechercher ma structure description: | **Vous souhaitez créer un compte conseiller eva.** Dans un premier temps merci de regarder si votre structure est déjà enregistrée. @@ -63,5 +64,4 @@ fr: **Veuillez vérifier les informations saisies avant de valider votre inscription.** Si vous avez des difficultés, vous pouvez nous contacter à : [%{email_contact}](mailto:%{email_contact}) creer_structure: Valider la création de mon compte - lien_retour: Rechercher ma structure description_lien_retour: Retour à la recherche de structure