2015-03-24 05:12:19 +00:00
|
|
|
{
|
2015-03-26 05:23:14 +00:00
|
|
|
/*
|
|
|
|
Menu Configuration
|
2015-04-04 20:41:04 +00:00
|
|
|
|
|
|
|
Some concept/ideas:
|
|
|
|
"mci" : {
|
2015-04-16 04:46:45 +00:00
|
|
|
"BT1" : {
|
2015-04-04 20:41:04 +00:00
|
|
|
...
|
|
|
|
"draw" : "@script:blah.js/drawButton"
|
2015-04-05 07:15:04 +00:00
|
|
|
// @method:scriptName[.js]/methodName (foreign .js)
|
|
|
|
// @art:artName
|
|
|
|
// @method:/methodName (local to module.js)
|
|
|
|
"draw" : {
|
|
|
|
"normal" : ...,
|
|
|
|
"focus" : ...
|
|
|
|
}
|
2015-04-10 04:49:56 +00:00
|
|
|
|
|
|
|
..note that script/methods should be part of a *theme* - or at least checked first with fallback
|
2015-04-16 04:46:45 +00:00
|
|
|
.....why?
|
2015-04-04 20:41:04 +00:00
|
|
|
}
|
|
|
|
}
|
2015-03-26 05:23:14 +00:00
|
|
|
*/
|
2015-03-24 05:12:19 +00:00
|
|
|
"matrix" : {
|
|
|
|
"art" : "matrix",
|
2015-04-02 04:13:29 +00:00
|
|
|
"form" : {
|
|
|
|
"0" : {
|
|
|
|
"VM1" : {
|
|
|
|
"mci" : {
|
|
|
|
"VM1" : {
|
|
|
|
"submit" : true,
|
|
|
|
"focus" : true,
|
|
|
|
// :TODO: need a good way to localize these ... Standard Orig->Lookup seems good.
|
|
|
|
"items" : [ "Login", "Apply", "Log Off" ]
|
|
|
|
}
|
2015-03-30 03:47:48 +00:00
|
|
|
},
|
2015-04-02 04:13:29 +00:00
|
|
|
"submit" : {
|
|
|
|
"*" : [
|
|
|
|
{
|
|
|
|
"value" : { "1" : 0 },
|
2015-04-05 07:15:04 +00:00
|
|
|
"action" : "@menu:login"
|
2015-04-02 04:13:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"value" : { "1" : 1 },
|
2015-04-05 07:15:04 +00:00
|
|
|
"action" : "@menu:apply"
|
2015-04-02 04:13:29 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"value" : { "1" : 2 },
|
2015-04-05 07:15:04 +00:00
|
|
|
"action" : "@menu:logoff"
|
2015-04-02 04:13:29 +00:00
|
|
|
}
|
|
|
|
]
|
2015-03-30 03:47:48 +00:00
|
|
|
}
|
2015-04-02 04:13:29 +00:00
|
|
|
}
|
2015-03-27 04:58:22 +00:00
|
|
|
}
|
2015-04-10 04:49:56 +00:00
|
|
|
},
|
|
|
|
"options" : {
|
|
|
|
"clearScreen" : true
|
2015-04-02 04:13:29 +00:00
|
|
|
}
|
2015-03-24 05:12:19 +00:00
|
|
|
},
|
2015-04-05 07:15:04 +00:00
|
|
|
"login" : {
|
2015-04-04 20:41:04 +00:00
|
|
|
"art" : "login", // TODO: rename to login_form
|
2015-03-31 03:29:06 +00:00
|
|
|
"module" : "login",
|
2015-04-02 04:13:29 +00:00
|
|
|
"form" : {
|
|
|
|
"0" : {
|
2015-04-16 04:46:45 +00:00
|
|
|
"BT3BT4ET1ET2TL5" :{
|
2015-04-02 04:13:29 +00:00
|
|
|
"mci" :{
|
|
|
|
"ET1" : {
|
|
|
|
"focus" : true
|
|
|
|
},
|
2015-04-16 04:46:45 +00:00
|
|
|
"BT3" : {
|
2015-04-02 04:13:29 +00:00
|
|
|
"submit" : true,
|
|
|
|
"text" : "Login"
|
|
|
|
},
|
2015-04-16 04:46:45 +00:00
|
|
|
"BT4" : {
|
2015-04-02 04:13:29 +00:00
|
|
|
"submit" : true,
|
|
|
|
"text" : "Cancel"
|
|
|
|
}
|
2015-03-31 03:29:06 +00:00
|
|
|
},
|
2015-03-31 15:03:47 +00:00
|
|
|
"submit" : {
|
2015-04-02 04:13:29 +00:00
|
|
|
"3" : [ // Login
|
2015-03-31 15:03:47 +00:00
|
|
|
{
|
2015-04-05 07:15:04 +00:00
|
|
|
"value" : { "3" : null },
|
|
|
|
"action" : "@method:attemptLogin",
|
2015-04-16 04:46:45 +00:00
|
|
|
"args" : {
|
|
|
|
"next" : {
|
|
|
|
"success" : "newUserActive"
|
|
|
|
},
|
|
|
|
"username" : "{1}",
|
|
|
|
"password" : "{2}"
|
|
|
|
} // :TODO: rename to actionArgs ?
|
2015-04-04 20:41:04 +00:00
|
|
|
}
|
|
|
|
],
|
2015-04-16 04:46:45 +00:00
|
|
|
"4" : [ // Cancel
|
2015-04-04 20:41:04 +00:00
|
|
|
{
|
2015-04-05 07:15:04 +00:00
|
|
|
"value" : { "4" : null },
|
|
|
|
"action" : "@menu:matrix"
|
2015-03-31 15:03:47 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
2015-04-02 04:13:29 +00:00
|
|
|
}
|
2015-03-31 03:29:06 +00:00
|
|
|
}
|
2015-04-10 04:49:56 +00:00
|
|
|
},
|
|
|
|
"options" : {
|
|
|
|
"clearScreen" : true
|
2015-04-04 20:41:04 +00:00
|
|
|
}
|
|
|
|
},
|
2015-03-26 05:23:14 +00:00
|
|
|
"logoff" : {
|
2015-03-24 05:12:19 +00:00
|
|
|
"art" : "logoff",
|
2015-03-26 05:23:14 +00:00
|
|
|
"module" : "logoff"
|
2015-04-07 04:29:45 +00:00
|
|
|
},
|
|
|
|
"apply" : {
|
|
|
|
"art" : "apply",
|
|
|
|
"module" : "apply",
|
|
|
|
"form" : {
|
|
|
|
"0" : {
|
2015-04-16 04:46:45 +00:00
|
|
|
"BT12BT13ET1ET10ET2ET3ET4ET5ET6ET7ET8ET9TL11" : {
|
2015-04-07 04:29:45 +00:00
|
|
|
"mci" : {
|
|
|
|
"ET1" : {
|
|
|
|
"focus" : true
|
2015-04-10 04:49:56 +00:00
|
|
|
},
|
2015-04-16 04:46:45 +00:00
|
|
|
"BT12" : {
|
2015-04-14 06:19:14 +00:00
|
|
|
"submit" : true,
|
2015-04-10 04:49:56 +00:00
|
|
|
"text" : "Apply"
|
|
|
|
},
|
2015-04-16 04:46:45 +00:00
|
|
|
"BT13" : {
|
2015-04-14 06:19:14 +00:00
|
|
|
"submit" : true,
|
2015-04-10 04:49:56 +00:00
|
|
|
"text" : "Cancel"
|
2015-04-07 04:29:45 +00:00
|
|
|
}
|
2015-04-14 06:19:14 +00:00
|
|
|
},
|
|
|
|
"submit" : {
|
|
|
|
"12" : [ // Apply
|
|
|
|
{
|
|
|
|
"value" : { "12" : null },
|
|
|
|
"action" : "@method:submitApplication",
|
|
|
|
"args" : {
|
2015-04-16 04:46:45 +00:00
|
|
|
"next" : {
|
|
|
|
"inactive" : "userNeedsActivated",
|
|
|
|
"active" : "newUserActive",
|
|
|
|
"error" : "newUserCreateError"
|
|
|
|
},
|
2015-04-14 06:19:14 +00:00
|
|
|
"username" : "{1}",
|
|
|
|
"realName" : "{2}",
|
|
|
|
"age" : "{3}",
|
|
|
|
"sex" : "{4}",
|
|
|
|
"location" : "{5}",
|
|
|
|
"affils" : "{6}",
|
|
|
|
"email" : "{7}",
|
|
|
|
"web" : "{8}",
|
2015-04-15 04:27:07 +00:00
|
|
|
"pw" : "{9}",
|
|
|
|
"pwConfirm" : "{10}"
|
2015-04-14 06:19:14 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"13" : [ // Cancel
|
|
|
|
{
|
2015-04-16 04:46:45 +00:00
|
|
|
"value" : { "13" : null }, // :TODO: allow just "13" (number)
|
2015-04-14 06:19:14 +00:00
|
|
|
"action" : "@menu:matrix"
|
|
|
|
}
|
|
|
|
]
|
2015-04-07 04:29:45 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-04-10 04:49:56 +00:00
|
|
|
},
|
|
|
|
"options" : {
|
|
|
|
"clearScreen" : true
|
2015-04-07 04:29:45 +00:00
|
|
|
}
|
2015-04-16 04:46:45 +00:00
|
|
|
},
|
|
|
|
"newUserActive" : {
|
|
|
|
"art" : "NEWACT",
|
|
|
|
"options" : {
|
2015-04-17 04:29:53 +00:00
|
|
|
// :TODO: implement MCI codes for this
|
2015-04-16 04:46:45 +00:00
|
|
|
"clearScreen" : true
|
|
|
|
},
|
|
|
|
"form" : {
|
|
|
|
"0" : {
|
|
|
|
"UN1UR2" : {
|
|
|
|
"mci" : {
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-03-24 05:12:19 +00:00
|
|
|
}
|
|
|
|
}
|