-fixed up about tool-tip
-ui tweaks to manage users screen
This commit is contained in:
parent
5468db39e8
commit
14ee1f553e
|
@ -12,7 +12,7 @@ class Application_Form_AddUser extends Zend_Form
|
||||||
* */
|
* */
|
||||||
|
|
||||||
$hidden = new Zend_Form_Element_Hidden('user_id');
|
$hidden = new Zend_Form_Element_Hidden('user_id');
|
||||||
$hidden->setAttrib('style', 'display: none;');
|
$hidden->setDecorators(array('ViewHelper'));
|
||||||
$this->addElement($hidden);
|
$this->addElement($hidden);
|
||||||
|
|
||||||
$login = new Zend_Form_Element_Text('login');
|
$login = new Zend_Form_Element_Text('login');
|
||||||
|
|
|
@ -7,18 +7,18 @@
|
||||||
<div id="users_wrapper" class="dataTables_wrapper">
|
<div id="users_wrapper" class="dataTables_wrapper">
|
||||||
|
|
||||||
<div class="button-holder">
|
<div class="button-holder">
|
||||||
<button type="button" id="add_user_button" name=
|
<button type="button" id="add_user_button" name="search_add_group" class="ui-button ui-widget ui-state-default ui-button-text-icon-primary"><span class="ui-button-text">New user</span></button>
|
||||||
"search_add_group" class="ui-button ui-widget ui-state-default ui-button-text-icon-primary">
|
|
||||||
<span class="ui-button-text">Add user</span></button>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table cellspacing="0" cellpadding="0" style="" id="users_datatable" class="datatable">
|
<table cellspacing="0" cellpadding="0" style="" id="users_datatable" class="datatable">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>id</th>
|
<th>id</th>
|
||||||
<th>Name</th>
|
<th>Username</th>
|
||||||
|
<th>Firstname</th>
|
||||||
|
<th>Lastname</th>
|
||||||
<th>Role</th>
|
<th>Role</th>
|
||||||
<th>Delete</th>
|
<th> </th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody></tbody>
|
<tbody></tbody>
|
||||||
|
|
|
@ -147,6 +147,9 @@ $(document).ready(function() {
|
||||||
"aaSorting": [[2,'asc']],
|
"aaSorting": [[2,'asc']],
|
||||||
"sPaginationType": "full_numbers",
|
"sPaginationType": "full_numbers",
|
||||||
"bJQueryUI": true,
|
"bJQueryUI": true,
|
||||||
"bAutoWidth": false
|
"bAutoWidth": false,
|
||||||
|
"oLanguage": {
|
||||||
|
"sSearch": ""
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -32,7 +32,18 @@ function removeUserCallback(row_id, nRow){
|
||||||
|
|
||||||
function rowCallback( nRow, aData, iDisplayIndex ){
|
function rowCallback( nRow, aData, iDisplayIndex ){
|
||||||
$(nRow).click(function(){rowClickCallback(aData[0])});
|
$(nRow).click(function(){rowClickCallback(aData[0])});
|
||||||
$('td:eq(2)', nRow).append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData[0], nRow)});
|
$('td:eq(4)', nRow).append( '<span class="ui-icon ui-icon-closethick"></span>').children('span').click(function(e){e.stopPropagation(); removeUserCallback(aData[0], nRow)});
|
||||||
|
|
||||||
|
if ( aData[4] == "A" )
|
||||||
|
{
|
||||||
|
$('td:eq(3)', nRow).html( 'Admin' );
|
||||||
|
} else if ( aData[4] == "H" )
|
||||||
|
{
|
||||||
|
$('td:eq(3)', nRow).html( 'Host' );
|
||||||
|
} else if ( aData[4] == "G" )
|
||||||
|
{
|
||||||
|
$('td:eq(3)', nRow).html( 'Guest' );
|
||||||
|
}
|
||||||
|
|
||||||
return nRow;
|
return nRow;
|
||||||
}
|
}
|
||||||
|
@ -55,12 +66,17 @@ $(document).ready(function() {
|
||||||
"aoColumns": [
|
"aoColumns": [
|
||||||
/* Id */ { "sName": "id", "bSearchable": false, "bVisible": false },
|
/* Id */ { "sName": "id", "bSearchable": false, "bVisible": false },
|
||||||
/* user name */ { "sName": "login" },
|
/* user name */ { "sName": "login" },
|
||||||
|
/* first name */ { "sName": "first_name" },
|
||||||
|
/* last name */ { "sName": "last_name" },
|
||||||
/* user type */ { "sName": "type", "bSearchable": false },
|
/* user type */ { "sName": "type", "bSearchable": false },
|
||||||
/* del button */ { "sName": "null as delete", "bSearchable": false, "bSortable": false}
|
/* del button */ { "sName": "null as delete", "bSearchable": false, "bSortable": false}
|
||||||
],
|
],
|
||||||
"bJQueryUI": true,
|
"bJQueryUI": true,
|
||||||
"bAutoWidth": false,
|
"bAutoWidth": false,
|
||||||
"bLengthChange": false
|
"bLengthChange": false,
|
||||||
|
"oLanguage": {
|
||||||
|
"sSearch": ""
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
//$('#user_details').hide();
|
//$('#user_details').hide();
|
||||||
|
|
|
@ -251,7 +251,14 @@ function init() {
|
||||||
target: 'center',
|
target: 'center',
|
||||||
tooltip: 'topRight'
|
tooltip: 'topRight'
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
style: {
|
||||||
|
border: {
|
||||||
|
width: 0,
|
||||||
|
radius: 4
|
||||||
|
},
|
||||||
|
name: 'light', // Use the default light style
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue