DossierLink: add show template
This commit is contained in:
parent
3228737a87
commit
a324a22ba2
1 changed files with 9 additions and 2 deletions
|
@ -34,10 +34,17 @@
|
||||||
- else
|
- else
|
||||||
.row
|
.row
|
||||||
.col-xs-6.depositaire-label= champ.libelle
|
.col-xs-6.depositaire-label= champ.libelle
|
||||||
.col-md-1.col-lg-1.col-sm-1.col-xs-1.comments-off
|
.col-xs-1.comments-off
|
||||||
= "-"
|
= "-"
|
||||||
.col-xs-5.depositaire-info{ id: "champ-#{champ.id}-value" }
|
.col-xs-5.depositaire-info{ id: "champ-#{champ.id}-value" }
|
||||||
- unless champ.decorate.value.blank?
|
- unless champ.decorate.value.blank?
|
||||||
|
- if champ.type_champ == 'dossier_link'
|
||||||
|
- dossier = Dossier.find_by(id: champ.decorate.value)
|
||||||
|
- if dossier && gestionnaire_signed_in?
|
||||||
|
= link_to(dossier.procedure.libelle, backoffice_dossier_path(champ.decorate.value), target: '_blank')
|
||||||
|
- else
|
||||||
|
= dossier.nil? ? 'pas de dossier associé' : dossier.procedure.libelle
|
||||||
|
- else
|
||||||
= champ.decorate.value.html_safe
|
= champ.decorate.value.html_safe
|
||||||
|
|
||||||
- if @facade.dossier.mandataire_social && gestionnaire_signed_in?
|
- if @facade.dossier.mandataire_social && gestionnaire_signed_in?
|
||||||
|
|
Loading…
Reference in a new issue