Sha256: 9014b826d937611fbc8f11ce7bb848bd3cae9b6ef044d0f6c3be2e89b85335b8

Contents?: true

Size: 1.63 KB

Versions: 3

Compression:

Stored size: 1.63 KB

Contents

.row-fluid
  = form_for(  @asset , :as => :asset , :url => url_opts ,  :html => { :multipart=>true  , :method => method_name, :class => "nosubnav validation"} ) do |asset_form|
    = gb_error_messages_for(@asset)

    - unless @asset.thumb_large_url.blank?
      %p
        %img{:src => @asset.thumb_large_url}
      %p
    .row-fluid
      .span6
        %legend Upload
        %p
          = asset_form.label :file , "File to upload"
          = asset_form.file_field(:file , :class => "#{action_name == "new" ? 'required' : ''}")
        %p
          = asset_form.label :name , "Name"
          = asset_form.text_field(:name, :class => "large required" , :maxlength => 255)
        %p
          = asset_form.label :alt , "Description"
          = asset_form.text_field(:alt, :class => "large" , :maxlength => 255 )

        %p
          = asset_form.label :artist_name, "Credits"
          = asset_form.text_field(:artist_name, :class => "large" , :maxlength => 255 )

        - if Rails.configuration.enable_gallery == true
          %p
            = asset_form.label :link
            = asset_form.text_field(:link, :class => "large" , :maxlength => 255 )

        - if @asset.category == "video" || @asset.category == "audio"
          = asset_form.label :poster_image_id
          = asset_form.asset_browser :poster_image_id , :class => "attr_poster_image " , :filter => "image"
      .span6

        = render :partial => "collection_select_form" , :locals => {:asset_form => asset_form }

    .row-fluid
      .span6
        %legend Publish
        .controls{:class => "#{ method_name == "put" ? '' : 'center-new' }"}
          = form_controls(admin_assets_url)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gluttonberg-core-3.0.2 app/views/gluttonberg/admin/asset_library/assets/_form.html.haml
gluttonberg-core-3.0.1 app/views/gluttonberg/admin/asset_library/assets/_form.html.haml
gluttonberg-core-3.0.0 app/views/gluttonberg/admin/asset_library/assets/_form.html.haml