Add feature flag OpenSimplif for comments per field

This commit is contained in:
JC 2016-12-05 15:24:07 +01:00
parent 5556775ee9
commit 17e5800487
3 changed files with 20 additions and 13 deletions

View file

@ -99,6 +99,9 @@
.comments {
margin-right: -10px;
}
.comments-off {
margin-right: -35px;
}
.dossier-title {
font-size: 16px;
min-height: 40px;

View file

@ -29,6 +29,7 @@
- else
.row
%div.col-md-6.col-lg-6.depositaire-label= champ.libelle
- if Features.opensimplif
%div.col-md-1.col-lg-1.comments
- if gestionnaire_signed_in?
= link_to "", "data-href" => backoffice_dossier_commentaires_path(@facade.dossier, champs_id: champ.id), "data-toggle" => "modal", "data-target" => "#modalCommentairesDossierParChamp" do
@ -36,6 +37,9 @@
- else
= link_to "", "data-href" => users_dossier_commentaires_path(@facade.dossier, champs_id: champ.id), "data-toggle" => "modal", "data-target" => "#modalCommentairesDossierParChamp" do
%i.fa.fa-commenting-o
- else
%div.col-md-1.col-lg-1.comments-off
= "-"
%div.col-md-5.col-lg-5.depositaire-info
- unless champ.decorate.value.blank?
= champ.decorate.value.html_safe