engine/app/views/locomotive/snippets/_form.html.haml

14 lines
445 B
Plaintext
Raw Permalink Normal View History

- content_for :head do
2011-12-05 10:31:34 +00:00
= render '/locomotive/theme_assets/picker'
- content_for :backbone_view_data do
:plain
2012-05-24 17:19:46 +00:00
snippet: #{j @snippet.persisted? ? @snippet.to_presenter.as_json_for_html_view.to_json.html_safe : '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'