Sha256: 0726fab71f7922383859ad7fe8d677e2bfb0a87c18bab1b0a7412c16da64b134
Contents?: true
Size: 1.29 KB
Versions: 1
Compression:
Stored size: 1.29 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, :confirm => "Are you sure?", :class => "delete_asset_button", :remote => true =render :partial => "assets/put_on_tray" =render :partial => "#{@content.class.to_s.underscore.pluralize}/actions" rescue nil #asset_preview =render :partial => content_partial(@content, :preview), :locals => {:content => @content} #asset_form =form_for @content, :url => asset_content_path(@content), :html => {:class => "fassets_core asset_form"}, :remote => 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 %span#asset_name.errors =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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fassets_core-0.4.0 | app/views/assets/_form.html.haml |