Need to test UI

This commit is contained in:
JC 2016-12-06 15:36:04 +01:00
parent 029fb1faec
commit 6d8d8470d8
3 changed files with 28 additions and 1 deletions

View file

@ -89,6 +89,11 @@
}
#carto {
}
#private-fields {
.text-primary {
color: #337ab7;
}
}
#pieces-jointes {
.piece-row {
margin: 20px;
@ -101,7 +106,7 @@
color: #000000;
}
}
#dossier, #pieces-jointes, #infos, #carto {
#dossier, #pieces-jointes, #infos, #carto, #private-fields {
.body {
padding: 0 20px 0 20px;
color: #000000;

View file

@ -104,3 +104,16 @@
%div.body
= render partial: '/dossiers/infos_carto'
.default_data_block
%div.row.show-block#private-fields
%div.header
%div.col-lg-10.col-md-10.title
%div.carret-right
%div.carret-down
= "champs privés".upcase
%div.col-lg-2.col-md-2.count
- private_fields_count = @champs.count
= (private_fields_count == 1) ? "1 champ privé" : "#{private_fields_count} champs privés"
%div.body
= render partial: '/dossiers/infos_private_fields'

View file

@ -0,0 +1,9 @@
.row
.col-md-12.col-lg-12
- if @champs.nil? || @champs.empty?
%h4.text-primary.center
Pas de champ privé pour ce dossier
- else
= form_for @facade.dossier, url: {controller: 'backoffice/private_formulaires', action: :update, dossier_id: @facade.dossier.id}, remote: true do
= render partial: '/users/description/champs'
= submit_tag :Enregistrer, {class: 'action', style: 'float: right'}