diff options
Diffstat (limited to 'sca-cpp/trunk/modules/edit/htdocs/app')
-rw-r--r-- | sca-cpp/trunk/modules/edit/htdocs/app/app.html | 12 | ||||
-rw-r--r-- | sca-cpp/trunk/modules/edit/htdocs/app/index.html | 17 |
2 files changed, 15 insertions, 14 deletions
diff --git a/sca-cpp/trunk/modules/edit/htdocs/app/app.html b/sca-cpp/trunk/modules/edit/htdocs/app/app.html index a2cf0e1f60..7a6330102a 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/app/app.html +++ b/sca-cpp/trunk/modules/edit/htdocs/app/app.html @@ -29,21 +29,24 @@ </head> <body> -<table style="position: absolute; top: 0px; left: 0px;" width="100%"> -<tr><th><span>App Listing Information</span><span style="padding-top: 0px; padding-bottom:0px; position: absolute; top: 2px; right: 8px;"><input type="button" id="saveButton" style="font-weight: bold;" Value="Save"/></span></th></tr> +<div style="position: absolute; top: 0px; left: 0px; right: 0px;"> + +<table width="100%"> +<tr><th><span id="appname"></span><span style="padding-top: 0px; padding-bottom:0px; position: absolute; top: 2px; right: 8px;"><input type="button" id="saveButton" style="font-weight: bold;" Value="Save"/></span></th></tr> </table> <br> -<br> <div> <form id="appForm"> <table width="100%"> <tr><tr><td><b>App Title:</b></td></tr> -<tr><td><input type="text" id="appTitle" size="20"/></td></tr> +<tr><td><input type="text" id="appTitle" size="30"/></td></tr> </table> </form> </div> +</div> + <script type="text/javascript"> // Init service references @@ -54,6 +57,7 @@ var dashboard = sca.reference(editWidget, "dashboard"); * The current app name. */ var appname = ui.queryParams()['app']; +$('appname').innerHTML = 'App: ' + appname; /** * Get and display an app. diff --git a/sca-cpp/trunk/modules/edit/htdocs/app/index.html b/sca-cpp/trunk/modules/edit/htdocs/app/index.html index f5f11137ec..f79229d17e 100644 --- a/sca-cpp/trunk/modules/edit/htdocs/app/index.html +++ b/sca-cpp/trunk/modules/edit/htdocs/app/index.html @@ -29,20 +29,18 @@ <body> <div id="menu"></div> -<br/> -<h1><span id="title"></span></h1> -</br> - -<div id="app"></div> - <script type="text/javascript"> -/** - * The current app name. - */ + +// Get the app name var appname = ui.queryParams()['app']; // Load the menu bar ui.loadwidget('menu', '/menu.html?app=' + appname); +</script> + +<div id="app"></div> + +<script type="text/javascript"> /** * Display the page editor for an app. @@ -50,7 +48,6 @@ ui.loadwidget('menu', '/menu.html?app=' + appname); function editapp(name) { if (isNil(name)) return; - $('title').innerHTML = 'Editing: ' + name; ui.loadiframe('app', 'app.html?app=' + name); } |