From c983622805ff1c054de1d5f7e27de48e876426a8 Mon Sep 17 00:00:00 2001 From: kara Diaby Date: Tue, 4 Aug 2020 10:45:49 +0200 Subject: [PATCH] fix attestation template boolean on procedure detail page (new admin interface) --- app/views/new_administrateur/procedures/show.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/new_administrateur/procedures/show.html.haml b/app/views/new_administrateur/procedures/show.html.haml index 68320f480..d8e40772b 100644 --- a/app/views/new_administrateur/procedures/show.html.haml +++ b/app/views/new_administrateur/procedures/show.html.haml @@ -122,14 +122,14 @@ %h2.procedure-admin-explanation Pour aller plus loin .procedure-grid .card-admin - - if @procedure.attestation_template.present? + - if @procedure.attestation_template.present? && @procedure.attestation_template.activated %div %span.icon.accept %p.card-admin-status-accept Activée - else %div %span.icon.clock - %p.card-admin-status-todo À activer + %p.card-admin-status-todo Désactivée %div %p.card-admin-title Attestation %p.card-admin-subtitle Délivrance automatique pour les dossiers acceptés