index fe4fca7a28aba3de32cb8882a2c063770057ba3f..677297a6337b93e2e2a950dcb924443cd188a1bc 100644 (file)
-<h2><img alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
-<table style="width:100%;">
+<h2><img class="center" alt="" align="middle" src="images/rightarrow.png"> {t}Properties{/t}</h2>
+<table summary="" style="width:100%;">
<tr>
<td style="width:50%; vertical-align:top;">
<tr>
<td style="width:50%; vertical-align:top;">
-
- <table>
+ <table summary="">
<tr>
{if $cn eq 'default'}
<td colspan=2>{t}Terminal template{/t}</td>
{else}
<tr>
{if $cn eq 'default'}
<td colspan=2>{t}Terminal template{/t}</td>
{else}
- <td>{t}Terminal name{/t}{$must}</td>
+ <td><LABEL for="cn">{t}Terminal name{/t}</LABEL>{$must}</td>
<td>
<td>
- <input name="cn" size=18 maxlength=60 value="{$cn}">
+ <input name="cn" id="cn" size=18 maxlength=60 value="{$cn}" {$cnACL}>
</td>
{/if}
</tr>
<tr>
</td>
{/if}
</tr>
<tr>
- <td>{t}Base{/t}{$must}</td>
+ <td><LABEL for="base">{t}Base{/t}</LABEL>{$must}</td>
<td>
<td>
- <select size="1" name="base" title="{t}Choose subtree to place terminal in{/t}">
+ <select size="1" id="base" name="base" title="{t}Choose subtree to place terminal in{/t}" {$baseACL}>
{html_options options=$bases selected=$base_select}
</select>
{html_options options=$bases selected=$base_select}
</select>
+ {if $baseACL == ""}
+ <input type="image" name="chooseBase" src="images/folder.png" class="center" title="{t}Select a base{/t}">
+ {else}
+ <img src="images/folder_gray.png" class="center" title="{t}Select a base{/t}">
+ {/if}
+ </td>
</tr>
</table>
</tr>
</table>
-
</td>
</td>
-
- <td rowspan=2 style="border-left:1px solid #A0A0A0">
-
- </td>
-
- <td style="vertical-align:top;">
-
- <table>
+ <td style="vertical-align:top;border-left:1px solid #A0A0A0;" >
+ <table summary="">
<tr>
<tr>
- <td>{t}Mode{/t}</td>
+ <td><LABEL for="gotoMode">{t}Mode{/t}</LABEL></td>
<td>
<td>
- <select name="gotoMode" title="{t}Select terminal mode{/t}" {$gotoModeACL}>
+ <select id="gotoMode" name="gotoMode" title="{t}Select terminal mode{/t}" {$gotoModeACL}>
{html_options options=$modes selected=$gotoMode_select}
</select>
</td>
</tr>
{html_options options=$modes selected=$gotoMode_select}
</select>
</td>
</tr>
- </table>
-
+ <tr>
+ <td><LABEL for="gotoSyslogServer">{t}Syslog server{/t}</LABEL></td>
+ <td>
+ <select name="gotoSyslogServer" id="gotoSyslogServer" title="{t}Choose server to use for logging{/t}" {$gotoSyslogServerACL}>
+ {html_options options=$syslogservers selected=$gotoSyslogServer_select}
+ </select>
+ </td>
+ </tr>
+ </table>
</td>
</tr>
</td>
</tr>
+</table>
+<p class="seperator" style="margin:0px; padding:0px;"> </p>
+<table style="width:100%;">
<tr>
<tr>
- <td style="width:50%;">
- <table>
- <tr><td colspan=2><div style="height:15px;"></div></td></tr>
+ <td style="width:50%;vertical-align:top;">
+ <table summary="">
<tr>
<tr>
- <td>{t}Root server{/t}</td>
+ <td><LABEL for="gotoTerminalPath">{t}Root server{/t}</LABEL></td>
<td>
<td>
- <select name="gotoTerminalPath" title="{t}Select NFS root filesystem to use{/t}" {$gotoTerminalPathACL}>
- {html_options values=$nfsservers output=$nfsservers selected=$gotoTerminalPath_select}
+ <select name="gotoTerminalPath" id="gotoTerminalPath" title="{t}Select NFS root filesystem to use{/t}" {$gotoTerminalPathACL}>
+ {html_options options=$nfsservers selected=$gotoTerminalPath_select}
</select>
</td>
</tr>
<tr>
</select>
</td>
</tr>
<tr>
- <td>{t}Swap server{/t}</td>
+ <td><LABEL for="gotoSwapServer">{t}Swap server{/t}</LABEL></td>
<td>
<td>
- <select name="gotoSwapServer" title="{t}Choose NFS filesystem to place swap files on{/t}" {$gotoSwapServerACL}>
- {html_options values=$nfsservers output=$nfsservers selected=$gotoSwapServer_select}
+ <select name="gotoSwapServer" id="gotoSwapServer" title="{t}Choose NFS filesystem to place swap files on{/t}" {$gotoSwapServerACL}>
+ {html_options options=$nfsservers selected=$gotoSwapServer_select}
</select>
</td>
</tr>
</table>
</td>
</select>
</td>
</tr>
</table>
</td>
- <td style="vertical-align:top;">
-
- <table>
- <tr><td colspan=2><div style="height:15px;"></div></td></tr>
+ <td style="border-left:1px solid #A0A0A0;">
+ <table width="100%">
<tr>
<tr>
- <td>{t}Syslog server{/t}</td>
- <td>
- <select name="gotoSyslogServer" title="{t}Choose server to use for logging{/t}" {$gotoSyslogServerACL}>
- {html_options values=$syslogservers output=$syslogservers selected=$gotoSyslogServer_select}
+ <td colspan="2">
+ <input type="checkbox" value="1" name="inheritTimeServer" {$gotoNtpServerACL}
+ {if $inheritTimeServer } checked {/if}
+ onClick="javascript:
+ changeState('gotoNtpServerSelected');
+ changeState('gotoNtpServers');
+ changeState('addNtpServer');
+ changeState('delNtpServer');">{t}Inherit time server attributes{/t}
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style='padding-left:14px;padding-top:5px;'><LABEL for="gotoNtpServerSelected">{t}NTP server{/t}</LABEL><br>
+ <select name="gotoNtpServerSelected[]" id="gotoNtpServerSelected" multiple size=5 style="width:100%;"
+ title="{t}Choose server to use for synchronizing time{/t}" {$gotoNtpServerACL} {if $inheritTimeServer} disabled {/if}>
+ {html_options options=$gotoNtpServer_select}
</select>
</select>
- </td>
- </tr>
- <tr>
- <td>{t}NTP server{/t}</td>
- <td>
- <select name="gotoNtpServer" title="{t}Choose server to use for synchronizing time{/t}" {$gotoNtpServerACL}>
- {html_options values=$ntpservers output=$ntpservers selected=$gotoNtpServer_select}
+ <br>
+ <select name="gotoNtpServers" id="gotoNtpServers" {$gotoNtpServerACL} {if $inheritTimeServer} disabled {/if} >
+ {html_options values=$ntpservers output=$ntpservers }
</select>
</select>
+ <input type="submit" name="addNtpServer" value="{t}Add{/t}" id="addNtpServer" {$gotoNtpServerACL}
+ {if $inheritTimeServer} disabled {/if}>
+ <input type="submit" name="delNtpServer" value="{t}Delete{/t}" id="delNtpServer" {$gotoNtpServerACL}
+ {if $inheritTimeServer} disabled {/if}>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
-<p class="plugbottom" style="margin-bottom:0px; padding:0px;"> </p>
-{include file="$netconfig"}
+{if $cn neq 'default'}
+<p class="plugbottom" style="margin-bottom:0px; padding:0px;"> </p>
+{$netconfig}
+{/if}
+{if $fai_activated}
<p class="plugbottom" style="margin-bottom:0px; padding:0px;"> </p>
<p class="plugbottom" style="margin-bottom:0px; padding:0px;"> </p>
-<h2><img alt="" align="middle" src="images/rocket.png"> {t}Action{/t}</h2>
-<table>
+<h2><img class="center" alt="" align="middle" src="images/rocket.png"> {t}Action{/t}</h2>
+<table summary="">
<tr>
<td>
<select size="1" name="saction" {$actionACL} title="{t}Select action to execute for this terminal{/t}">
<tr>
<td>
<select size="1" name="saction" {$actionACL} title="{t}Select action to execute for this terminal{/t}">
- <option></option>
+ <option disabled> </option>
{html_options options=$actions}
</select>
</td>
{html_options options=$actions}
</select>
</td>
</td>
</tr>
</table>
</td>
</tr>
</table>
+{/if}
-
+<input type="hidden" name="termgeneric_posted" value="1">
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
<!-- Place cursor -->
<script language="JavaScript" type="text/javascript">
<!-- // First input field on page
- document.mainform.gotoTerminalName.focus();
+ focus_field('cn');
-->
</script>
-->
</script>