add new member with role interface. add more not usable.

role management new attribute is ok. delete is ok.
This commit is contained in:
Matthew K. Fu JuYuan authored and chris committed 2012-11-04 20:42:58 +08:00
1 parent fe0e49c3e9
commit beb843f75b
25 files changed
+1159 -512

No files matched your search

@@ -0,0 +1,16 @@
module Admin::AttributeValuesViewHelper
OPT = [
["YYYY / MM / DD hh : mm","format1"],
["YYYY / MM / DD","format2"],
["YYYY / MM","format3"],
["YYYY","format4"]
]
def show_type_panel(attribute_field,type)
markup = attribute_field.markup
LIST[:markups][markup]["panel"] == type ? type : [type,'hide'].join(" ")
end
def name_to_id(str)
str.gsub(/\]/,'').gsub(/\[/,"_")
end
end