engine/app/views/locomotive/snippets/_form.html.haml
2011-12-05 02:31:34 -08:00

14 lines
402 B
Plaintext

- content_for :head do
= render '/locomotive/theme_assets/picker'
- content_for :backbone_view_data do
:plain
{ snippet: #{@snippet.persisted? ? @snippet.to_json : 'null'} }
= f.inputs :name => :information do
= f.input :name, :wrapper_html => { :class => 'highlighted' }
= f.input :slug, :required => false
= f.inputs :name => :code do
= f.input :template, :as => :'Locomotive::Code'