[Fix #133] Improve the linked dossier informations displayed

This commit is contained in:
gregoirenovel 2017-04-13 15:47:42 +02:00
parent f5c5ad532d
commit a6d3ea8536
2 changed files with 4 additions and 3 deletions

View file

@ -41,7 +41,9 @@
- if champ.type_champ == 'dossier_link'
- dossier = Dossier.includes(:procedure).find_by(id: champ.decorate.value)
- if dossier
= link_to(dossier.procedure.libelle, backoffice_dossier_path(champ.decorate.value), target: '_blank')
= link_to("Dossier #{dossier.id}", backoffice_dossier_path(champ.decorate.value), target: '_blank')
%br
= dossier.text_summary
- else
Pas de dossier associé
- else