Sha256: 766d62c8ee8dfd388e4344fb5ae4233823d67b1a2cca7f2a28379d0e3d1cad3a

Contents?: true

Size: 1023 Bytes

Versions: 2

Compression:

Stored size: 1023 Bytes

Contents

- url = video.persisted? ? update_video_path( video ) : videos_path
= form_for video, :url => url do |f|

  = render 'form_errors', :item => @video
 
  .field
    = f.label :youtube_id
    = f.text_field :youtube_id

  .field
    = f.label :name
    = f.text_field :name

  .field
    = f.label :tag_id
    = select :video, :tag_id, @tags_list, :selected => params[:tag_id]

  .field
    = f.label :city_id
    = select :video, :city_id, @cities_list

  .field
    = f.label :site_id
    = select_tag 'video[site_id]', options_for_select( @sites_list )
    
  .field
    = f.label :descr
    = f.text_field :descr

  .row
    .large-6.columns
      = f.label :x
      = f.text_field :x
    .large-6.columns
      = f.label :y
      = f.text_field :y

  .row
    .small-4.columns
      = f.label :is_public
      = f.check_box :is_public
    .small-4.columns
      = f.label :is_trash
      = f.check_box :is_trash
    .small-4.columns
      = f.label :is_feature
      = f.check_box :is_feature


  .action
    = f.submit

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ish_manager-0.1.8.24 app/views/ish_manager/videos/_form.haml
ish_manager-0.1.8.23 app/views/ish_manager/videos/_form.haml