From 8e9aa304e3eeae129c994e0c89530e6761b996c7 Mon Sep 17 00:00:00 2001 From: Nathan Booth Date: Thu, 22 Dec 2011 12:51:43 +0000 Subject: [PATCH] Updated style with white rounded content boxes and re organised site edit page Signed-off-by: Nathan Booth --- public/styles/normal.css | 32 +++- source/webui/templates/admin.tpl | 14 +- source/webui/templates/admin/service.tpl | 22 +-- source/webui/templates/admin/site.tpl | 191 ++++++++++++++--------- source/webui/templates/home.tpl | 8 + source/webui/templates/status.tpl | 10 +- 6 files changed, 174 insertions(+), 103 deletions(-) diff --git a/public/styles/normal.css b/public/styles/normal.css index 80fcc4d..80c401d 100644 --- a/public/styles/normal.css +++ b/public/styles/normal.css @@ -11,6 +11,7 @@ body { padding-top: 40px; padding: 0em; font-family: verdana, helvetica, sans-serif; + background: #F7F7F7; } a { @@ -109,8 +110,14 @@ div.incident { margin-left: 2em; } +table{ + background:#fff; +} + table th, table td { text-align: center; + line-height: 10px; + vertical-align: middle; } th.service { @@ -123,7 +130,6 @@ th.service { } div.page-header{ -background:#f5f5f5; margin:10px -5px 20px; padding:10px 10px 0 10px; -moz-border-radius:5px 5px 0 0; @@ -136,7 +142,25 @@ border-bottom: 0px; margin: 0 0 0px; } -table th, table td { -line-height: 10px; -vertical-align: middle; + +#my-tab-content{ + background:#fff; + margin:-20px -5px 20px; + Padding-top:20px; + padding-left:20px; + -moz-border-radius:5px 5px 0 0; +-webkit-border-radius:5px; + border-left: 1px solid #DDD; + border-right: 1px solid #DDD; + border-bottom: 1px solid #DDD; + } + .rounded_content{ + background:#fff; + margin:0 -5px 20px; + Padding-top:20px; + padding-left:20px; + -moz-border-radius:5px 5px 0 0; +-webkit-border-radius:5px; + border: 1px solid #DDD; + } diff --git a/source/webui/templates/admin.tpl b/source/webui/templates/admin.tpl index 0999824..1f7e028 100644 --- a/source/webui/templates/admin.tpl +++ b/source/webui/templates/admin.tpl @@ -23,7 +23,7 @@

Current Services

Click on a Service to edit its properties, or access any of the sites defined under it.

-
+
{if $services} @@ -41,8 +41,8 @@ {$service->description|escape:html} {/foreach} @@ -71,20 +71,20 @@

Add New Service

Use this form to define a new service

-
+
- +
- +
- +
diff --git a/source/webui/templates/admin/service.tpl b/source/webui/templates/admin/service.tpl index b629c93..ca47cad 100644 --- a/source/webui/templates/admin/service.tpl +++ b/source/webui/templates/admin/service.tpl @@ -9,12 +9,13 @@

Service {$service->name|escape:html}

+

Edit Service

Use this form to update the existing Service

-
+
@@ -27,13 +28,13 @@
- +
-   +  
@@ -46,7 +47,7 @@

Existing Sites

Currently the following sites that are defined for the service {$service->name|escape:html}, Edit the site or delete it from the service here, to add a new one use the form below

-
+
{if $sites}
- - + +
@@ -64,8 +65,8 @@ {$site->description|escape:html} {/foreach} @@ -95,20 +96,20 @@

Add Site

Use this form to define a new site to the service {$service->name|escape:html}

-
+
- +
- +
- +
@@ -121,6 +122,7 @@
+
- - + +