app/views/wco/videos/_form.haml in wco_models-3.1.0.155 vs app/views/wco/videos/_form.haml in wco_models-3.1.0.161
- old
+ new
@@ -1,24 +1,21 @@
= form_for video do |f|
.row
.col-sm-6
.field
- = f.label :youtube_id
+ %label youtube_id
= f.text_field :youtube_id
.field
- = f.label :name
+ %label Title (name)
= f.text_field :name
- -# .input-group
- -# = f.label :premium_tier
- -# = f.number_field :premium_tier
- -# .input-group
- -# = f.check_box :is_trash
- -# = f.label :is_trash
- -# .field
- -# %label Lead
- -# = f.select :lead_id, options_for_select(@leads_list, selected: video.lead_id), {}, class: :select2
+ .field
+ %label Lead
+ = f.select :lead_id, options_for_select(@leads_list, selected: video.lead_id), {}, class: :select2
+ .field
+ %label Tags
+ = f.select :tag_ids, options_for_select(@tags_list, selected: video.tag_ids), { }, { class: :select2, multiple: 'multiple' }
.col-sm-6
.field
= f.label :video
= f.file_field :video
.field
@@ -28,12 +25,11 @@
-# = render 'wco/application/form_nonpublic', f: f, model: video
.row
.col-md-6
- .field
- = f.label :descr
- = f.text_area :descr, class: :tinymce
+ %label descr
+ = f.text_area :descr, class: :tinymce
.action
= f.submit