demarches-normaliennes/app/views/new_administrateur/procedures/apercu.html.haml
2018-04-24 16:54:05 +02:00

22 lines
1,010 B
Text

.dossiers-headers.accompagnateur-header
.container
%h1.page-title Prévisualisation de la procédure #{@dossier.procedure.libelle}
%ul.tabs
%li{ class: (@tab == 'dossier') ? 'active' : nil }>
= link_to(apercu_procedure_path(@dossier.procedure, tab: 'dossier')) do
le dossier
- if @dossier.champs_private.size > 0
%li{ class: (@tab == 'annotations-privees') ? 'active' : nil }>
= link_to(apercu_procedure_path(@dossier.procedure, tab: 'annotations-privees')) do
les annotations privees
- if @tab == 'dossier'
= render partial: "shared/dossiers/edit", locals: { dossier: @dossier, apercu: true }
- else
.container
= form_for @dossier, url: '', method: :get, html: { class: 'form' } do |f|
= f.fields_for :champs_private, @dossier.champs_private do |champ_form|
- champ = champ_form.object
= render partial: "shared/dossiers/editable_champs/editable_champ",
locals: { champ: champ, form: champ_form }