Sha256: 2033e7066b1c803152db81e81d0d65e24027689206a8f3d1c8ef81240483b36f
Contents?: true
Size: 1.23 KB
Versions: 3
Compression:
Stored size: 1.23 KB
Contents
-unless new #edit_header #content #messages #type =@content.media_type.capitalize #action %span.action =button_to "Delete", asset_content_path(@content), :method => :delete, :onclick => "return confirm('Are you sure?')", :class => "delete_asset_button" =render :partial => "assets/put_on_tray" =render :partial => "#{@content.class.to_s.underscore.pluralize}/actions" rescue nil #asset_preview =render content_partial(@content, :preview) #asset_form =form_for @content, :url => asset_content_path(@content), :html => {:class => "fassets_core asset_form", :multipart => true} do |f| =render :partial => "shared/error", :locals => {:target => @content} =fields_for "asset", @content.asset do |asset| %p %label{:for => 'name'} Name: =asset.text_field :name #name_warning =render :partial => "#{@content.class.to_s.underscore.pluralize}/form", :locals => {:new => new}, :object => f =submit_tag @content.new_record? ? "Create" : "Save", :class => "asset_submit_button", :data => { :asset_id => @content.asset.id, :asset_type => @content.asset.content_type, :content_id => @content.id }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
fassets_core-0.3.1 | app/views/assets/_form.html.haml |
fassets_core-0.3.0 | app/views/assets/_form.html.haml |
fassets_core-0.2.0 | app/views/assets/_form.html.haml |