Sha256: 1fd439c25ba78e2481848221a1ea7a0d5f6e96db6217237763fe6ff7900baac3
Contents?: true
Size: 1.31 KB
Versions: 9
Compression:
Stored size: 1.31 KB
Contents
-# -# ish_manager / newsitems / _form -# = form_for newsitem, :html => { :multipart => true } do |f| .row .col-sm-6 .field = f.label :map = f.select :map_id, options_for_select( @maps_list, selected:( newsitem[:map_id] || params[:map_id] ) ), {}, class: 'select2' .field = f.label :profile = f.select :profile_id, options_for_select( @profiles_list, selected: newsitem[:profile_id] ), {}, class: 'select2' .col-sm-6 = f.submit :submit %hr .row .col-sm-6 .field = f.label :name = f.text_field :name .field = label_tag :photo = file_field_tag :photo .field = f.label :subhead = f.text_area :subhead .field = f.label :descr = f.text_area :descr .descr= raw newsitem.descr .col-sm-6 .field = f.label :video = f.select :video_id, options_for_select( @videos_list, :selected => @newsitem.video_id ), {}, class: 'select2' .field = f.label :gallery = f.select :gallery_id, options_for_select( @galleries_list, :selected => @newsitem.gallery_id ), {}, class: 'select2' .field = f.label :report = f.select :report_id, options_for_select( @reports_list, :selected => @newsitem.report_id ), {}, class: 'select2'
Version data entries
9 entries across 9 versions & 1 rubygems