Sha256: c4f0ccfedc11b7343c6baa3a75ad3b89e950ff8c47541830845ee3eb5d9815e1
Contents?: true
Size: 903 Bytes
Versions: 1
Compression:
Stored size: 903 Bytes
Contents
-content_for :h1 do #type =@content.class.to_s #name New -unless @asset_types.nil? #add_asset_sidebar =render :partial => "add_asset_sidebar" -unless @content.nil? #add_asset_content #main.fassets_core =form_for @content, :url => asset_content_path(@content),:html => {:multipart => true} do |f| =render :partial => "shared/error", :locals => {:target => @content} =fields_for "asset" do |asset| %p %label{:for => 'name'} Name: =asset.text_field :name #name_warning %p %label{:for => 'catalog_id'} Catalog: =select("classification", "catalog_id", Catalog.all.inject([]){|m,c| m << [c.title, c.id]}) =render :partial => @content.class.to_s.underscore.pluralize + "/form", :locals => {:new => true}, :object => f =submit_tag "Create", :class => "asset_create_button"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fassets_core-0.2.0 | app/views/assets/new.html.haml |