Sha256: 02cd43b727c41b6c5018f5de1ae9129470d66476d4d18c078989b8aa44f4e17a

Contents?: true

Size: 1.29 KB

Versions: 36

Compression:

Stored size: 1.29 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, :class => :tinymce

    .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

36 entries across 36 versions & 1 rubygems

Version Path
ish_manager-0.1.8.434 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.433 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.432 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.431 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.430 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.429 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.428 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.427 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.426 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.425 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.424 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.423 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.422 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.421 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.420 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.419 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.418 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.417 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.416 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.415 app/views/ish_manager/newsitems/_form.haml