Sha256: 3f919ff6931240a818a93e2115b9a4910b156f30c580de018a0a7fe29531b5ad

Contents?: true

Size: 1.39 KB

Versions: 47

Compression:

Stored size: 1.39 KB

Contents

= stylesheet_link_tag 'admin/assets'
= javascript_include_tag 'admin/custom_file_upload'
= render_region :top

- render_region :main do |main|
  - main.edit_header do
    %h1= t("clipped_extension.asset_edit_title")

  - main.edit_form do
    - form_for :asset, :url => admin_asset_path(@asset), :html => { :method => "put", :multipart => true } do |f|
      .form_area
        = render :partial => "form", :locals => { :f => f }

        %div.content
          %fieldset
            %label.filename
              = "#{t("clipped_extension.filename")}: #{@asset.asset_file_name unless @asset.new_record?}"
            %br
            %label.url
              = "#{t("clipped_extension.asset_url")}: #{image_path @asset.asset.url unless @asset.new_record?}"
            %br
            %label.id
              = "#{t("clipped_extension.asset_id")}: #{@asset.id unless @asset.new_record?}"
          %p.asset
            = image_tag @asset.thumbnail("normal"), :class => 'preview'

          = updated_stamp @asset

        %fieldset.upload
          %label.custom-file-upload.upload
            = t("clipped_extension.replace_file")
            = f.file_field :asset, :style => "width: 100%"
          %span#file-chosen No file chosen

        .buttons
          = save_model_button(@asset)
          = save_model_and_continue_editing_button(@asset)
          = t("or")
          = link_to t("cancel"), admin_assets_path

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
trusty-cms-6.3.1 app/views/admin/assets/edit.html.haml
trusty-cms-7.0.2 app/views/admin/assets/edit.html.haml
trusty-cms-7.0.1 app/views/admin/assets/edit.html.haml
trusty-cms-7.0.0 app/views/admin/assets/edit.html.haml
trusty-cms-6.3 app/views/admin/assets/edit.html.haml
trusty-cms-6.2.1 app/views/admin/assets/edit.html.haml
trusty-cms-6.2.2.1 app/views/admin/assets/edit.html.haml
trusty-cms-6.2.0 app/views/admin/assets/edit.html.haml
trusty-cms-6.1.2 app/views/admin/assets/edit.html.haml
trusty-cms-6.1.1 app/views/admin/assets/edit.html.haml
trusty-cms-6.0.5 app/views/admin/assets/edit.html.haml
trusty-cms-6.0.4 app/views/admin/assets/edit.html.haml
trusty-cms-6.0.3 app/views/admin/assets/edit.html.haml
trusty-cms-6.0.2 app/views/admin/assets/edit.html.haml
trusty-cms-6.0.1 app/views/admin/assets/edit.html.haml
trusty-cms-5.6.1 app/views/admin/assets/edit.html.haml
trusty-cms-6.0.0 app/views/admin/assets/edit.html.haml
trusty-cms-5.6.0 app/views/admin/assets/edit.html.haml
trusty-cms-5.5.9 app/views/admin/assets/edit.html.haml
trusty-cms-5.5.8 app/views/admin/assets/edit.html.haml