diff --git a/plugins/admin/systems/workstationStartup.tpl b/plugins/admin/systems/workstationStartup.tpl
index d27ce0b5df605114a52e93b79783205a09b17551..fe647589f4db19f73e42f2acb65438c392c8b863 100644 (file)
</td>
<td style="vertical-align:top;">
</td>
<td style="vertical-align:top;">
+
+{if $fai_activated}
- {if $FAIinherit == true}
+ {if $FAIdebianMirror == "inherited"}
<table>
<table>
- <tr>
- <td>
- <input type="checkbox" value="1" name="FAIinherit" {if $FAIinherit == true} checked {/if}
- onClick="mainform.submit();">{t}Inherit FAI settings{/t}
- </td>
- </tr>
<tr>
<td>
<h2><img class="center" alt="" align="middle" src="images/fai_profile.png"> {t}FAI server{/t}
<tr>
<td>
<h2><img class="center" alt="" align="middle" src="images/fai_profile.png"> {t}FAI server{/t}
</tr>
<tr>
<td>
</tr>
<tr>
<td>
- <select name="FAIdebianMirror" disabled>
- {html_options options=$InheritedFAIdebianMirror output=$InheritedFAIdebianMirror selected=$InheritedFAIdebianMirror}
+ <select name="FAIdebianMirror" onchange='document.mainform.submit()'>
+ {html_options options=$FAIdebianMirrors output=$FAIdebianMirrors selected=$FAIdebianMirror}
</select>
</td>
<td>
</select>
</td>
<td>
{else}
<table>
{else}
<table>
- <tr>
- <td>
- <input type="checkbox" value="1" name="FAIinherit" {if $FAIinherit == true} checked {/if}
- onClick="mainform.submit();">{t}Inherit FAI settings{/t}
- </td>
- </tr>
<tr>
<td>
<h2><img class="center" alt="" align="middle" src="images/fai_profile.png"> {t}FAI server{/t}
<tr>
<td>
<h2><img class="center" alt="" align="middle" src="images/fai_profile.png"> {t}FAI server{/t}
<option disabled> </option>
</select>
<input name="AddClass" value="{t}Add{/t}" type="submit">
<option disabled> </option>
</select>
<input name="AddClass" value="{t}Add{/t}" type="submit">
- <input name="DelClass" value="{t}Delete{/t}" type="submit">
+<!-- <input name="DelClass" value="{t}Delete{/t}" type="submit"> -->
{/if}
{/if}
+{/if}
</td>
</tr>
</table>
</td>
</tr>
</table>
<tr>
<td>
<select style="width:100%;height:150px;" name="gotoShare" multiple size=4 {$gotoShareACL} id="gotoShare">
<tr>
<td>
<select style="width:100%;height:150px;" name="gotoShare" multiple size=4 {$gotoShareACL} id="gotoShare">
- {html_options values=$gotoShareKeys output=$gotoShares}
- <option disabled> </option>
+ {html_options values=$gotoShareKeys output=$gotoShares}
+ <option disabled> </option>
</select>
<br>
<select name="gotoShareSelection" {$gotoShareACL}>
</select>
<br>
<select name="gotoShareSelection" {$gotoShareACL}>
- {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
- <option disabled> </option>
+ {html_options values=$gotoShareSelectionKeys output=$gotoShareSelections}
+ <option disabled> </option>
</select>
<input type="text" size=15 {$gotoShareACL} name="gotoShareMountPoint" value="{t}Mountpoint{/t}">
<input type="submit" {$gotoShareACL} name="gotoShareAdd" value="{t}Add{/t}">
</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>
<!-- // First input field on page
document.mainform.gotoLdapServer.focus();
-->
<!-- // First input field on page
document.mainform.gotoLdapServer.focus();
-->
+</script>