Code

Added refresh button if js is disabled
[gosa.git] / plugins / admin / systems / workstationStartup.tpl
index c27a8ce2a4672428f04a9858fa259c38679064f0..117bb7a835d4d88a0a7a0bff5f093434f72efb64 100644 (file)
   </td>
   
   <td style="vertical-align:top;">
-     <table><tr>
-     <td>
-       <h2><img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}FAI server{/t}</h2></td>
-     <td>
-       <h2><img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}Release{/t}</h2></td>
-     </tr><tr>
-     <td>
-               <!--<select name="FAIdebianMirror" {$FAIdebianMirrorACL} onchange="document.mainform.submit();">-->
-               <select name="FAIdebianMirror" {$FAIdebianMirrorACL} onchange='document.mainform.submit()'>
-        {html_options options=$FAIdebianMirrors output=$FAIdebianMirrors selected=$FAIdebianMirror}
-        <option disabled>&nbsp;</option>
-               </select>
-               <!--<input type="submit" value="{t}set{/t}" name="refresh">-->
-     </td><td>
-           <select name="FAIrelease"  onchange='document.mainform.submit()'>
-               {html_options options=$FAIreleases output=$FAIreleases selected=$FAIrelease}
-               </select>
-       </td>
-     </tr></table>
-       <h2><img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}Assigned FAI classes{/t}</h2>
+
+       {if $FAIdebianMirror == "inherited"}
+
+               <table>
+                       <tr>
+                               <td>
+                                       <h2><img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}FAI server{/t}
+                                       </h2>
+                               </td>
+                               <td>
+                                       <h2><img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}Release{/t}
+                                       </h2>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td>
+                                       <select name="FAIdebianMirror"   onchange='document.mainform.submit()'>
+                                               {html_options options=$FAIdebianMirrors output=$FAIdebianMirrors selected=$FAIdebianMirror}
+                                       </select>
+                               </td>
+                               <td>
+                                       <select name="FAIrelease"  disabled>
+                                       {html_options options=$InheritedFAIrelease output=$InheritedFAIrelease selected=$InheritedFAIrelease}
+                                       </select>
+                               </td>
+                       </tr>
+               </table>
+               <h2>
+                       <img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}Assigned FAI classes{/t}
+               </h2>
+               {$FAIScriptlist}        
+       {else}
+
+               <table>
+                       <tr>
+                               <td>
+                                       <h2><img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}FAI server{/t}
+                                       </h2>
+                               </td>
+                               <td>
+                                       <h2><img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}Release{/t}
+                                       </h2>
+                               </td>
+                       </tr>
+                       <tr>
+                               <td>
+                                       <select name="FAIdebianMirror" {$FAIdebianMirrorACL} onchange='document.mainform.submit()'>
+                                               {html_options options=$FAIdebianMirrors output=$FAIdebianMirrors selected=$FAIdebianMirror}
+                                               <option disabled>&nbsp;</option>
+                                       </select>
+                                       {if $javascript eq 'false'}<input type="submit" value="{t}set{/t}" name="refresh">{/if}
+                               </td>
+                               <td>
+                                       <select name="FAIrelease"  onchange='document.mainform.submit()'>
+                                       {html_options options=$FAIreleases output=$FAIreleases selected=$FAIrelease}
+                                       </select>
+                               </td>
+                       </tr>
+               </table>
+               <h2>
+                       <img class="center" alt="" align="middle" src="images/fai_profile.png">&nbsp;{t}Assigned FAI classes{/t}
+               </h2>
                {$FAIScriptlist}        
 
                <select name="FAIclassesSel" {$FAIclassACL}>
-        {html_options values=$FAIclassesKeys output=$FAIclasses}
-        <option disabled>&nbsp;</option>
+                       {html_options values=$FAIclassesKeys output=$FAIclasses}
+                       <option disabled>&nbsp;</option>
                </select>       
-               <input name="AddClass" value="{t}Add{/t}" type="submit"> 
-               <input name="DelClass" value="{t}Delete{/t}" type="submit"> 
-  </td>
- </tr>
+               <input name="AddClass" value="{t}Add{/t}" type="submit"> 
+<!--           <input name="DelClass" value="{t}Delete{/t}" type="submit"> -->
+       {/if}
+               </td>
+       </tr>
 </table>
 
 <table summary="" style="width:100%;">
                 <tr>
                         <td>
                         <select style="width:100%;height:150px;" name="gotoShare" multiple size=4 {$gotoShareACL} id="gotoShare">
-        {html_options values=$gotoShareKeys output=$gotoShares}
-        <option disabled>&nbsp;</option>
+                                            {html_options values=$gotoShareKeys output=$gotoShares}
+                                                               <option disabled>&nbsp;</option>
                                 </select>
                                 <br>
                         <select name="gotoShareSelection" {$gotoShareACL}>
-        {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
-        <option disabled>&nbsp;</option>
+                                                   {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
+                                                       <option disabled>&nbsp;</option>
                                 </select>
                                 <input type="text" size=15 {$gotoShareACL} name="gotoShareMountPoint" value="{t}Mountpoint{/t}">
                                 <input type="submit" {$gotoShareACL} name="gotoShareAdd" value="{t}Add{/t}">
-                                <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}">
+                                <input type="submit" {$gotoShareACL} name="gotoShareDel" value="{t}Remove{/t}" {if $gotoSharesCount == 0} disabled {/if}>
                         </td>
                 </tr>
         </table>
   </td>
  </tr>
 </table>
-
+<input name="WorkstationStarttabPosted" type="hidden" value="1">
 <!-- Place cursor -->
 <script language="JavaScript" type="text/javascript">
   <!-- // First input field on page
   document.mainform.gotoLdapServer.focus();
   -->
-</script>