2015-11-20 14:17:38 +01:00
|
|
|
|
|
|
|
= f.fields_for :types_de_piece_justificative, types_de_piece_justificative do |ff|
|
|
|
|
.form-inline
|
|
|
|
.form-group
|
|
|
|
%h4 Libellé
|
|
|
|
=ff.text_field :libelle, class: 'form-control libelle', placeholder: 'Libellé'
|
|
|
|
|
|
|
|
.form-group
|
|
|
|
%h4 Description
|
|
|
|
=ff.text_area :description, class: 'form-control description', placeholder: 'Description'
|
|
|
|
|
2015-11-20 15:33:03 +01:00
|
|
|
|
|
|
|
.form-group
|
|
|
|
%br
|
|
|
|
- if ff.object.id.nil?
|
|
|
|
= f.submit('Ajouter la pièce', class: 'btn btn-success')
|
|
|
|
- else
|
|
|
|
= link_to("", admin_procedure_piece_justificative_path(@procedure, ff.object.id), method: :delete, remote: true, id: "delete_type_de_piece_justificative_#{ff.object.id}", class: %w(form-control btn btn-danger fa fa-trash-o) )
|
2015-11-20 14:17:38 +01:00
|
|
|
|