lib/enjoy/faq/admin/question.rb in enjoy_cms_faq-0.3.1 vs lib/enjoy/faq/admin/question.rb in enjoy_cms_faq-0.3.2
- old
+ new
@@ -15,31 +15,36 @@
edit do
field :question_categories
field :enabled, :toggle
- field :slugs, :enum do
- enum_method do
- :slugs
+ group :URL do
+ active false
+ field :slugs, :enum do
+ enum_method do
+ :slugs
+ end
+ visible do
+ bindings[:view].current_user.admin?
+ end
+ multiple do
+ true
+ end
end
- visible do
- bindings[:view].current_user.admin?
- end
- multiple do
- true
- end
+ field :text_slug
end
- field :text_slug
group 'Данные вопроса' do
+ active false
field :question_text, :text
field :question_text_after_editing, :enjoy_html
field :author_name, :string
field :author_name_text_after_editing, :string
field :author_email, :string
end
group 'Данные ответа' do
+ active false
field :answered, :toggle
field :answer_text, :enjoy_html
field :answered_time
field :answer_author_name, :string
end