Append contextual help pages

This commit is contained in:
Christophe Maudoux 2018-10-12 22:31:12 +02:00
parent 748d25cafc
commit c9c9ee2733
4 changed files with 42 additions and 35 deletions

View File

@ -286,6 +286,7 @@ sub attributes {
customFunctions => { customFunctions => {
type => 'text', type => 'text',
test => qr/^(?:\w+(?:::\w+)*(?:\s+\w+(?:::\w+)*)*)?$/, test => qr/^(?:\w+(?:::\w+)*(?:\s+\w+(?:::\w+)*)*)?$/,
help => 'customfunctions.html',
msgFail => "__badCustomFuncName__", msgFail => "__badCustomFuncName__",
documentation => 'List of custom functions', documentation => 'List of custom functions',
flags => 'hmp', flags => 'hmp',
@ -329,6 +330,7 @@ sub attributes {
type => 'keyTextContainer', type => 'keyTextContainer',
keyTest => qr/^\w+$/, keyTest => qr/^\w+$/,
test => qr/^[a-zA-Z][a-zA-Z0-9]*(?:::[a-zA-Z][a-zA-Z0-9]*)*$/, test => qr/^[a-zA-Z][a-zA-Z0-9]*(?:::[a-zA-Z][a-zA-Z0-9]*)*$/,
help => 'handlerarch.html',
msgFail => '__badPerlPackageName__', msgFail => '__badPerlPackageName__',
documentation => 'Custom Nginx handler (deprecated)', documentation => 'Custom Nginx handler (deprecated)',
}, },

View File

@ -61,6 +61,7 @@ sub tree {
'portalSkinRules', 'portalSkinRules',
{ {
title => 'portalButtons', title => 'portalButtons',
help => 'portalcustom.html#buttons',
form => 'simpleInputContainer', form => 'simpleInputContainer',
nodes => [ nodes => [
'portalCheckLogins', 'portalCheckLogins',
@ -70,6 +71,7 @@ sub tree {
}, },
{ {
title => 'passwordManagement', title => 'passwordManagement',
help => 'portalcustom.html#password_management',
form => 'simpleInputContainer', form => 'simpleInputContainer',
nodes => [ nodes => [
'portalRequireOldPassword', 'portalRequireOldPassword',
@ -79,6 +81,7 @@ sub tree {
}, },
{ {
title => 'portalOther', title => 'portalOther',
help => 'portalcustom.html#other_parameters',
form => 'simpleInputContainer', form => 'simpleInputContainer',
nodes => [ nodes => [
'portalUserAttr', 'portalUserAttr',
@ -536,6 +539,7 @@ sub tree {
'reloadUrls', 'reloadUrls',
{ {
title => 'plugins', title => 'plugins',
help => 'start.html#plugins',
nodes => [ nodes => [
'stayConnected', 'stayConnected',
'portalStatus', 'portalStatus',
@ -640,6 +644,7 @@ sub tree {
}, },
{ {
title => 'secondFactors', title => 'secondFactors',
help => 'secondfactor.html',
nodes => [ nodes => [
{ {
title => 'utotp2f', title => 'utotp2f',

File diff suppressed because one or more lines are too long