Sha256: 02524b9e5957e9a61e5da627a4ef8f049c5af5eee25dff8192653d415b287349

Contents?: true

Size: 1.21 KB

Versions: 24

Compression:

Stored size: 1.21 KB

Contents

- content_for :scripts do
  :javascript
    $(function() {
      $('.preview').click(function() {
        for ( instance in CKEDITOR.instances )
          CKEDITOR.instances[instance].updateElement();

        var form = $('form');
        var vals = form.serialize();
        var old_action = form.attr('action');
        form.attr({action: old_action, target: ''});

        e.preventDefault();
      })
    })

= error_messages_for :video

= form_for [:forge, @video] do |f|
  #form-header= title_row(:explanation => "The video title.") { f.text_field :title, :class => 'title' }

  .inner-form.with-normal-sidebar
    .column.side
      = side_row("Video ID", :explanation => "") { content_tag(:div, @video.video_id) }
      = side_row("Thumbnail", :explanation => "") { image_tag(@video.thumbnail_url, :style => "border:2px solid #fff;margin-top:6px;width:146px") }
      = side_row("Published", :explanation => "") { content_tag(:small, @video.published_at.strftime("%B %e, %y at %l:%M")) }
      = publish_box(f, @video)

    .column.main.last
      = video_feed_embed_in_forge(@video)
    .spacer

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

Version data entries

24 entries across 24 versions & 1 rubygems

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