Sha256: 31c5d732113ccb8990ddde692253806349c47c88cc38fc562fd8958909bdea61

Contents?: true

Size: 1001 Bytes

Versions: 8

Compression:

Stored size: 1001 Bytes

Contents

= form_for newsitem, :html => { :multipart => true } do |f|
  .a
    = f.label :site
    = f.select :site_id, options_for_select( @sites_list, :selected => ( @site ? @site.id : nil ) )
    %br
    = f.label :city
    = f.select :city_id, options_for_select( @cities_list, :selected => ( @city ? @city.id : nil ) )
    %br
    = f.label :tag
    = f.select :tag_id, options_for_select( @tags_list, (@tag||Tag.new).id )

  .a
    = f.label :name
    = f.text_field :name
  .a
    = f.label :descr
    = f.text_area :descr, :class => :tinymce
  .a
    = f.label :video
    = f.select :video_id, options_for_select( @videos_list, :selected => @newsitem.video_id )
  .a
    = f.label :gallery
    = f.select :gallery_id, options_for_select( @galleries_list, :selected => @newsitem.gallery_id )
  .a
    = f.label :report
    = f.select :report_id, options_for_select( @reports_list, :selected => @newsitem.report_id )
  .a
    = label_tag :photo
    = file_field_tag :photo
  .a
    = f.submit :submit
  

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ish_manager-0.1.8.162 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.160 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.159 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.158 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.157 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.156 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.155 app/views/ish_manager/newsitems/_form.haml
ish_manager-0.1.8.154 app/views/ish_manager/newsitems/_form.haml