* Again change ANSI font handling

* Add prompt.json
This commit is contained in:
Bryan Ashby
2015-04-23 23:00:48 -06:00
parent 1e3e0b8baa
commit 91d395e8bc
7 changed files with 188 additions and 18 deletions

View File

@@ -36,7 +36,7 @@ function validateApplicationData(formData, cb) {
return;
}
if(formData.value.password !== formData.value.pwConfirm) {
if(formData.value.password !== formData.value.passwordConfirm) {
cb('Passwords do not match!', [ 9, 10 ]);
return;
}

View File

@@ -33,7 +33,7 @@
"matrix" : {
"art" : "matrix",
"form" : {
"0" : { // :TODO: Make form "0" the default if missing (e.g. optional)
"0" : { // :TODO: Make form "0" the default if missing (e.g. optional)... not sure how with current structure though
"VM1" : {
"mci" : {
"VM1" : {
@@ -99,7 +99,6 @@
"form" : {
"0" : {
"BT12BT13ET1ET10ET2ET3ET4ET5ET6ET7ET8ET9TL11" : {
"cancelKeys" : [ "esc" ],
"mci" : {
"ET1" : {
"focus" : true,
@@ -113,20 +112,20 @@
"ET7" : { "argName" : "email" },
"ET8" : { "argName" : "web" },
"ET9" : { "argName" : "password" },
"ET10" : { "argName" : "pwConfirm" },
"ET10" : { "argName" : "passwordConfirm" },
"BT12" : {
"submit" : true,
"text" : "Apply"
},
"BT13" : {
"submit" : true,
"submit" : [ "esc" ],
"text" : "Cancel"
}
},
"submit" : {
"12" : [ // Apply
{
"value" : 12,
"value" : 12, // :TODO: better, this should be optional; if not present it's a any match
"action" : "@method:apply/submitApplication",
"extraArgs" : {
"inactive" : "userNeedsActivated",

14
mods/prompt.json Normal file
View File

@@ -0,0 +1,14 @@
{
"userCredentials" : {
"art" : "USERCRED",
"mci" : {
"ET1" : {
"argName" : "username"
},
"ET2" : {
"submit" : true,
"argName" : "password"
}
}
}
}