Sha256: 56a45d61f40877bd0e8e1c83b3b378575868a201772cc7956b9cb79c4eafe4d3

Contents?: true

Size: 957 Bytes

Versions: 2

Compression:

Stored size: 957 Bytes

Contents

-content_for :h1 do
  #type
    =@content.class.to_s
  #name
    New

.fassets_core.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

2 entries across 2 versions & 1 rubygems

Version Path
fassets_core-0.3.1 app/views/assets/new.html.haml
fassets_core-0.3.0 app/views/assets/new.html.haml