Code

Updated table summary
[gosa.git] / gosa-plugins / fai / admin / fai / branch_selector.tpl
index 6b236c3137d3a9d1bade15a175646eddf4dc10fe..20f62e09ef7c3efeedf5af19b7e8a8599729f657 100644 (file)
@@ -1,42 +1,49 @@
  <div class="contentboxh" style="border-bottom:1px solid #B0B0B0;">
-    <p class="contentboxh"><img src="{$branchimage}" align="right" alt="[F]">{t}Branches{/t}</p>
+    <p class="contentboxh">{image path="{$branchimage}" align="right"}{t}Releases{/t}
+</p>
    </div>
    <div class="contentboxb">
-        <table summary="" style="width:100%;border-bottom:1px solid #B0B0B0;">
+        <table style='width:100%;' summary="{t}FAI release selector{/t}">
+
      <tr>
       <td>
     {t}Current release{/t}&nbsp;
-    <select name="selectedBranch" onChange="document.mainform.submit();">
-        {html_options options=$branches selected=$selectedBranch}
+    <select name="fai_release" onChange="document.mainform.submit();" size=1>
+        {html_options output=$fai_releases values=$fai_releases selected=$fai_release}
     </select>
       </td>
      </tr>
         </table>
-        <table summary="" style="width:100%;">
+        <table summary="{t}FAI release selector{/t}" style="width:100%;">
      <tr>
       <td>
     {if $allow_create}
-        <input class="center" type="image" name="branch_branch" src="images/branch_small.png">
-        <a href="?plug={$plug_id}&act=branch_branch">{t}Create new branch{/t}</a>
+        {image path="plugins/fai/images/branch_small.png" action="branch_branch"}
+
+        <a href="?plug={$plug_id}&act=branch_branch">{t}Create release{/t}</a>
         <br>
-        <input class="center" type="image" name="freeze_branch" src="images/freeze.png">
-               <a href="?plug={$plug_id}&act=freeze_branch">{t}Create new locked branch{/t}</a>
+        {image path="plugins/fai/images/freeze.png" action="freeze_branch"}
+
+               <a href="?plug={$plug_id}&act=freeze_branch">{t}Create read-only release{/t}</a>
     {else}
-        <img src="images/branch_small_grey.png" alt='{t}Branch{/t}' class='center'>
-        {t}Create new branch{/t}
+        {image path="plugins/fai/images/branch_small_grey.png"}
+
+        {t}Create release{/t}
         <br>
-        <img src="images/freeze_grey.png" alt='{t}Freeze{/t}' class='center'>
-               {t}Create new locked branch{/t}
+        {image path="plugins/fai/images/freeze_grey.png"}
+
+               {t}Create read-only release{/t}
     {/if}
 
-    {if $selectedBranch != "main" && $allow_remove}
+    {if $fai_release != $fai_base && $allow_remove}
     <br>
-        <input class="center" type="image" name="remove_branch" src="images/edittrash.png">
+        {image path="images/lists/trash.png" action="remove_branch"}
+
            <a href="?plug={$plug_id}&act=remove_branch">{t}Delete current release{/t}</a>
     {/if}
       </td>
      </tr>
-        </table>
+   </table>
    </div>
 <br>