engine/app/views/locomotive/custom_fields/edit_category.html.haml

17 lines
640 B
Plaintext
Raw Normal View History

#edit-custom-field-category
.inner
2010-07-21 23:56:42 +00:00
%h2!= t('.title')
2010-07-21 23:56:42 +00:00
%p!= t('.help')
= semantic_form_for @field, :as => :custom_field, :url => custom_field_url(@parent.class.model_name.underscore, @parent.slug, @field) do |f|
2010-07-21 23:56:42 +00:00
2011-03-17 16:41:25 +00:00
= f.foldable_inputs :name => t('.collection_label'), :class => 'editable-list off'
2010-07-21 23:56:42 +00:00
2011-03-17 16:41:25 +00:00
%script{ :type => 'text/javascript', :name => 'data' }
!= "var categories = #{collection_to_js(@field.ordered_category_items, :template => CustomFields::Types::Category::Item.new)};"
2010-07-21 23:56:42 +00:00
.popup-actions
%p
2011-03-17 16:41:25 +00:00
%button.button.light{ :type => 'submit' }
%span= t('locomotive.shared.form_actions.update')