From 415cf5a1676ce581a5e6edb51fe98b82b333ffd9 Mon Sep 17 00:00:00 2001 From: Thomas CHEMINEAU Date: Thu, 18 Mar 2010 15:22:10 +0000 Subject: [PATCH] MANAGER: - Generalize the select element - Options in select area are displayed with their descriptions - SecuredCookie parameter is displayed within the select element --- modules/lemonldap-ng-manager/MANIFEST | 2 + .../example/skins/default/manager.js | 63 ++++++++++--------- .../example/skins/default/manager.tpl | 15 +++-- .../lib/Lemonldap/NG/Manager/Downloader.pm | 1 + .../lib/Lemonldap/NG/Manager/_Struct.pm | 2 +- 5 files changed, 48 insertions(+), 35 deletions(-) diff --git a/modules/lemonldap-ng-manager/MANIFEST b/modules/lemonldap-ng-manager/MANIFEST index e5c4b51d9..a83f854c6 100644 --- a/modules/lemonldap-ng-manager/MANIFEST +++ b/modules/lemonldap-ng-manager/MANIFEST @@ -49,6 +49,8 @@ example/skins/default/folder_delete.png example/skins/default/folder_edit.png example/skins/default/help.png example/skins/default/hframe.png +example/skins/default/images/1downarrow_16x16.png +example/skins/default/images/1rightarrow_16x16.png example/skins/default/images/ui-bg_diagonals-thick_18_b81900_40x40.png example/skins/default/images/ui-bg_diagonals-thick_20_666666_40x40.png example/skins/default/images/ui-bg_flat_10_000000_40x100.png diff --git a/modules/lemonldap-ng-manager/example/skins/default/manager.js b/modules/lemonldap-ng-manager/example/skins/default/manager.js index 7efd261a0..0497473a6 100644 --- a/modules/lemonldap-ng-manager/example/skins/default/manager.js +++ b/modules/lemonldap-ng-manager/example/skins/default/manager.js @@ -332,19 +332,19 @@ function authParams(id) { } }); formateSelect('authText',[ - 'Apache', - 'CAS', - 'DBI', - 'LA', - 'LDAP', - 'Multi', - 'Null', - 'OpenID', - 'Proxy', - 'Remote', - 'SAML', - 'SSL', - 'Twitter' + 'Apache:Apache', + 'CAS:Central Authentication Service (CAS)', + 'DBI:Database (DBI)', + 'LA:Liberty Alliance', + 'LDAP:LDAP', + 'Multi:Multi', + 'Null:None', + 'OpenID:OpenID', + 'Proxy:Proxy', + 'Remote:Remote', + 'SAML:SAML v2', + 'SSL:SSL', + 'Twitter:Twitter' ],t[0]); display('authParams',lmtext(id)); } @@ -352,14 +352,14 @@ function userdbParams(id) { currentId=id; $('#authOptions').hide(); formateSelect('authText',[ - 'DBI', - 'Env', - 'LDAP', - 'Multi', - 'Null', - 'Proxy', - 'Remote', - 'SAML' + 'DBI:Database (DBI)', + 'Env:Environment', + 'LDAP:LDAP', + 'Multi:Multi', + 'Null:None', + 'Proxy:Proxy', + 'Remote:Remote', + 'SAML:SAML v2' ],lmdata(id)); display('authParams',lmtext(id)); } @@ -367,9 +367,9 @@ function passworddbParams(id) { currentId=id; $('#authOptions').hide(); formateSelect('authText',[ - 'DBI', - 'LDAP', - 'Null' + 'DBI:Database (DBI)', + 'LDAP:LDAP', + 'Null:None' ],lmdata(id)); display('authParams',lmtext(id)); } @@ -469,8 +469,12 @@ function samlService(id) { } function securedCookieValues(id){ currentId=id; - $('#securedCookie'+lmdata(id)).attr('checked',1); - display('securedCookie',lmtext(id)); + formateSelect('select',[ + '0:'+text4securedCookie0, + '1:'+text4securedCookie1, + '2:'+text4securedCookie2 + ],lmdata(id)); + display('select',lmtext(id)); } function vhost(id){ currentId=id; @@ -734,9 +738,10 @@ function downloadFile(id){ function formateSelect(id,values,selectedValue) { var options=''; for(i=0;i'; + var t=values[i].split(':'); + options+='