commit
3b73a781cc
3 changed files with 16 additions and 12 deletions
|
@ -14,10 +14,15 @@
|
|||
margin-bottom: $default-padding;
|
||||
}
|
||||
|
||||
.tab-list,
|
||||
.tab-paragraph {
|
||||
margin-bottom: 2 * $default-padding;
|
||||
}
|
||||
|
||||
.accompagnateur-header {
|
||||
background-color: $light-grey;
|
||||
padding-top: $default-padding;
|
||||
margin-bottom: 2 * $default-spacer;
|
||||
margin-bottom: 3 * $default-spacer;
|
||||
border-bottom: 1px solid $border-grey;
|
||||
|
||||
.container {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
.tab-title= title
|
||||
|
||||
- if emails_collection.present?
|
||||
%ul
|
||||
%ul.tab-list
|
||||
- emails_collection.each do |email|
|
||||
%li
|
||||
= email
|
||||
- else
|
||||
= blank
|
||||
%p.tab-paragraph
|
||||
= blank
|
||||
|
|
|
@ -5,16 +5,14 @@
|
|||
#dossier-annotations-privees.container
|
||||
- if @dossier.ordered_champs_private.present?
|
||||
%section
|
||||
%h1.tab-title Annotations privées
|
||||
.card.featured
|
||||
= form_for @dossier, url: annotations_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' } do |f|
|
||||
= f.fields_for :champs_private, f.object.ordered_champs_private do |champ_form|
|
||||
- champ = champ_form.object
|
||||
= render partial: "new_gestionnaire/dossiers/champs/champ",
|
||||
locals: { champ: champ, form: champ_form, seen_at: @annotations_privees_seen_at }
|
||||
= form_for @dossier, url: annotations_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' } do |f|
|
||||
= f.fields_for :champs_private, f.object.ordered_champs_private do |champ_form|
|
||||
- champ = champ_form.object
|
||||
= render partial: "new_gestionnaire/dossiers/champs/champ",
|
||||
locals: { champ: champ, form: champ_form, seen_at: @annotations_privees_seen_at }
|
||||
|
||||
.send-wrapper
|
||||
= f.submit 'Sauvegarder', class: 'button send', data: { disable_with: "Envoi..." }
|
||||
.send-wrapper
|
||||
= f.submit 'Sauvegarder', class: 'button send', data: { disable_with: "Envoi..." }
|
||||
|
||||
- else
|
||||
%h2.empty-text Aucune annotation privée
|
||||
|
|
Loading…
Add table
Reference in a new issue