Newer
Older
backup-commander / src / bu-command-nav.json
{
	"Global": {
		"sitename":"Backup Commander",
		"meta":{
			"author":"John Pearcey",
			"desription":"WebUI backup manager for web servers"
		},
		"icon":"/img/uk-green.png",
		"style":	[ "/css/main.css" ]

	},

	"Handlers":{
		"Johnpearcey\\Amara\\Router\\RqHandlerCls_login" : {
			"style":[ "/css/login.css" ],
			"page_builder" : {
				"name" : "login_page",
				"data" : {
					"login_form" : {
						"btn_submit_value" : "Login",
						"css_class_frm" : "frm2col frm_login"
					}
				}
			}
		},
		
		"Johnpearcey\\Amara\\Router\\RqHandlerCls_register" : {
			"style":[ "/css/login.css" ],
			"page_builder" : {
				"name" : "register_page",				
				"data" : {
					"register_form" : {
						"btn_submit_value" : "Sign Up",
						"css_class_frm" : "frm2col frm_register"
					}
				}
			}
		},

		"Johnpearcey\\Amara\\Router\\RqHandlerCls_logintok" : {
			"style":[ "/css/login.css" ],
			"page_builder" : {
				"name" : "tok_entry_page",				
				"data" : {
					"tok_entry_form" : {
						"btn_submit_value" : "Send",
						"css_class_frm" : "frm2col frm_tok"
					}
				}
			}		
		},

		"Johnpearcey\\Amara\\Router\\RqHandlerCls_lostpwd" : {			
			"style":[ "/css/login.css" ],
			"page_builder" : {
				"name" : "reset_pwd",
				"data" : {
					"rst_pwd_form" : {
						"btn_submit_value" : "Reset",
						"css_class_frm" : "frm2col frm_lostpwd"
					}
				}
			}
		},

		"Johnpearcey\\Amara\\Router\\RqHandlerCls_setpwd" : {
			"style":[ "/css/login.css" ],
			"page_builder" : {
				"name" : "newpwd_page",				
				"data" : {
					"newpwd_form" : {
						"btn_submit_value" : "Reset",
						"css_class_frm" : "frm2col frm_login"
					}
				}
			}
		}


	},

	"Navigate": {
		
		"/index.html": {
			"#1" : "Same as mainpage but only if logged in",
			"secure":1,
			"class-handler": "Johnpearcey\\Amara\\Router\\RqHandlerCls_mainpage"
		},
		
		
		"/mainpage": {
			"secure":1,
			"class-handler": "Johnpearcey\\Amara\\Router\\RqHandlerCls_mainpage",
			"page_builder" : "main_page",
			"class_props":{
				"logout_link" : "/logout"
			}
		}
		
	}		

}