engine/app/views/locomotive/snippets/_form.html.haml
Didier Lafforgue 662e359acb fix issue #393
2012-05-24 19:19:46 +02:00

14 lines
445 B
Plaintext

- content_for :head do
= render '/locomotive/theme_assets/picker'
- content_for :backbone_view_data do
:plain
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'