harmonize admin header for dashboard view
This commit is contained in:
parent
8f777ef587
commit
7ee62a170d
4 changed files with 21 additions and 12 deletions
|
@ -22,12 +22,21 @@
|
||||||
|
|
||||||
- if defined?(metadatas)
|
- if defined?(metadatas)
|
||||||
.metadatas.pb-3
|
.metadatas.pb-3
|
||||||
%h1.fr-h6.fr-mb-0= t('created_at', scope: [:layouts, :breadcrumb], number: @procedure.id, date: @procedure.created_at.strftime('%d/%m/%Y'))
|
%h1.fr-h6.fr-mb-1w
|
||||||
|
= @procedure.libelle
|
||||||
|
%span.fr-text--sm
|
||||||
|
= t('created_at', scope: [:layouts, :breadcrumb], number: @procedure.id, date: @procedure.created_at.strftime('%d/%m/%Y'))
|
||||||
|
|
||||||
- if @procedure.close?
|
- if @procedure.close?
|
||||||
%p.fr-h2= t('closed_at', scope: [:layouts, :breadcrumb], date: @procedure.closed_at.strftime('%d/%m/%Y'))
|
%span.fr-badge.fr-badge--warning
|
||||||
%p
|
= t('closed_at', scope: [:layouts, :breadcrumb], date: @procedure.closed_at.strftime('%d/%m/%Y'))
|
||||||
- if @procedure.locked?
|
|
||||||
= t('published', scope: [:layouts, :breadcrumb])
|
- elsif @procedure.locked?
|
||||||
= link_to commencer_url(@procedure.path), commencer_url(@procedure.path)
|
.flex
|
||||||
- else
|
%span.fr-badge.fr-badge--success.fr-mr-1w
|
||||||
|
= t('published', scope: [:layouts, :breadcrumb])
|
||||||
|
= link_to commencer_url(@procedure.path), commencer_url(@procedure.path), class: "fr-link"
|
||||||
|
|
||||||
|
- else
|
||||||
|
%span.fr-badge.fr-badge--info
|
||||||
= t('draft', scope: [:layouts, :breadcrumb])
|
= t('draft', scope: [:layouts, :breadcrumb])
|
||||||
|
|
|
@ -7,7 +7,7 @@ en:
|
||||||
preview: "Preview the form"
|
preview: "Preview the form"
|
||||||
continue: "Continue"
|
continue: "Continue"
|
||||||
continue_title: "You can comeback using this link"
|
continue_title: "You can comeback using this link"
|
||||||
created_at: "Procedure n° %{number} created at %{date}"
|
created_at: "- n° %{number} created at %{date}"
|
||||||
closed_at: "Closed at %{date}"
|
closed_at: "Closed at %{date}"
|
||||||
published: "Published"
|
published: "Published"
|
||||||
draft: "Draft"
|
draft: "Draft"
|
||||||
|
|
|
@ -7,7 +7,7 @@ fr:
|
||||||
preview: "Prévisualiser le formulaire"
|
preview: "Prévisualiser le formulaire"
|
||||||
continue: "Continuer"
|
continue: "Continuer"
|
||||||
continue_title: "Vous pourrez revenir ici par la suite"
|
continue_title: "Vous pourrez revenir ici par la suite"
|
||||||
created_at: "Démarche n° %{number}, créée le %{date}"
|
created_at: "- n° %{number}, créée le %{date}"
|
||||||
closed_at: "Close le %{date}"
|
closed_at: "Close le %{date}"
|
||||||
published: "Publiée – "
|
published: "Publiée"
|
||||||
draft: "Brouillon"
|
draft: "En test"
|
||||||
|
|
|
@ -22,7 +22,7 @@ describe 'administrateurs/procedures/show', type: :view do
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'procedure path is not customized' do
|
describe 'procedure path is not customized' do
|
||||||
it { expect(rendered).to have_content('Brouillon') }
|
it { expect(rendered).to have_content('En test') }
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'archive button' do
|
describe 'archive button' do
|
||||||
|
|
Loading…
Reference in a new issue