Changeset 13529

Show
Ignore:
Timestamp:
11/21/07 11:14:18 (1 year ago)
Author:
adrenalin
Message:

Working on the user interface: added 'select all' and 'invert
selection' to aid batch processing in user listing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/midcom/midcom.admin.user/handler/list.php

    r13514 r13529  
    4444        ); 
    4545         
    46         $_MIDCOM->add_jsfile(MIDCOM_STATIC_URL . '/jQuery/jquery.tablesorter.pack.js'); 
     46        $_MIDCOM->add_jsfile(MIDCOM_STATIC_URL . '/jQuery/jquery.tablesorter.js'); 
     47        $_MIDCOM->add_jsfile(MIDCOM_STATIC_URL . '/midcom.admin.user/jquery.tablesorter.widget.column_highlight.js'); 
     48        $_MIDCOM->add_jsfile(MIDCOM_STATIC_URL . '/midcom.admin.user/jquery.midcom_admin_user.js'); 
    4749 
    4850        midgard_admin_asgard_plugin::prepare_plugin($this->_l10n->get('midcom.admin.user'),$this->_request_data); 
  • trunk/midcom/midcom.admin.user/handler/user/edit.php

    r13510 r13529  
    200200    { 
    201201        midgard_admin_asgard_plugin::asgard_header(); 
    202  
     202         
     203        $data['handler_id'] = $handler_id; 
    203204        $data['l10n'] =& $this->_l10n; 
    204205        $data['person'] =& $this->_person; 
  • trunk/midcom/midcom.admin.user/locale/default.en.txt

    r13510 r13529  
    188188---STRINGEND 
    189189 
     190---STRING passwords will be sent to the following users 
     191Passwords will be sent to the following users 
     192---STRINGEND 
     193 
    190194---STRING person %s saved 
    191195User %s saved 
     
    220224---STRINGEND 
    221225 
     226---STRING select all 
     227Select all 
     228---STRINGEND 
     229 
    222230---STRING sender 
    223231Sender 
     
    268276---STRINGEND 
    269277 
    270 ---STRING passwords will be sent to the following users 
    271 Passwords will be sent to the following users 
    272 ---STRINGEND 
    273  
     278---STRING invert selection 
     279Invert selection 
     280---STRINGEND 
     281 
  • trunk/midcom/midcom.admin.user/locale/default.fi.txt

    r13510 r13529  
    188188---STRINGEND 
    189189 
     190---STRING passwords will be sent to the following users 
     191Salasanat lÀhetetÀÀn seuraaville kÀyttÀjille 
     192---STRINGEND 
     193 
    190194---STRING person %s saved 
    191195KÀyttÀjÀ %s tallennettu 
     
    220224---STRINGEND 
    221225 
     226---STRING select all 
     227Valitse kaikki 
     228---STRINGEND 
     229 
    222230---STRING sender 
    223231LÀhettÀjÀ 
     
    268276---STRINGEND 
    269277 
    270 ---STRING passwords will be sent to the following users 
    271 Salasanat lÀhetetÀÀn seuraaville kÀyttÀjille 
    272 ---STRINGEND 
    273  
     278---STRING invert selection 
     279KÀÀnnÀ valinnat pÀinvastaisiksi 
     280---STRINGEND 
     281 
  • trunk/midcom/midcom.admin.user/static/usermgmt.css

    r13514 r13529  
    2424 
    2525table.midcom_admin_user_search_results thead th, 
    26 table.midcom_admin_user_search_results tbody t
     26table.midcom_admin_user_search_results t
    2727{ 
    2828    padding-left: 4px; 
     
    6565  float: right; 
    6666  width: 25em; 
     67  -moz-border-radius: 6px; 
     68  padding: 1em; 
     69  background-color: #eeeeef; 
     70  margin-bottom: 1em; 
    6771} 
    6872 
    6973#midcom_admin_user_passwords pre 
    7074{ 
    71   background-color: #eeeeef; 
     75  background-color: #ffffff; 
    7276  padding: 6px; 
    7377} 
  • trunk/midcom/midcom.admin.user/style/midcom-admin-user-person-edit.php

    r13506 r13529  
    33?> 
    44<h1><?php echo $data['view_title']; ?></h1> 
     5<?php 
     6if ($data['handler_id'] === '____mfa-asgard_midcom.admin.user-user_edit_password') 
     7{ 
     8?> 
    59<div id="midcom_admin_user_passwords"> 
    610    <a href="&(prefix);__mfa/asgard_midcom.admin.user/password/" target="_blank"><?php echo $data['l10n']->get('generate passwords'); ?></a> 
    711</div> 
    8 <?php $data['controller']->display_form(); ?> 
    912<script type="text/javascript"> 
    1013    // <![CDATA[ 
     
    1821    // ]]> 
    1922</script> 
     23 
     24<?php 
     25} 
     26 
     27$data['controller']->display_form(); 
     28?> 
  • trunk/midcom/midcom.admin.user/style/midcom-admin-user-personlist-footer.php

    r13514 r13529  
    1515        </tbody> 
    1616        <tfoot> 
     17            <tr> 
     18                <td colspan="<?php echo count($data['list_fields']) + 1; ?>"> 
     19                    <label for="select_all"> 
     20                        <input type="checkbox" name="select_all" id="select_all" value="" onclick="$j(this).check_all('#midcom_admin_user_batch_process table tbody');" /> <?php echo $_MIDCOM->i18n->get_string('select all', 'midcom.admin.user');; ?> 
     21                    </label> 
     22                    <label for="invert_selection"> 
     23                        <input type="checkbox" name="invert_selection" id="invert_selection" value="" onclick="$j(this).invert_selection('#midcom_admin_user_batch_process table tbody');" /> <?php echo $_MIDCOM->i18n->get_string('invert selection', 'midcom.admin.user');; ?> 
     24                    </label> 
     25                </td> 
     26            </tr> 
    1727            <tr> 
    1828                <td>&nbsp;</td> 
     
    8292                } 
    8393            }); 
    84             $j('#midcom_admin_user_batch_process table').tablesorter({sortList: [[2,0]]}); 
     94            $j('#midcom_admin_user_batch_process table').tablesorter( 
     95            { 
     96//                widgets: ['column_highlight'], 
     97                sortList: [[2,0]] 
     98            }); 
    8599        // ]]> 
    86100    </script>