Merge pull request #8829 from demarches-simplifiees/fix-small-details-on-expert-views
[Fix] Petites améliorations de la vue expert
This commit is contained in:
commit
6a544c210a
4 changed files with 13 additions and 10 deletions
|
@ -1,12 +1,15 @@
|
|||
.sub-header
|
||||
.container
|
||||
.flex.justify-between
|
||||
%ul.breadcrumbs
|
||||
%li= link_to('Avis', expert_all_avis_path)
|
||||
%li
|
||||
= link_to(dossier.procedure.libelle.truncate_words(10), procedure_expert_avis_index_path(avis.procedure), class: "fr-link")
|
||||
= procedure_badge(dossier.procedure)
|
||||
%li= link_to("Dossier nº #{dossier.id}", expert_avis_path(avis.procedure, avis))
|
||||
%nav.fr-breadcrumb{ "aria-label" => "vous êtes ici :", role: "navigation" }
|
||||
%button.fr-breadcrumb__button{ "aria-controls" => "breadcrumb-1", "aria-expanded" => "false" } Voir le fil d’Ariane
|
||||
#breadcrumb-1.fr-collapse
|
||||
%ol.fr-breadcrumb__list
|
||||
%li= link_to('Avis', expert_all_avis_path, class: 'fr-breadcrumb__link')
|
||||
%li
|
||||
= link_to(dossier.procedure.libelle.truncate_words(10), procedure_expert_avis_index_path(avis.procedure), class: "fr-breadcrumb__link")
|
||||
= procedure_badge(dossier.procedure)
|
||||
%li= content_tag("a","Dossier nº #{dossier.id}", class: 'fr-breadcrumb__link', 'aria-current': 'page')
|
||||
|
||||
.header-actions
|
||||
.fr-download
|
||||
|
|
|
@ -28,7 +28,7 @@ en:
|
|||
give_avis: Give your opinion
|
||||
see_avis: Read opinions
|
||||
ask_avis: Ask for an opinion
|
||||
ask_new_avis: Ask for a new opinion
|
||||
ask_new_avis: Ask for another opinion
|
||||
information_text:
|
||||
no_new_avis_text: The file has been proceed
|
||||
no_new_avis_text_detail: Opinion requests are closed
|
||||
|
|
|
@ -28,7 +28,7 @@ fr:
|
|||
give_avis: Donner votre avis
|
||||
see_avis: Voir les avis
|
||||
ask_avis: Demander un avis
|
||||
ask_new_avis: Demander un nouvel avis
|
||||
ask_new_avis: Demander un autre avis
|
||||
information_text:
|
||||
no_new_avis_text: Le dossier a été traité
|
||||
no_new_avis_text_detail: Les demandes d'avis ne sont plus autorisées
|
||||
|
|
|
@ -78,7 +78,7 @@ describe 'Inviting an expert:' do
|
|||
expect(page).to have_content('Ma réponse d’expert : c’est un oui.')
|
||||
expect(page).to have_content('RIB.pdf')
|
||||
|
||||
within('.breadcrumbs') { click_on 'Avis' }
|
||||
within('.fr-breadcrumb__list') { click_on 'Avis' }
|
||||
expect(page).to have_text('0 avis à donner')
|
||||
expect(page).to have_text('1 avis donné')
|
||||
end
|
||||
|
@ -114,7 +114,7 @@ describe 'Inviting an expert:' do
|
|||
expect(page).to have_text('Vous')
|
||||
expect(page).to have_text('non')
|
||||
|
||||
within('.breadcrumbs') { click_on 'Avis' }
|
||||
within('.fr-breadcrumb__list') { click_on 'Avis' }
|
||||
expect(page).to have_text('1 avis donné')
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue