views: rename dossier_footer to procedure_footer

This commit is contained in:
Pierre de La Morinerie 2018-12-17 14:49:59 +00:00
parent 3e2625445c
commit 13f1d4c7d9
13 changed files with 15 additions and 15 deletions

View file

@ -14,7 +14,7 @@ footer {
@include vertical-padding(72px);
}
.dossier-footer {
.procedure-footer {
@include vertical-padding(30px);
line-height: 24px;
}

View file

@ -17,6 +17,6 @@
= yield
- content_for :footer do
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
= render partial: 'new_user/procedure_footer', locals: { dossier: @dossier }
= render template: 'layouts/application'

View file

@ -1,4 +1,4 @@
%footer.dossier-footer
%footer.procedure-footer
.container
- service = dossier.procedure.service
- if service.present?
@ -37,4 +37,4 @@
%p= politique
.footer-row.footer-bottom-line
= render partial: "new_user/dossiers/general_footer_row", locals: { dossier: @dossier }
= render partial: "new_user/general_footer_row", locals: { dossier: @dossier }

View file

@ -1,4 +1,4 @@
%footer.dossier-footer
%footer.procedure-footer
.container
.footer-row.footer-bottom-line
= render partial: "new_user/dossiers/general_footer_row", locals: { dossier: nil }
= render partial: "new_user/general_footer_row", locals: { dossier: nil }

View file

@ -1,7 +1,7 @@
- content_for(:title, "Modification du brouillon nº #{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for :footer do
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
= render partial: "new_user/procedure_footer", locals: { dossier: @dossier }
.dossier-header.sub-header
.container

View file

@ -1,7 +1,7 @@
- content_for(:title, "Demande · Dossier nº #{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for :footer do
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
= render partial: "new_user/procedure_footer", locals: { dossier: @dossier }
#dossier-show
= render partial: 'new_user/dossiers/show/header', locals: { dossier: @dossier }

View file

@ -1,7 +1,7 @@
- content_for(:title, "Informations sur létablissement")
- content_for :footer do
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
= render partial: "new_user/procedure_footer", locals: { dossier: @dossier }
.etablissement
.container

View file

@ -1,7 +1,7 @@
- content_for(:title, "Dossier bien envoyé (#{@dossier.procedure.libelle})")
- content_for :footer do
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
= render partial: "new_user/procedure_footer", locals: { dossier: @dossier }
.merci
.container

View file

@ -1,7 +1,7 @@
- content_for(:title, "Messagerie · Dossier nº #{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for :footer do
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
= render partial: "new_user/procedure_footer", locals: { dossier: @dossier }
#dossier-show
= render partial: 'new_user/dossiers/show/header', locals: { dossier: @dossier }

View file

@ -1,7 +1,7 @@
- content_for(:title, "Modifier · Dossier nº #{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for :footer do
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
= render partial: "new_user/procedure_footer", locals: { dossier: @dossier }
#dossier-show
= render partial: 'new_user/dossiers/show/header', locals: { dossier: @dossier }

View file

@ -1,7 +1,7 @@
- content_for(:title, "Résumé · Dossier nº #{@dossier.id} (#{@dossier.procedure.libelle})")
- content_for :footer do
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
= render partial: "new_user/procedure_footer", locals: { dossier: @dossier }
#dossier-show
= render partial: 'new_user/dossiers/show/header', locals: { dossier: @dossier }

View file

@ -1,4 +1,4 @@
describe 'new_user/dossiers/_dossier_footer.html.haml', type: :view do
describe 'new_user/procedure_footer.html.haml', type: :view do
let(:service) { create(:service) }
let(:dossier) {
dossier = create(:dossier)
@ -6,7 +6,7 @@ describe 'new_user/dossiers/_dossier_footer.html.haml', type: :view do
return dossier
}
subject { render 'new_user/dossiers/dossier_footer.html.haml', dossier: dossier }
subject { render 'new_user/procedure_footer.html.haml', dossier: dossier }
it "affiche les informations de contact" do
expect(subject).to have_text(service.nom)