Sha256: 23821e81b38fd01d03dc2e08ab8678e5d16b9d2e0de68fa7020c89bfa292d9cc

Contents?: true

Size: 1.44 KB

Versions: 23

Compression:

Stored size: 1.44 KB

Contents

- include_stylesheet '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
          %p
            %label.filename
              = "#{t("clipped_extension.filename")}: #{@asset.asset_file_name unless @asset.new_record?}"
          %p.asset
            - display_size = Radiant::config['assets.display_size'] || 'normal'
            = image_tag @asset.thumbnail(display_size.to_sym), :class => 'preview'

          = updated_stamp @asset
        
        %p.upload
          %label.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
  
  - main.edit_regenerate do
    - if current_user.admin? or current_user.designer?
      %p= t("clipped_extension.regenerate_thumbnails")
      
      - form_tag refresh_admin_asset_path(@asset), :method => :put do
        %p.asset_buttons
          %input.button{ :type => "submit", :value => t("clipped_extension.regenerate") }

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
radiant-clipped-extension-1.1.2 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.1.1 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.1.0 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.17 app/views/admin/assets/edit.html.haml
radiant-1.0.0 ruby-debug/ruby/1.8/gems/radiant-clipped-extension-1.0.16/app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.16 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.15 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.14 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.13 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.12 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.11 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.10 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.9 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.8 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.7 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.6 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.5 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.4 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.3 app/views/admin/assets/edit.html.haml
radiant-clipped-extension-1.0.2 app/views/admin/assets/edit.html.haml