* WIP replacement NUA system

This commit is contained in:
Bryan Ashby 2015-09-22 21:31:56 -06:00
parent b1947c8010
commit 6c38ff54d5
4 changed files with 45 additions and 12 deletions

View File

@ -43,7 +43,6 @@ function ViewController(options) {
// Everything else is forwarded on to the focused View, if any.
//
var actionForKey = key ? self.actionKeyMap[key.name] : self.actionKeyMap[ch];
//var actionForKey = self.actionKeyMap[key.name] || self.actionKeyMap[ch];
if(actionForKey) {
if(_.isNumber(actionForKey.viewId)) {
//

View File

@ -81,7 +81,8 @@
},
{
value: { 1: 1 },
action: @menu:apply
action: @menu:newUserApplication
//action: @menu:apply
},
{
value: { 1: 2 },
@ -175,10 +176,10 @@
argName: birthdate
maskPattern: "####/##/##"
}
// :TODO: use a mask edit for this:
ET4: {
ME4: {
argName: sex
maxLength: 1
maskPattern: A
textStyle: U
}
ET5: {
argName: location
@ -206,16 +207,26 @@
password: true
maxLength: @config:users.passwordMax
}
BT12: {
TM12: {
argName: submission
items: [ "Apply", "Cancel" ]
submit: true
text: Apply
}
BT13: {
submit: true
text: Cancel
}
}
}
submit: {
*: [
{
value: { "submission" : 0 }
action: @method:apply/submitApplication
extraArgs: {
inactive: userNeedsActivated
error: newUserCreateError
}
}
]
}
}
}
}
"apply" : {

BIN
mods/themes/NU-MAYA/NUA.ANS Normal file

Binary file not shown.

View File

@ -56,6 +56,29 @@
ET10: { width: 21 }
}
newUserApplication: {
ET1: { width: 21 }
ET2: { width: 21 }
/*ME3: {
styleSGR1: |00|30|01
styleSGR2: |00|37
fillChar: "#"
}*/
//ET4: { width: 1 }
ET5: { width: 21 }
ET6: { width: 21 }
ET7: { width: 21 }
ET8: { width: 21 }
ET9: { width: 21 }
ET10: { width: 21 }
TM12: {
focusTextStyle: first lower
}
}
lastCallers: {
TL1: {
resizable: false