multiple swags [wip]

This commit is contained in:
nasia 2017-08-23 23:08:58 +03:00
parent a0e1760ef1
commit 4843021971
4 changed files with 22 additions and 12 deletions

View file

@ -20,9 +20,8 @@
off_color: 'warning',
on_text: 'Yes',
off_text: 'No' }
= f.input :type, label: 'Swags type'
= f.input :quantity, label: 'Swags quantity', as: :number, in: 0..9999
- generate_swags_hash(@type, @quantity)
= image_tag f.object.picture.thumb.url if f.object.picture?
= f.input :picture
%p.text-right