2018-04-23 17:22:20 +02:00
|
|
|
.dossiers-headers.sub-header
|
2018-04-13 17:29:34 +02:00
|
|
|
.container
|
2018-09-05 14:48:42 +02:00
|
|
|
%h1.page-title Prévisualisation de la démarche « #{@dossier.procedure.libelle} »
|
2018-04-13 16:56:00 +02:00
|
|
|
|
2018-04-13 17:29:34 +02:00
|
|
|
%ul.tabs
|
2018-08-16 16:30:55 +02:00
|
|
|
= tab_item('le dossier',
|
|
|
|
apercu_procedure_path(@dossier.procedure, tab: 'dossier'),
|
|
|
|
active: @tab == 'dossier')
|
2018-04-13 17:29:34 +02:00
|
|
|
- if @dossier.champs_private.size > 0
|
2018-08-16 16:30:55 +02:00
|
|
|
= tab_item('les annotations privées',
|
|
|
|
apercu_procedure_path(@dossier.procedure, tab: 'annotations-privees'),
|
|
|
|
active: @tab == 'annotations-privees')
|
2018-04-13 17:29:34 +02:00
|
|
|
|
|
|
|
- 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 }
|