Sha256: fdaccc2203bb6bd848927582c41d73cf29fc9539892f22eb977881f5de2b2d74
Contents?: true
Size: 1.86 KB
Versions: 14
Compression:
Stored size: 1.86 KB
Contents
%asset-form{ asset: asset_hash(@asset).to_json, :'create-path' => push_type.assets_path, :'update-path' => push_type.asset_path('~id'), :'inline-template' => true } = form_for @asset, url: '{{ saveUrl }}', method: 'post' do |f| = hidden_field_tag :_method, nil, :'v-bind:value' => 'saveMethod' .large-8.columns .container .head .left.btn= link_to ficon(:previous), asset_back_link(@asset) .title= yield :title .body.padded .row.asset-upload %div{ :'v-show' => "asset['new_record?']" } .columns .dropzone{ :'v-asset-upload' => true, :'upload-path' => push_type.upload_assets_path, :'fallback-id' => 'asset_file' } .prompt Drag a file to quickly upload it… (or click) .icon= ficon(:upload_cloud) .columns{ :'v-show' => "!hideFileField || #{ @asset.errors.include?(:file) }" } = f.label :file = f.file_field :file %div{ :'v-show' => "!asset['new_record?']" } .small-4.medium-3.columns %img.preview{ :'v-bind:alt' => 'asset.file_name', :'v-bind:src' => 'asset.preview_thumb_url' } .small-8.medium-9.columns %table %tr %th File name %td {{ asset.file_name }} %tr %th File size %td {{ asset.file_size | kb }} %tr %th Content type %td {{ asset.mime_type }} .row.string .columns = f.label :description = f.text_field :description .large-4.columns .side-panel{ :'side-panel' => true } .padded = render 'meta_table' .submit.text-center = render 'form_submit'
Version data entries
14 entries across 14 versions & 1 rubygems