Sha256: 393e2d2d352db4b53cc8d83b0e1feed95ae056d4dd80bc2ae816b3a0ea2de282

Contents?: true

Size: 1.82 KB

Versions: 18

Compression:

Stored size: 1.82 KB

Contents

%div{ ng: { controller: 'AssetUploadCtrl', init: "asset=#{ asset_hash(@asset).to_json }; createUrl='#{ push_type.assets_path }'; updateUrl='#{ push_type.asset_path('~id') }'" } }
  = form_for @asset, url: '{{ saveUrl() }}', method: 'post' do |f|
    = hidden_field_tag :_method, '{{ method() }}'
    .large-8.columns
      .container
        .head
          .left.btn= link_to ficon(:previous), asset_back_link(@asset)
          .title= yield :title
        .body.padded
          .row.asset-upload
            %div{ ng: { show: "asset['new_record?']" } }
              .columns
                .dropzone{ asset: { upload: push_type.upload_assets_path, fallback: 'asset_file' } }
                  .prompt Drag a file to quickly upload it… (or click)
                  .icon= ficon(:upload_cloud)
              .columns{ ng: { hide: "hideFileField && #{ !@asset.errors.include?(:file) }" } }
                = f.label :file
                = f.file_field :file
            %div{ ng: { show: "!asset['new_record?']" } }
              .small-4.medium-3.columns
                %img.preview{ alt: '{{ asset.file_name }}', ng: { 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

18 entries across 18 versions & 1 rubygems

Version Path
push_type_admin-0.6.0 app/views/push_type/assets/_form.html.haml
push_type_admin-0.6.0.beta.4 app/views/push_type/assets/_form.html.haml
push_type_admin-0.6.0.beta.3 app/views/push_type/assets/_form.html.haml
push_type_admin-0.6.0.beta.2 app/views/push_type/assets/_form.html.haml
push_type_admin-0.6.0.beta.1 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.3 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.2 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.1 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.0 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.0.alpha.5 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.0.alpha.4 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.0.alpha.3 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.0.alpha.2 app/views/push_type/assets/_form.html.haml
push_type_admin-0.5.0.alpha.1 app/views/push_type/assets/_form.html.haml
push_type_admin-0.4.0 app/views/push_type/assets/_form.html.haml
push_type_admin-0.4.0.beta.3 app/views/push_type/assets/_form.html.haml
push_type_admin-0.3.3 app/views/push_type/assets/_form.html.haml
push_type_admin-0.3.1 app/views/push_type/assets/_form.html.haml