From: Davide Franco Date: Fri, 22 Oct 2010 16:28:14 +0000 (+0200) Subject: bacula-web: Improved design and fixed html/css issue X-Git-Tag: Release-5.2.1~999 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e0c6a7316324a74adfc7740760c31243a5cbb53c;p=bacula%2Fbacula bacula-web: Improved design and fixed html/css issue --- diff --git a/gui/bacula-web/style/default.css b/gui/bacula-web/style/default.css index f29052cb85..a53eb52f42 100644 --- a/gui/bacula-web/style/default.css +++ b/gui/bacula-web/style/default.css @@ -1,6 +1,6 @@ body{ background-color: #ffffff; - padding: 0px; + padding: 3px; margin: 0px; font-family: Arial,Verdana; @@ -10,22 +10,23 @@ body{ width: 100%; padding: 0px; margin: 0px; + margin-bottom: 15px; background-color: #1E90FF ; } -#header p.title{ +#header p { + margin: 0px; + padding: 5px; + color: #FFFFFF; vertical-align: middle; - background-image: url('images/bg2.png'); font-size: 18pt; font-variant: small-caps; font-weight: bold; text-align: right; - color: #FFFFFF; - padding: 0.5em; } + #subheader { - width: 100%; font-size: 10pt; - margin: 0px; + margin: 0em; padding: 0px; border-bottom: 1px solid black; } @@ -44,6 +45,56 @@ body{ text-decoration: none; } +#main_left { + position: absolute; + left:5px; + width: 550px; + border:none; + margin-top: 1em; + background-color: #FFFFFF; +} + +#main_right { + position: absolute; + left:560px; + width: 420px; + border: none; + margin-top: 1em; +} + +.box { + border: 1px solid black; + width: 100%; + margin: 10px 0px 0px 0px; + padding: 0px; + text-align: center; +} + +.box p.title { + height: auto; + text-align: center; + vertical-align: middle; + font-size: 11pt; + background-color: #1E90FF; + color: white; + font-weight: bold; + padding: 0px; + margin-top: 0px; + margin-bottom: 5px; + padding-top: 5px; + padding-bottom: 5px; +} + +.box img { + width: 410px; + margin: 0px; +} + +table { + width: 100%; + margin: 0px; +} + a:link { color: #0000c0 } a:visited { color: #0000c0 } a:hover { color: #6040ff } @@ -77,6 +128,7 @@ td,input,select { border-left-width: 1px; border-top-width: 1px; border-right-width: 0px; + background-image:url('../images/bg5.png'); } .tbl_pool_inter_2 { background-color: #D4D4D9; diff --git a/gui/bacula-web/templates/generaldata.tpl b/gui/bacula-web/templates/generaldata.tpl index 1ed0d79453..bd6ffa406d 100644 --- a/gui/bacula-web/templates/generaldata.tpl +++ b/gui/bacula-web/templates/generaldata.tpl @@ -1,10 +1,16 @@ - - - -
-{t}GENERAL DATA{/t} -
+
+

General informations

+ - +
{t}Total clients:{/t} @@ -50,6 +56,4 @@
- -
+ \ No newline at end of file diff --git a/gui/bacula-web/templates/header.tpl b/gui/bacula-web/templates/header.tpl index d6f1c1180f..327f37837f 100644 --- a/gui/bacula-web/templates/header.tpl +++ b/gui/bacula-web/templates/header.tpl @@ -1,7 +1,7 @@ +

bacula-web

+
-
+ - +
+

General report

+ {if $server==""} + + {else} + + {/if} +
+ + {include file="footer.tpl"} \ No newline at end of file diff --git a/gui/bacula-web/templates/last_run_report.tpl b/gui/bacula-web/templates/last_run_report.tpl index 80096f3aa4..bde0fc60b7 100644 --- a/gui/bacula-web/templates/last_run_report.tpl +++ b/gui/bacula-web/templates/last_run_report.tpl @@ -1,12 +1,17 @@ - +
+

Last 24 hours status

+ {if #mode# == "Lite" && $smarty.get.Full_popup != "yes"} +
+
{t}Errors:{/t} @@ -46,9 +51,11 @@ {t}Show details{/t}
{if $status != 0} - + + - + +
@@ -119,20 +126,27 @@ {/section}
{/if} + +
+

Detailled report

+ +
+ + - + --> -
Detailed report
{t}Select a job:{/t} @@ -152,50 +166,46 @@
+
- - {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} - - - - - - - - - - - - - {section name=job loop=$clients} - - {section name=row loop=$clients[job]} - - {/section} - - {/section} -
{t}Elapsed time{/t}{t}Client{/t}{t}Start Time{/t}{t}End Time{/t}{t}Type{/t}{t}Pool{/t}{t}Status{/t}
- {if $smarty.section.row.iteration == 2} - - {/if} - {if $smarty.section.row.last == TRUE} - {if $clients[job][row] eq "T"} - - {else} - - {/if} - {else} - {$clients[job][row]} - {/if} - {if $smarty.section.row.iteration == 2} - - {/if} -
+ + + + + + + + + + + {section name=job loop=$clients} + + {section name=row loop=$clients[job]} + + {/section} + + {/section} -{/if}
{t}Elapsed time{/t}{t}Client{/t}{t}Start Time{/t}{t}End Time{/t}{t}Type{/t}{t}Pool{/t}{t}Status{/t}
+ {if $smarty.section.row.iteration == 2} + + {/if} + {if $smarty.section.row.last == TRUE} + {if $clients[job][row] eq "T"} + + {else} + + {/if} + {else} + {$clients[job][row]} + {/if} + {if $smarty.section.row.iteration == 2} + + {/if} +
+{/if} +
\ No newline at end of file diff --git a/gui/bacula-web/templates/volumes.tpl b/gui/bacula-web/templates/volumes.tpl index 2d1610cf69..b3f88a8862 100644 --- a/gui/bacula-web/templates/volumes.tpl +++ b/gui/bacula-web/templates/volumes.tpl @@ -1,30 +1,39 @@ + +
+

Pools

+ + + +
+ + {foreach from=$pools item=current} + + - {foreach from=$volumes item=current2} {assign var=key value=$current2} {foreach from=$key item=current3 name=loop} {if $current3.3 == $current && $current3.0 != ""} {if $smarty.foreach.loop.first == TRUE} - - - - - - - + + + + + + + {/if} @@ -63,5 +72,10 @@ {/foreach} {/foreach}
 
+ + {$current} - +
{t}Volume Name{/t}{t}Volume Bytes{/t}{t}Media Type{/t}{t}When expire?{/t}{t}Last Written{/t}{t}Volume Status{/t}
Volume NameVolume BytesMedia TypeExpire onLast WrittenVolume Status
-
+ + + + +
+