Manager:
* Change test for SAML attributes value * Remove unused Apply button * Use js to always display New Vhost or New Metadata on Vhost or IDP node
This commit is contained in:
parent
384ef05b2e
commit
79376f4b44
|
@ -6,12 +6,6 @@ use HTML::Template;
|
|||
|
||||
my $manager = new Lemonldap::NG::Manager(
|
||||
{
|
||||
# MANAGER CUSTOMIZATION
|
||||
#managerSkin => 'default',
|
||||
#managerCss => 'manager.css',
|
||||
#managerTreeAutoClose => 'false',
|
||||
#managerTreeJqueryCss => 'false',
|
||||
|
||||
# ACCESS TO CONFIGURATION
|
||||
|
||||
# By default, Lemonldap::NG uses the default storage.conf file to know
|
||||
|
|
|
@ -269,6 +269,16 @@ function hashRoot(id){
|
|||
display('default','');
|
||||
$('#newkbr').show();
|
||||
}
|
||||
function vhostRoot(id){
|
||||
currentId=id;
|
||||
display('default','');
|
||||
$('#bnewvh').show();
|
||||
}
|
||||
function samlIdpRoot(id){
|
||||
currentId=id;
|
||||
display('default','');
|
||||
$('#newsamlmetadatab').show();
|
||||
}
|
||||
function authParams(id) {
|
||||
currentId=id;
|
||||
$('#authText').attr('value',lmdata(id));
|
||||
|
|
|
@ -70,10 +70,6 @@
|
|||
<lang en="Save" fr="Sauver" />
|
||||
</button>
|
||||
|
||||
<button id="bapply" onclick="$.post(scriptname,{apply:1},function(data){return 1},'html');" class="ui-state-default ui-corner-all">
|
||||
<lang en="Apply" fr="Appliquer" />
|
||||
</button>
|
||||
|
||||
<button id="bnewvh" style="display:none;" onclick="newVh();return false;" class="ui-state-default ui-corner-all">
|
||||
<lang en="New virtual host" fr="Nouvel hôte virtuel" />
|
||||
</button>
|
||||
|
|
|
@ -283,7 +283,7 @@ sub struct {
|
|||
_nodes => ['nhash:/locationRules:virtualHosts:vhost'],
|
||||
_upload => ['/exportedHeaders'],
|
||||
_help => 'default',
|
||||
_call => '$(\'#bnewvh\').show();',
|
||||
_js => 'vhostRoot',
|
||||
},
|
||||
|
||||
########
|
||||
|
@ -296,7 +296,7 @@ sub struct {
|
|||
],
|
||||
_upload => [ '/samlIDPMetaDataXML', '/samlIDPMetaDataOptions' ],
|
||||
_help => 'default',
|
||||
_call => '$(\'#newsamlmetadatab\').show();',
|
||||
_js => 'samlIdpRoot',
|
||||
},
|
||||
|
||||
samlServiceMetaData => {
|
||||
|
@ -713,7 +713,7 @@ sub testStruct {
|
|||
'*' => {
|
||||
keyTest => qr/^\w([\w\-]*\w)?$/,
|
||||
keyMsgFail => 'Bad attribute name',
|
||||
test => $perlExpr,
|
||||
test => sub { return 1; },
|
||||
},
|
||||
},
|
||||
samlIDPMetaDataXML => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user