add feature test on type de champ:

add typde de champ
delete type de champ
This commit is contained in:
Tanguy PATTE 2015-11-17 11:23:13 +01:00
parent afd0b72ae8
commit 65c8c039ac
2 changed files with 38 additions and 69 deletions

View file

@ -25,7 +25,7 @@
- unless ff.object.id.nil?
.form-group
%br  
= link_to("Delete", admin_procedure_type_de_champ_path(@procedure, ff.object.id), method: :delete, remote: true)
/ %button.form-control.btn.btn-danger.fa.fa-trash-o{type: 'button'}
/ , id: "delete_type_de_champ_#{type_de_champ.id || index}_procedure"}
= link_to("", admin_procedure_type_de_champ_path(@procedure, ff.object.id), method: :delete, remote: true, id: "delete_type_de_champ_#{ff.object.id}", class: %w(form-control btn btn-danger fa fa-trash-o) )