* Use new Config.user properties for max lengths

* User configuration entry
This commit is contained in:
Bryan Ashby 2015-12-24 11:56:25 -07:00
parent eca82b66d4
commit 3856a74ea7
1 changed files with 76 additions and 22 deletions

View File

@ -190,7 +190,7 @@
} }
ET2: { ET2: {
argName: realName argName: realName
maxLength: 32 maxLength: @config:users.realNameMax
validate: @systemMethod:validateNonEmpty validate: @systemMethod:validateNonEmpty
} }
MET3: { MET3: {
@ -206,21 +206,21 @@
} }
ET5: { ET5: {
argName: location argName: location
maxLength: 32 maxLength: @config:users.locationMax
validate: @systemMethod:validateNonEmpty validate: @systemMethod:validateNonEmpty
} }
ET6: { ET6: {
argName: affils argName: affils
maxLength: 32 maxLength: @config:users.affilsMax
} }
ET7: { ET7: {
argName: email argName: email
maxLength: 255 maxLength: @config:users.emailMax
validate: @systemMethod:validateEmailAvail validate: @systemMethod:validateEmailAvail
} }
ET8: { ET8: {
argName: web argName: web
maxLength: 255 maxLength: @config:users.webMax
} }
ET9: { ET9: {
argName: password argName: password
@ -287,7 +287,7 @@
} }
ET2: { ET2: {
argName: realName argName: realName
maxLength: 32 maxLength: @config:users.realNameMax
validate: @systemMethod:validateNonEmpty validate: @systemMethod:validateNonEmpty
} }
MET3: { MET3: {
@ -303,21 +303,21 @@
} }
ET5: { ET5: {
argName: location argName: location
maxLength: 32 maxLength: @config:users.locationMax
validate: @systemMethod:validateNonEmpty validate: @systemMethod:validateNonEmpty
} }
ET6: { ET6: {
argName: affils argName: affils
maxLength: 32 maxLength: @config:users.affilsMax
} }
ET7: { ET7: {
argName: email argName: email
maxLength: 255 maxLength: @config:users.emailMax
validate: @systemMethod:validateEmailAvail validate: @systemMethod:validateEmailAvail
} }
ET8: { ET8: {
argName: web argName: web
maxLength: 255 maxLength: @config:users.webMax
} }
ET9: { ET9: {
argName: password argName: password
@ -625,6 +625,7 @@
} }
} }
} }
mainMenuUserConfig: { mainMenuUserConfig: {
module: @systemModule:user_config module: @systemModule:user_config
art: CONFSCR art: CONFSCR
@ -632,30 +633,83 @@
0: { 0: {
mci: { mci: {
ET1: { ET1: {
argName: email argName: realName
maxLength: @config:users.realNameMax
validate: @systemMethod:validateNonEmpty
focus: true
} }
ET2: { ME2: {
argName: location argName: birthdate
maskPattern: "####/##/##"
} }
ET3: { ME3: {
argName: webAddress argName: sex
maskPattern: A
textStyle: upper
validate: @systemMethod:validateNonEmpty
} }
ET4: { ET4: {
argName: location
maxLength: @config:users.locationMax
validate: @systemMethod:validateNonEmpty
}
ET5: {
argName: affils argName: affils
maxLength: @config:users.affilsMax
} }
ME5: { ET6: {
maskPattern: "####/##/##" argName: email
argName: birthdate maxLength: @config:users.emailMax
validate: @method:validateEmailAvail
} }
ME11: { ET7: {
maskPattern: "##x##" argName: web
argName: termSize maxLength: @config:users.webMax
}
ME8: {
maskPattern: "##"
argName: termHeight
validate: @systemMethod:validateNonEmpty
}
SM9: {
argName: theme
}
ET10: {
argName: password
maxLength: @config:users.passwordMax
password: true
validate: @method:validatePassword
}
ET11: {
argName: passwordConfirm
maxLength: @config:users.passwordMax
password: true
validate: @method:validatePassConfirmMatch
}
TM25: {
argName: submission
items: [ "save", "cancel" ]
submit: true
} }
} }
submit: {
*: [
{
value: { submission: 0 }
action: @method:saveChanges
}
{
value: { submission: 1 }
action: @systemMethod:prevMenu
}
]
}
actionKeys: [ actionKeys: [
{ {
keys: [ "escape" ] keys: [ "escape" ]
action: @method:exitKeyPressed action: @systemMethod:prevMenu
} }
] ]
} }