Sha256: 6ade0e81a1c1fff1780a98a4427f30d02d66fea6dca22759a2606719f6f81917

Contents?: true

Size: 1.3 KB

Versions: 14

Compression:

Stored size: 1.3 KB

Contents

= stylesheet_link_tag 'admin/assets'
= 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.thumbnail unless @asset.new_record?}"
          %p.asset
            - display_size = TrustyCms::config['assets.display_size'] || 'normal'
            = image_tag @asset.thumbnail(display_size.to_sym), :class => 'preview'

          = updated_stamp @asset
        
        %fieldset.upload
          %label.custom-file-upload.upload
            = t("clipped_extension.replace_file")
            = f.file_field :asset, :class => "", :style => "width: 100%"
        
        .buttons
          = save_model_button(@asset)
          = save_model_and_continue_editing_button(@asset)
          = t("or")
          = link_to t("cancel"), admin_assets_path

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
trusty-cms-4.3.5 app/views/admin/assets/edit.html.haml
trusty-cms-4.3.4 app/views/admin/assets/edit.html.haml
trusty-cms-4.3.3 app/views/admin/assets/edit.html.haml
trusty-cms-4.3.2 app/views/admin/assets/edit.html.haml
trusty-cms-4.3.1 app/views/admin/assets/edit.html.haml
trusty-cms-4.3 app/views/admin/assets/edit.html.haml
trusty-cms-4.2.3 app/views/admin/assets/edit.html.haml
trusty-cms-4.2.2 app/views/admin/assets/edit.html.haml
trusty-cms-4.2.1 app/views/admin/assets/edit.html.haml
trusty-cms-4.2 app/views/admin/assets/edit.html.haml
trusty-cms-4.1.9 app/views/admin/assets/edit.html.haml
trusty-cms-4.1.8 app/views/admin/assets/edit.html.haml
trusty-cms-4.1.7 app/views/admin/assets/edit.html.haml
trusty-cms-4.1.6 app/views/admin/assets/edit.html.haml