Fix swag partial
This commit is contained in:
parent
e55509183c
commit
2042d0eb7a
2 changed files with 4 additions and 5 deletions
|
|
@ -23,10 +23,9 @@
|
||||||
on_text: 'Yes',
|
on_text: 'Yes',
|
||||||
off_text: 'No' }
|
off_text: 'No' }
|
||||||
|
|
||||||
- @sponsor.swag_hash.each_with_index do |k, v, index|
|
- @sponsor.swag_hash.each_with_index do |hash, index|
|
||||||
=render partial: 'swag_fields', locals: {f: f, index: index}
|
=render partial: 'swag_fields', locals: {f: f, index: index}
|
||||||
|
=render partial: 'swag_fields', locals: { f: f, index: @sponsor.swag_index}
|
||||||
|
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.col-md-8
|
.col-md-8
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
.row
|
.row
|
||||||
.col-md-6
|
.col-md-6
|
||||||
= text_field_tag "sponsor[swag_hash][#{index}][type]"
|
= f.input :type, label: 'Swag\'s type', input_html: { name: "sponsor[swag_hash][#{index}][type]"}
|
||||||
.col-md-6
|
.col-md-6
|
||||||
= text_field_tag "sponsor[swag_hash][#{index}][quantity]"
|
= f.input :quantity, input_html: { name: "sponsor[swag_hash][#{index}][quantity]"}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue