Sha256: 6d9c618513934788ef7a9b34e56bafbe825c3daf6efe7cde2d5157051ad74c4f

Contents?: true

Size: 1.64 KB

Versions: 24

Compression:

Stored size: 1.64 KB

Contents

- content_for :scripts do
  :javascript
    $(function() {
      FORGE.features.videos.init({uploadUrl: '#{@s3_direct_upload.upload_url}', postParams: #{@s3_direct_upload.post_params.to_json}})
    });

= error_messages_for :video

= form_for [:forge, @video], :html => { :multipart => true, :id => 'video-form' } do |f|
  = f.hidden_field :video, :value => @video.video_file_name
  #form-header= title_row(:explanation => "Give your video a title.") { f.text_field :title, :class => 'title' }

  .inner-form.with-normal-sidebar
    .column.side

      = publish_box(f, @video)
      = side_row("Comments", :explanation => "Allow site visitors to comment on this video?") { slider("Yes", f.radio_button(:allow_comments, true), "No", f.radio_button(:allow_comments, false)) }
      = side_row("Thumbnail", :explanation => "A thumbnail will be created when the video is encoded, but you can set your own here.", :last => true) { file_select_widget(f, :thumbnail, :allow_remove => true) }

    .column.main.last
      %h3= @video.new_record? ? "Select Video" : "Replace Video"
      .explanation Choose a video to upload from your computer.
      %span#swfupload-video-button

      #upload-info{:style => "display: none; margin-top: 10px;"}
        #upload-status
        .extendable-inset.deep#progress-bar{:style => "padding: 5px;"}
          #dispatch-progress-read

        .spacer
      %hr

      = content_row("Video Description") { f.cktext_area :description, :width => '100%', :height => '278px;' }


    .spacer

  #item-list-bottom
    .float-right
      Everything look good?
      = button_link "Save", "javascript:;", :class => "submit button"

#swfupload-video-control

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.4 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/videos/_form.html.haml
forge-cli-0.0.10 lib/forge/app/views/forge/videos/_form.html.haml