MandatoryAttachment: show * near mandatory attachment
This commit is contained in:
parent
2b969ef575
commit
ce4a23ec7f
1 changed files with 9 additions and 9 deletions
|
@ -18,24 +18,24 @@
|
||||||
- else
|
- else
|
||||||
%input{ type: 'file', name: 'cerfa_pdf', id: 'cerfa_pdf', accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes }
|
%input{ type: 'file', name: 'cerfa_pdf', id: 'cerfa_pdf', accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes }
|
||||||
|
|
||||||
- dossier.types_de_piece_justificative.order('order_place ASC').each do |type_de_piece_justificative|
|
- dossier.types_de_piece_justificative.order('order_place ASC').each do |tpj|
|
||||||
%tr
|
%tr
|
||||||
%th.piece-libelle
|
%th.piece-libelle
|
||||||
= type_de_piece_justificative.libelle
|
= tpj.mandatory ? tpj.libelle + ' *' : tpj.libelle
|
||||||
|
|
||||||
%td
|
%td
|
||||||
- unless type_de_piece_justificative.lien_demarche.blank?
|
- unless tpj.lien_demarche.blank?
|
||||||
%em
|
%em
|
||||||
Récupérer le formulaire vierge pour mon dossier :
|
Récupérer le formulaire vierge pour mon dossier :
|
||||||
= link_to "Télécharger", type_de_piece_justificative.lien_demarche, target: :blank
|
= link_to "Télécharger", tpj.lien_demarche, target: :blank
|
||||||
|
|
||||||
%td
|
%td
|
||||||
- if type_de_piece_justificative.api_entreprise
|
- if tpj.api_entreprise
|
||||||
%span.text-success{ id: "piece_justificative_#{type_de_piece_justificative.id}" } Nous l'avons récupéré pour vous.
|
%span.text-success{ id: "piece_justificative_#{tpj.id}" } Nous l'avons récupéré pour vous.
|
||||||
- else
|
- else
|
||||||
- if dossier.retrieve_last_piece_justificative_by_type(type_de_piece_justificative.id).nil?
|
- if dossier.retrieve_last_piece_justificative_by_type(tpj.id).nil?
|
||||||
= file_field_tag "piece_justificative_#{type_de_piece_justificative.id}", accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes
|
= file_field_tag "piece_justificative_#{tpj.id}", accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes
|
||||||
- else
|
- else
|
||||||
%span.btn.btn-sm.btn-file.btn-success
|
%span.btn.btn-sm.btn-file.btn-success
|
||||||
Modifier
|
Modifier
|
||||||
= file_field_tag "piece_justificative_#{type_de_piece_justificative.id}", accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes
|
= file_field_tag "piece_justificative_#{tpj.id}", accept: PieceJustificative.accept_format, :max_file_size => 6.megabytes
|
||||||
|
|
Loading…
Reference in a new issue