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

17 lines
640 B
Plaintext

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