Merge pull request #1105 from sgmap/improve-ui

Improve ui
This commit is contained in:
gregoirenovel 2017-12-15 10:42:21 +01:00 committed by GitHub
commit 3b73a781cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 12 deletions

View file

@ -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 {

View file

@ -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

View file

@ -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