Sha256: 4884c675a52527a01131a730e5aa25255d30aa8cc65a3bad8a2ec0c40cf5170d

Contents?: true

Size: 878 Bytes

Versions: 8

Compression:

Stored size: 878 Bytes

Contents

.modal.modal--fixed-footer
  .modal__content
    %h2 Choose Asset
    - unless params[:hide_upload]
      .upload-asset
        %h3 From Your Device
        .progress-container
        = form_for Tenon::Asset.new, format: 'json', builder: Tenon::FormBuilder do |f|
          .input-block
            %label.btn{ for: 'file-upload' } Browse
            %input#file-upload.upload{ type: 'file', multiple: defined?(multiple) && multiple, style: 'position: absolute; left: -9999px;', name: 'asset[attachment]' }

    %h3 From The Asset Library
    #pick-asset
      = react_component 'Tenon.RI.StandaloneList',
        title: 'Assets',
        recordsPath: assets_path(format: 'json'),
        newPath: new_asset_path,
        childComponentNames: { List: 'AssetList', Record: 'AssetRecord' }

  .modal__footer
    %a.modal__action{ href: '#!', data: { modal_close: true } } Cancel

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
tenon-2.0.7 app/views/tenon/item_assets/new.html.haml
tenon-2.0.6 app/views/tenon/item_assets/new.html.haml
tenon-2.0.5 app/views/tenon/item_assets/new.html.haml
tenon-2.0.4 app/views/tenon/item_assets/new.html.haml
tenon-2.0.3 app/views/tenon/item_assets/new.html.haml
tenon-2.0.2 app/views/tenon/item_assets/new.html.haml
tenon-2.0.1 app/views/tenon/item_assets/new.html.haml
tenon-2.0.0 app/views/tenon/item_assets/new.html.haml