2011-07-01 00:15:45 +00:00
|
|
|
= form.custom_input field._alias.to_sym, :label => field.label, :hint => field.hint, :css => 'toggle', :required => required do
|
2011-05-19 16:00:45 +00:00
|
|
|
= form.select field._name.to_sym, field.ordered_category_items.collect { |item| [item.name, item.id] }
|
|
|
|
%button.button.light.edit-categories-link{ :type => 'button', :'data-url' => edit_admin_custom_field_path(parent.class.model_name.underscore, parent.slug, field) }
|
|
|
|
%span!= t('.edit_categories')
|