2010-06-10 13:30:32 +00:00
|
|
|
#edit-custom-field-category
|
|
|
|
.inner
|
2010-07-21 23:56:42 +00:00
|
|
|
%h2!= t('.title')
|
2010-06-10 13:30:32 +00:00
|
|
|
|
2010-07-21 23:56:42 +00:00
|
|
|
%p!= t('.help')
|
2010-06-10 13:30:32 +00:00
|
|
|
|
2011-01-18 17:13:06 +00:00
|
|
|
= semantic_form_for @field, :as => :custom_field, :url => admin_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
|
|
|
|
2010-06-10 13:30:32 +00:00
|
|
|
.popup-actions
|
|
|
|
%p
|
2011-03-17 16:41:25 +00:00
|
|
|
%button.button.light{ :type => 'submit' }
|
|
|
|
%span= t('admin.shared.form_actions.update')
|