fix issue #15
This commit is contained in:
parent
6f2033a356
commit
d56af954f2
@ -1,6 +1,6 @@
|
||||
- content_for :head do
|
||||
= include_javascripts :edit_custom_fields, :assets
|
||||
= include_stylesheets :custom_fields
|
||||
= include_stylesheets :fancybox
|
||||
|
||||
= f.inputs :name => :information do
|
||||
= f.input :name
|
||||
|
@ -11,7 +11,7 @@
|
||||
- elsif field.category?
|
||||
= form.custom_input field._alias.to_sym, :label => field.label, :hint => field.hint, :css => 'toggle' do
|
||||
= 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.model_name.underscore, parent.slug, field) }
|
||||
%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')
|
||||
- elsif field.boolean?
|
||||
= form.custom_input field._alias.to_sym, :label => field.label, :hint => field.hint, :css => 'toggle' do
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
%p!= t('.help')
|
||||
|
||||
= semantic_form_for @field, :as => :custom_field, :url => admin_custom_field_url(@parent.model_name.underscore, @parent.slug, @field) do |f|
|
||||
= semantic_form_for @field, :as => :custom_field, :url => admin_custom_field_url(@parent.class.model_name.underscore, @parent.slug, @field) do |f|
|
||||
= f.foldable_inputs :name => t('.collection_label'), :class => 'editable-list off' do
|
||||
- @field.ordered_category_items.each do |item|
|
||||
= f.fields_for :category_items, item, :child_index => item._index do |g|
|
||||
|
@ -89,9 +89,6 @@ stylesheets:
|
||||
fancybox:
|
||||
- public/stylesheets/admin/plugins/fancybox.css
|
||||
- public/stylesheets/admin/fancybox_changes.css
|
||||
custom_fields:
|
||||
- public/stylesheets/admin/plugins/fancybox.css
|
||||
- public/stylesheets/admin/box.css
|
||||
installation:
|
||||
- public/stylesheets/admin/installation.css
|
||||
editable_elements:
|
||||
|
Loading…
Reference in New Issue
Block a user