Sha256: 3e3e62a509fe20a53d988576b68c517973470a65060bf151ddbbc64d09de3dbe

Contents?: true

Size: 1.66 KB

Versions: 10

Compression:

Stored size: 1.66 KB

Contents

- render_region :asset_popups do |popups|
  - popups.upload_asset do
    #upload_asset.popup{:style => 'display: none; width: 28em'}
      #upload_asset_busy.busy{:style => 'display: none'}= image('spinner.gif', :alt => '')

      .popup_title= t('clipped_extension.upload_asset')

      = form_for([:admin, Asset.new], :html => {:method => 'post', :multipart => true, :class => 'upload_asset'}) do |f|
        = hidden_field_tag 'for_attachment', 1
        = hidden_field_tag 'page_id', @page.id
        #upload-controls
          %p
            %label.custom-file-upload
              = t('clipped_extension.choose_file')
              = f.file_field :asset, :class => 'file', :multiple => true
              #upload-status{:style => 'display: none;'}
                %img{:src => '/assets/admin/spinner.gif'}
          %p
            %a#attach-popup{:href=>'#attach_asset', :style => 'color: #666; font-size: .8em'}= t('clipped_extension.attach_existing')

  - popups.attach_asset do
    #attach_asset.popup{:style=>'display: none;'}

      .popup_title= t('clipped_extension.find_assets')

      .toolbar
        = render :partial => 'admin/assets/search', locals: { term: @term, page: @page }

      #assets_table.assets.viewport
        - assets = Asset.all.paginate(:per_page => 20, page: params[:p])
        = render :partial => 'admin/assets/asset_table', :locals => {:assets => assets, :with_pagination => true}

      .busy{:style => 'display: none'}= image('spinner.gif', :alt => '')
      .buttons
        %a.cancel.close_popup{:href=>'#'}= t('close')
        %a{:href=>'#upload_asset', :id=> 'upload_asset_link', :style => 'color: #666; float: left'}= t('clipped_extension.upload_asset')

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-7.0.2 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-7.0.1 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-7.0.0 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-6.3 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-6.2.1 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-6.2.2.1 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-6.2.0 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-6.1.2 app/views/admin/pages/_asset_popups.html.haml
trusty-cms-6.1.1 app/views/admin/pages/_asset_popups.html.haml