Sha256: 8ab58804bd35f20721864ab9803ca4593e1820257671664461c2369f6d51b1f9

Contents?: true

Size: 1.16 KB

Versions: 4

Compression:

Stored size: 1.16 KB

Contents

.modal-tab-pane.tab-content
  - unless params[:hide_upload]
    #upload-asset
      %h5= t('tenon.assets.from_your_computer')
      #progress
      = form_for Tenon::Asset.new, format: 'json', builder: Tenon::FormBuilder do |f|
        = error_messages_for :asset
        .fields.full
          .form-group
            .browse-button-holder.solo
              .fileupload.btn.btn-comp.browse
                %span#choose-files= t('tenon.common.browse')
                %input{ :type => 'file', :class => 'upload', multiple: defined?(multiple) && multiple, style: 'width: 100%;', name: 'asset[attachment]' }
        .spacer

  #pick-asset
    %h5= t('tenon.assets.from_the_asset_library')

    .filter= text_field_tag :q, '', id: 'quick-search', class: 'filter search', placeholder: t('tenon.assets.filter_assets'), data: { 'record-list' => '.asset-list' }

    .asset-list-scroller
      %ul#modal-asset-list.asset-list.record-grid.infinite-scroll{ data: { records: { url: assets_path(format: 'json'), template: 'tenon/templates/assets/asset_row', name: 'asset' } } }

      = link_to t('tenon.assets.load_more'), '#', :class => 'infinite-loader', 'data-record-list' => '#modal-asset-list'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tenon-1.1.8 app/views/tenon/item_assets/new.html.haml
tenon-1.1.7 app/views/tenon/item_assets/new.html.haml
tenon-1.1.6 app/views/tenon/item_assets/new.html.haml
tenon-1.1.5 app/views/tenon/item_assets/new.html.haml