Annotations privées look odd in a card

This commit is contained in:
gregoirenovel 2017-12-12 17:24:13 +01:00
parent 95ad67a9ad
commit 2def3ecd20

View file

@ -5,15 +5,14 @@
#dossier-annotations-privees.container #dossier-annotations-privees.container
- if @dossier.ordered_champs_private.present? - if @dossier.ordered_champs_private.present?
%section %section
.card = form_for @dossier, url: annotations_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' } do |f|
= 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|
= f.fields_for :champs_private, f.object.ordered_champs_private do |champ_form| - champ = champ_form.object
- champ = champ_form.object = render partial: "new_gestionnaire/dossiers/champs/champ",
= render partial: "new_gestionnaire/dossiers/champs/champ", locals: { champ: champ, form: champ_form, seen_at: @annotations_privees_seen_at }
locals: { champ: champ, form: champ_form, seen_at: @annotations_privees_seen_at }
.send-wrapper .send-wrapper
= f.submit 'Sauvegarder', class: 'button send', data: { disable_with: "Envoi..." } = f.submit 'Sauvegarder', class: 'button send', data: { disable_with: "Envoi..." }
- else - else
%h2.empty-text Aucune annotation privée %h2.empty-text Aucune annotation privée