footer → dossier_footer

This commit is contained in:
gregoirenovel 2018-09-12 13:24:14 +02:00
parent 6745b67dc4
commit cedf1ba427
8 changed files with 8 additions and 8 deletions

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/footer", locals: { dossier: @dossier }
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
.dossier-edit
.dossier-header.sub-header

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/footer", locals: { dossier: @dossier }
= render partial: "new_user/dossiers/dossier_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, "Nouveau dossier (#{@dossier.procedure.libelle})")
- content_for :footer do
= render partial: "new_user/dossiers/footer", locals: { dossier: @dossier }
= render partial: "new_user/dossiers/dossier_footer", locals: { dossier: @dossier }
.two-columns
.columns-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/footer", locals: { dossier: @dossier }
= render partial: "new_user/dossiers/dossier_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/footer", locals: { dossier: @dossier }
= render partial: "new_user/dossiers/dossier_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/footer", locals: { dossier: @dossier }
= render partial: "new_user/dossiers/dossier_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/_footer.html.haml', type: :view do
describe 'new_user/dossiers/_dossier_footer.html.haml', type: :view do
let(:service) { create(:service) }
let(:dossier) {
dossier = create(:dossier)
@ -6,7 +6,7 @@ describe 'new_user/dossiers/_footer.html.haml', type: :view do
return dossier
}
subject { render 'new_user/dossiers/footer.html.haml', dossier: dossier }
subject { render 'new_user/dossiers/dossier_footer.html.haml', dossier: dossier }
it "affiche les informations de contact" do
expect(subject).to have_text(service.nom)