end delete type de piece justificative
This commit is contained in:
parent
bd5dc1e35a
commit
17ca244a2f
6 changed files with 58 additions and 2 deletions
|
@ -9,8 +9,10 @@
|
|||
%h4 Description
|
||||
=ff.text_area :description, class: 'form-control description', placeholder: 'Description'
|
||||
|
||||
-if ff.object.id.nil?
|
||||
- if ff.object.id.nil?
|
||||
.form-group#add_type_de_piece_justificative_button
|
||||
%br
|
||||
= f.submit('Ajouter la pièce')
|
||||
- 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) )
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue