From da5c3c30078220fd1e14a12c8c05ce61f1f9561d Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Thu, 18 Oct 2018 12:45:13 +0200 Subject: [PATCH] dossier: remove unused pieces_justificatives partial --- .../dossiers/_pieces_justificatives.html.haml | 27 ------------------- 1 file changed, 27 deletions(-) delete mode 100644 app/views/dossiers/_pieces_justificatives.html.haml diff --git a/app/views/dossiers/_pieces_justificatives.html.haml b/app/views/dossiers/_pieces_justificatives.html.haml deleted file mode 100644 index 4d945b685..000000000 --- a/app/views/dossiers/_pieces_justificatives.html.haml +++ /dev/null @@ -1,27 +0,0 @@ -#pieces-justificatives - %table.table - - @facade.dossier.types_de_piece_justificative.order('order_place ASC').each do |type_de_piece_justificative| - %tr{ id: "piece_justificative_#{type_de_piece_justificative.id}" } - %th.col-lg-6 - = type_de_piece_justificative.libelle - %td.col-lg-6.col-md-6.col-sm-6.col-xs-6 - - if type_de_piece_justificative.api_entreprise - %span.text-success Nous l'avons récupéré pour vous. - - elsif (@pj = @facade.dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id)).present? - -# - if user_signed_in? - -# = 'Pièce fournie' - -# - elsif gestionnaire_signed_in? - %a{ href: "#{@pj.content_url}", target: '_blank' } Consulter - %span{ style: 'margin-left: 12px;' } - \- - %a.btn.fa.fa-timer{ style: 'color: black; padding-top: 0;', - "data-target" => "#pj-modal", - "data-toggle" => "modal", - :type => "button", - "data-modal_title" => type_de_piece_justificative.libelle, - "data-modal_index" => "type_de_pj_#{type_de_piece_justificative.id}" } - - else - = 'Pièce non fournie' - - -# - if gestionnaire_signed_in? - = render partial: '/dossiers/modal_historique'