Complete new interface
This commit is contained in:
1 parent
16cfd27fe9
commit
e1e003af6e
17 files changed
+178
-57
No files matched your search
@@ -27,7 +27,7 @@ module Admin::PagePartsHelper
|
||||
|
||||
|
||||
def category_checked_value(part,radio_value)
|
||||
part and (part[:tag] == radio_value) ? true : false
|
||||
part and (part[:category] == radio_value) ? true : false
|
||||
end
|
||||
|
||||
def style_checked_value(part,radio_value)
|
||||
@@ -36,17 +36,21 @@ module Admin::PagePartsHelper
|
||||
|
||||
def nil_radio_button(part,tag_or_cate)
|
||||
content_tag :label,:class=>"radio inline" do
|
||||
op = radio_button("page_part", tag_or_cate, nil, :checked => eval("#{tag_or_cate}_checked_value(part,nil)"))
|
||||
op = radio_button("page_part", tag_or_cate, '' , :checked => eval("#{tag_or_cate}_checked_value(part,'')"))
|
||||
op << I18n.t("default_widget.no_value")
|
||||
end
|
||||
end
|
||||
|
||||
def show_default_widget_setting_panel
|
||||
binding.pry
|
||||
false
|
||||
if @module_app.has_default_widget? && (!@user_choose.nil? && @user_choose== 'default_widget') #&& @part.widget_path == 'default_widget'
|
||||
true
|
||||
else
|
||||
false
|
||||
end
|
||||
end
|
||||
|
||||
def show_custom_widget_setting_panel
|
||||
true
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user