]> git.sur5r.net Git - bacula/bacula/blobdiff - gui/bacula-web/templates/header.tpl
bacula-web: Changed main dashboard layout
[bacula/bacula] / gui / bacula-web / templates / header.tpl
index be315f936b8c3e203eece684da0e849791d0e29a..74487552eb0d75c5f3e338d73f5500996c2fc12c 100644 (file)
@@ -5,32 +5,18 @@
 
 <div id="subheader">
  <ul>
-       <li> 
-               <a href="index.php">Refresh</a>
-       </li>
-       <li>
-               <a href="http://bacula-web.dflc.ch/bugs" target="_blank">Bugs</a
+       <li> <a href="http://bacula-web.dflc.ch/bugs" target="_blank">Bugs</a> </li>
+       <li><a href="http://bacula-web.dflc.ch" target="_blank">About</a> </li>
+
+       <!-- Condifitional catalog selection if more than 1 catalog is defined in the configuration -->
+       {if $dbs > 1}
        <li>
-               <a href="http://bacula-web.dflc.ch" target="_blank">About</a>
+               <form method=post action=index.php>
+                       Catalog&nbsp; <select name=sel_database OnChange=submit()> {html_options values={$dbs} name=$selected_db=$dbs_now} </select>
+               </form>
        </li>
+       {/if}
  </ul>
 </div> <!-- end div subheader -->
 
-<!-- Multi catalog selection will added in next release
-<table width="100%" cellpadding=0 cellspacing=0 border=0 bgcolor="#2F92AF">
- <tr>
-
-       {if $dbs ne ""}
-               <form method=post action=index.php>
-               <td background="{#root#}style/images/bg2.png" align="right" valign="top">
-               {t}Select{/t}: 
-               <select name=sel_database style="font-family:verdana;font-size: 10px;color: white; background-color:#666;" onchange=submit()>
-               {html_options values=$dbs output=$dbs selected=$dbs_now}
-               </select>
-               </td>
-       {/if}
-    </tr>
-  </table>
-</form>
--->
-<!-- End Header -->
\ No newline at end of file
+<!-- End Header -->