From 3ecdd772910ed56ac8e1f01bcd683ba0a97071da Mon Sep 17 00:00:00 2001 From: Davide Franco Date: Fri, 22 Oct 2010 18:19:25 +0200 Subject: [PATCH] bacula-web: Fixed some html and css issue --- gui/bacula-web/stats.php | 2 - gui/bacula-web/style/default.css | 5 ++- gui/bacula-web/templates/index.tpl | 43 +++++++++++--------- gui/bacula-web/templates/last_run_report.tpl | 22 ++++++---- gui/bacula-web/templates/volumes.tpl | 15 +++++-- 5 files changed, 54 insertions(+), 33 deletions(-) diff --git a/gui/bacula-web/stats.php b/gui/bacula-web/stats.php index 51baaa5cf3..4ab1c2ab7c 100644 --- a/gui/bacula-web/stats.php +++ b/gui/bacula-web/stats.php @@ -58,6 +58,4 @@ else if (!isset($_GET['ylabel'])) $graph->BCreate ($_GET['server'],$_GET['tipo_dato'],$_GET['title'],$_GET['modo_graph'],$_GET['xlabel']); else $graph->BCreate ($_GET['server'],$_GET['tipo_dato'],$_GET['title'],$_GET['modo_graph'],$_GET['xlabel'],$_GET['ylabel']); - - ?> diff --git a/gui/bacula-web/style/default.css b/gui/bacula-web/style/default.css index e5616fa0f0..a50c5b2b7e 100644 --- a/gui/bacula-web/style/default.css +++ b/gui/bacula-web/style/default.css @@ -87,7 +87,10 @@ td,input,select { background-color: #FAFAFA; border: #D1D7DC; border-style: solid; - border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px + border-left-width: 1px; + border-top-width: 1px; + border-right-width: 1px; + border-bottom-width: 1px } .notas { font-size : 13px; diff --git a/gui/bacula-web/templates/index.tpl b/gui/bacula-web/templates/index.tpl index 2e918da06b..7ac3027b39 100644 --- a/gui/bacula-web/templates/index.tpl +++ b/gui/bacula-web/templates/index.tpl @@ -19,27 +19,32 @@ {config_load file=bacula.conf} - - -
{include file=generaldata.tpl}
{include file=volumes.tpl}
- {if !#IndexReport#} - {include file=last_run_report.tpl} + + + + +
+ {include file=generaldata.tpl} +
+ {include file=volumes.tpl} +
+ {if !#IndexReport#} + {include file=last_run_report.tpl} + {else} + {include file=report_select.tpl} + {/if} + + + - - + + +
+ {if $server==""} + {else} - {include file=report_select.tpl} + {/if} - - -
- {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 350b537e6b..80096f3aa4 100644 --- a/gui/bacula-web/templates/last_run_report.tpl +++ b/gui/bacula-web/templates/last_run_report.tpl @@ -1,3 +1,5 @@ + + {else if #mode# == "Full" || $smarty.get.Full_popup == "yes"} @@ -192,4 +196,6 @@ {/if} -
@@ -122,10 +124,12 @@
- + +
- @@ -133,10 +137,9 @@ - - - +
- {t}Detailed report{/t} + + + Detailed report
{t}Select a job:{/t} - +
+
\ No newline at end of file +
+ + \ No newline at end of file diff --git a/gui/bacula-web/templates/volumes.tpl b/gui/bacula-web/templates/volumes.tpl index c99b02083f..2d1610cf69 100644 --- a/gui/bacula-web/templates/volumes.tpl +++ b/gui/bacula-web/templates/volumes.tpl @@ -1,4 +1,4 @@ -{* Design of table of pools *} + @@ -31,8 +31,16 @@ - - + +
Pools{$current3.0} {$current3.1|fsize_format|default:0} {$current3.4}{if $current3.6|date_format:"%Y" <= "1979"}--{else}{$current3.6|date_format:"%Y/%m/%d"}{/if}{if $current3.5 == "0000-00-00 00:00:00"}--{else}{$current3.5|date_format:"%Y/%m/%d"}{/if} + {if $current3.6|date_format:"%Y" <= "1979"}-- + {else}{$current3.6|date_format:"%Y/%m/%d"} + {/if} + + {if $current3.5 == "0000-00-00 00:00:00"}-- + {else}{$current3.5|date_format:"%Y/%m/%d"} + {/if} +
+ -- 2.39.5