Index: openacs-4/packages/acs-subsite/www/admin/group-types/new.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/admin/group-types/new.tcl,v diff -u -N -r1.5 -r1.6 --- openacs-4/packages/acs-subsite/www/admin/group-types/new.tcl 15 Apr 2011 11:43:48 -0000 1.5 +++ openacs-4/packages/acs-subsite/www/admin/group-types/new.tcl 7 Aug 2017 23:47:58 -0000 1.6 @@ -22,34 +22,30 @@ template::form create group_type template::element create group_type object_type \ - -datatype "text" \ - -label "[_ acs-subsite.Group_type]" \ - -html { size 30 maxlength 30 } + -datatype "text" \ + -label [_ acs-subsite.Group_type] \ + -html { size 30 maxlength 30 } -set supertype_options [db_list_of_lists "select_group_supertypes" { - select replace(lpad(' ', (level - 1) * 4), ' ', ' ') || t.pretty_name, t.object_type - from acs_object_types t - connect by prior t.object_type = t.supertype - start with t.object_type = 'group'}] +set supertype_options [db_list_of_lists select_group_supertypes {}] foreach opt $supertype_options { lappend supertype_options_i18n [lang::util::localize $opt] } template::element create group_type supertype \ - -datatype "text" \ - -widget select \ - -options $supertype_options_i18n \ - -label "[_ acs-subsite.Supertype]" + -datatype "text" \ + -widget select \ + -options $supertype_options_i18n \ + -label [_ acs-subsite.Supertype] template::element create group_type pretty_name \ - -datatype "text" \ - -label "[_ acs-subsite.Pretty_name]" \ - -html { size 50 maxlength 100 } + -datatype "text" \ + -label [_ acs-subsite.Pretty_name] \ + -html { size 50 maxlength 100 } template::element create group_type pretty_plural \ - -datatype "text" \ - -label "[_ acs-subsite.Pretty_plural]" \ - -html { size 50 maxlength 100 } + -datatype "text" \ + -label [_ acs-subsite.Pretty_plural] \ + -html { size 50 maxlength 100 } set approval_policy_options { { {Open: Users can create groups of this type} open } @@ -65,41 +61,43 @@ set safe_object_type [plsql_utility::generate_oracle_name -max_length 29 $object_type] if { [plsql_utility::object_type_exists_p $safe_object_type] } { - incr exception_count - append exception_text "