Added Super Admin role and WHMCS login

This commit is contained in:
Albert Santoni 2014-06-17 17:40:55 -04:00
parent e5a74e7285
commit 7f6fc7770a
8 changed files with 197 additions and 9 deletions

View file

@ -23,6 +23,12 @@ function populateForm(entries){
$('#password').val("");
$('#passwordVerify').val("");
}
if (entries.login === 'admin')
{
$('#type').attr('disabled', '1');
} else {
$('#type').removeAttr('disabled');
}
}
function rowClickCallback(row_id){
@ -57,6 +63,9 @@ function rowCallback( nRow, aData, iDisplayIndex ){
} else if ( aData['type'] == "P" )
{
$('td:eq(3)', nRow).html( $.i18n._('Program Manager') );
} else if ( aData['type'] == "S" )
{
$('td:eq(3)', nRow).html( $.i18n._('Super Admin') );
}
return nRow;
@ -183,7 +192,7 @@ $(document).ready(function() {
var newUser = {login:"", first_name:"", last_name:"", type:"G", id:""};
$('#add_user_button').live('click', function(){populateForm(newUser)});
$('#add_user_button').live('click', function(){populateForm(newUser);});
$('#save_user').live('click', function(){
var data = $('#user_form').serialize();