Changeset 12724

Show
Ignore:
Timestamp:
10/09/07 22:30:09 (1 year ago)
Author:
w_i
Message:

Added chooser support

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.user/config/schemadb_group.inc

    r12715 r12724  
    8181                ), 
    8282            ), 
    83             // TODO: Switch to chooser 
    84             'widget' => 'radiocheckselect', 
    85         ), 
    86         /*'groups' => array 
    87         ( 
    88             'title' => 'groups', 
    89             'storage' => null, 
    90             'type' => 'mnrelation', 
    91             'type_config' => array 
    92             ( 
    93                 'mapping_class_name' => 'midcom_db_member', 
    94                 'master_fieldname' => 'uid', 
    95                 'member_fieldname' => 'gid', 
    96                 'master_is_id' => true, 
    97                 'option_callback' => 'midcom_helper_datamanager2_callback_select_grouplister', 
    98                 'option_callback_arg' => array 
    99                 ( 
    100                     'value_field' => 'official', 
    101                     'key_field' => 'id' 
    102                 ), 
    103             ), 
    10483            'widget' => 'chooser', 
    10584            'widget_config' => array 
    10685            ( 
    107                 'clever_class' => 'group', 
    10886                'id_field' => 'id', 
     87                'result_headers' => array 
     88                ( 
     89                    array( 
     90                        'name' => 'name', 
     91                        'title' => 'Name', 
     92                    ), 
     93                    array( 
     94                        'name' => 'email', 
     95                        'title' => 'Email', 
     96                    ), 
     97                ), 
    10998            ), 
    110         ),*/ 
     99        ), 
    111100    ), 
    112101), 
  • trunk/midcom/midcom.admin.user/config/schemadb_person.inc

    r12715 r12724  
    7878                ), 
    7979            ), 
    80             // TODO: Switch to chooser 
    81             'widget' => 'radiocheckselect', 
    82         ), 
    83         /*'groups' => array 
    84         ( 
    85             'title' => 'groups', 
    86             'storage' => null, 
    87             'type' => 'mnrelation', 
    88             'type_config' => array 
    89             ( 
    90                 'mapping_class_name' => 'midcom_db_member', 
    91                 'master_fieldname' => 'uid', 
    92                 'member_fieldname' => 'gid', 
    93                 'master_is_id' => true, 
    94                 'option_callback' => 'midcom_helper_datamanager2_callback_select_grouplister', 
    95                 'option_callback_arg' => array 
    96                 ( 
    97                     'value_field' => 'official', 
    98                     'key_field' => 'id' 
    99                 ), 
    100             ), 
    10180            'widget' => 'chooser', 
    10281            'widget_config' => array 
    10382            ( 
    104                 'clever_class' => 'group', 
    10583                'id_field' => 'id', 
     84                'result_headers' => array 
     85                ( 
     86                    array( 
     87                        'name' => 'name', 
     88                        'title' => 'Name', 
     89                    ), 
     90                    array( 
     91                        'name' => 'official', 
     92                        'title' => 'Official', 
     93                    ), 
     94                ), 
    10695            ), 
    107         ),*/ 
     96        ), 
    10897    ), 
    10998),