Display hist for pieces justificatives only if multiple files uploaded
This commit is contained in:
parent
3ad0d1e9cd
commit
fdf6efafb2
1 changed files with 3 additions and 2 deletions
|
@ -95,8 +95,9 @@
|
|||
%a{ href: "#{@pj.content_url}", target: '_blank' } Consulter
|
||||
%span{style:'margin-left:12px'}
|
||||
\-
|
||||
= link_to "", class: "historique", "data-toggle" => "modal", "data-target" => "#PJmodal", :type => "button", "data-modal_title" => 'formulaires', "data-modal_index" => 'cerfa' do
|
||||
%span.fa.fa-clock-o
|
||||
- if @facade.dossier.pieces_justificatives.where(type_de_piece_justificative_id: type_de_piece_justificative.id).count > 1
|
||||
= link_to "", class: "historique", "data-toggle" => "modal", "data-target" => "#PJmodal", :type => "button", "data-modal_title" => 'formulaires', "data-modal_index" => 'cerfa' do
|
||||
%span.fa.fa-clock-o
|
||||
- else
|
||||
= 'Pièce non fournie'
|
||||
|
||||
|
|
Loading…
Reference in a new issue