From 70eefc008a997f367c5c6aa44cc83f6b08290f64 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Sun, 28 Jan 2018 12:59:20 -0700 Subject: [PATCH] Update matrix example to show item formatting --- art/themes/luciano_blocktronics/theme.hjson | 3 +- config/menu.hjson | 33 +++++++++++++++++---- 2 files changed, 29 insertions(+), 7 deletions(-) diff --git a/art/themes/luciano_blocktronics/theme.hjson b/art/themes/luciano_blocktronics/theme.hjson index 433f8884..27bd44ca 100644 --- a/art/themes/luciano_blocktronics/theme.hjson +++ b/art/themes/luciano_blocktronics/theme.hjson @@ -22,7 +22,8 @@ matrix: { mci: { VM1: { - focusTextStyle: first lower + itemFormat: "|03{text}" + focusItemFormat: "|11{text!styleFirstLower}" } } } diff --git a/config/menu.hjson b/config/menu.hjson index b8d26521..3fb9c229 100644 --- a/config/menu.hjson +++ b/config/menu.hjson @@ -67,26 +67,47 @@ submit: true focus: true argName: navSelect - // :TODO: need a good way to localize these ... Standard Orig->Lookup seems good. - items: [ "login", "apply", "forgot pw", "log off" ] + // + // To enable forgot password, you will need to have the web server + // enabled and mail/SMTP configured. Once that is in place, swap out + // the commented lines below as well as in the submit block + // + items: [ + { + text: login + data: login + } + { + text: apply + data: apply + } + { + text: forgot pass + data: forgot + } + { + text: log off + data: logoff + } + ] } } submit: { *: [ { - value: { navSelect: 0 } + value: { navSelect: "login" } action: @menu:login } { - value: { navSelect: 1 }, + value: { navSelect: "apply" } action: @menu:newUserApplicationPre } { - value: { navSelect: 2 } + value: { navSelect: "forgot" } action: @menu:forgotPassword } { - value: { navSelect: 3 }, + value: { navSelect: "logoff" } action: @menu:logoff } ]