Sha256: 9bc273e161885e2ab1b597fb43d9cca8b8b57113e8f69ffe34a38e8805367c48

Contents?: true

Size: 1.59 KB

Versions: 29

Compression:

Stored size: 1.59 KB

Contents

-#
-# ish_manager / newsitems / _form
-#

= form_for newsitem, :html => { :multipart => true } do |f|
  .row

    .col.s6
      .field
        = f.label :name
        = f.text_field :name
      .field
        = f.label :created_at
        = f.text_field :created_at
      .field
        = f.label :descr
        = f.text_area :descr, :class => :tinymce
      .field
        = label_tag :photo
        = file_field_tag :photo

    .col.s6
      .field
        = f.label :map
        = f.select :map_id, options_for_select( @maps_list, selected:( newsitem[:map_id] || params[:map_id] ) )
      .field
        = f.label :site
        = f.select :site_id, options_for_select( @sites_list, :selected => ( newsitem[:site_id] || params[:site_id] ) )
      .field
        = f.label :city
        = f.select :city_id, options_for_select( @cities_list, :selected => ( newsitem[:city_id] || params[:city_id] ) )
      -# @TODO: tags must be multi-select, not 1x1
      .field
        = f.label :user_profile
        = f.select :user_profile_id, options_for_select( @user_profiles_list, selected: ( newsitem[:user_profile_id] || params[:user_profile_id] ) )


  %hr
  .row
    .col.s6
      .field
        = f.label :video
        = f.select :video_id, options_for_select( @videos_list, :selected => @newsitem.video_id )
      .field
        = f.label :gallery
        = f.select :gallery_id, options_for_select( @galleries_list, :selected => @newsitem.gallery_id )
      .field
        = f.label :report
        = f.select :report_id, options_for_select( @reports_list, :selected => @newsitem.report_id )

    .col.s6
      = f.submit :submit

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
ish_manager-0.1.8.290 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.289 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.288 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.287 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.284 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.282 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.281 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.280 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.279 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.278 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.277 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.274 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.273 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.272 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.271 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.268 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.266 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.265 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.264 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.263 app/views/ish_manager/newsitems/_form.haml