]> git.sur5r.net Git - bacula/bacula/commitdiff
bacula-web: Fixed smarty code in index and header templates
authorDavide Franco <bacula-dev@dflc.ch>
Fri, 1 Jul 2011 14:16:19 +0000 (16:16 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:49:18 +0000 (14:49 +0200)
gui/bacula-web/templates/header.tpl
gui/bacula-web/templates/index.tpl

index 190b9a1b12fb1a7f62e065c353fd66f04de5d441..3a0f2ddb71e064e1985e4cd23b1b0d822ca99646 100644 (file)
        {if $catalog_nb > 1}
        <li>
                <form method="post" action="index.php">
-                       Catalog&nbsp;
-                       <select name="catalog_id" OnChange="submit()">
-                               {html_options options=$catalogs selected=$catalog_current_id}
-                       </select>
+                       Select catalog&nbsp;
+                       {html_options name=catalog_id options=$catalogs selected=$catalog_current_id onchange="submit();"}
                </form>
        </li>
        {/if}
index 8f7560c9c17466c223d494e824e1873f9b26d608..c0f9aad62de2e0ce67d021af35b599f67e7e281a 100644 (file)
                <td class="info">
             <input type=hidden name="default" value="1">                               
                   <select name=backupjob_name>
-                    {*
-                        {if $smarty.get.server != ""}
-                               {html_options values=$smarty.get.server output=$smarty.get.server}
-                        {else}
-                        *}
-                               {html_options values=$jobs_list output=$jobs_list}
-                    {* {/if} *}
+                    {html_options values=$jobs_list output=$jobs_list}
                   </select>
           </td>
         </tr>