force order place to index for type de champ

This commit is contained in:
Tanguy PATTE 2015-11-17 17:18:00 +01:00
parent 008fb396b7
commit cf81623937
2 changed files with 3 additions and 1 deletions

View file

@ -10,7 +10,7 @@
%h4 Description
= ff.text_area :description, class: 'form-control description', placeholder: 'Description'
.form-group
= ff.hidden_field :order_place
= ff.hidden_field :order_place, value: ff.index
= ff.hidden_field :id
/ .form-group.order_type_de_champ_button{id: "order_type_de_champ_#{type_de_champ.id || index}_button", style: ("display:none" if type_de_champ.id.nil?)}