Add feature flag OpenSimplif for comments per field
This commit is contained in:
parent
5556775ee9
commit
17e5800487
3 changed files with 20 additions and 13 deletions
|
@ -99,6 +99,9 @@
|
||||||
.comments {
|
.comments {
|
||||||
margin-right: -10px;
|
margin-right: -10px;
|
||||||
}
|
}
|
||||||
|
.comments-off {
|
||||||
|
margin-right: -35px;
|
||||||
|
}
|
||||||
.dossier-title {
|
.dossier-title {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
min-height: 40px;
|
min-height: 40px;
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
- else
|
- else
|
||||||
.row
|
.row
|
||||||
%div.col-md-6.col-lg-6.depositaire-label= champ.libelle
|
%div.col-md-6.col-lg-6.depositaire-label= champ.libelle
|
||||||
|
- if Features.opensimplif
|
||||||
%div.col-md-1.col-lg-1.comments
|
%div.col-md-1.col-lg-1.comments
|
||||||
- if gestionnaire_signed_in?
|
- 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
|
= 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
|
- else
|
||||||
= link_to "", "data-href" => users_dossier_commentaires_path(@facade.dossier, champs_id: champ.id), "data-toggle" => "modal", "data-target" => "#modalCommentairesDossierParChamp" do
|
= 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
|
%i.fa.fa-commenting-o
|
||||||
|
- else
|
||||||
|
%div.col-md-1.col-lg-1.comments-off
|
||||||
|
= "-"
|
||||||
%div.col-md-5.col-lg-5.depositaire-info
|
%div.col-md-5.col-lg-5.depositaire-info
|
||||||
- unless champ.decorate.value.blank?
|
- unless champ.decorate.value.blank?
|
||||||
= champ.decorate.value.html_safe
|
= champ.decorate.value.html_safe
|
||||||
|
|
Loading…
Add table
Reference in a new issue