Code

Hide take over option if there is no dhcp configuration to take over.
[gosa.git] / plugins / admin / systems / servdhcp.tpl
1 {if $dns_take_over}
2 <table summary="" width="100%">
3         <tr>
4                 <td style="width:100%;vertical-align:top;">
5                         <h2>{t}DHCP take over initiated{/t}</h2>
6                         {$warning}
7                         {t}This includes 'all' DHCP subsections that are located within this server. Please double check if your really want to do this.{/t}
8                         <p>
9                         {$warning2}
10                         <br>
11                         <input type='submit' name='cancel_take_over' value='{t}Cancel{/t}'>
12                         </p>
13                         <p>
14                         {t}Following objects will be taken over{/t}&nbsp;:
15                         </p>
16                         <p>
17                         <pre>{$info}</pre>
18                         </p>
19                 </td>
20         </tr>
21 </table>
22 {else}
23 <table summary="" width="100%">
24 {if $dhcp_server_list_cnt}
25 <tr>
26         <td style="width:100%;vertical-align:top;">
27                 <b>{t}Take over dhcp configuration from following server{/t}</b>&nbsp;
28                 <select name='take_over_src'>
29                         {html_options options=$dhcp_server_list}
30                 </select>
31                 <input type="submit" name="take_over" value="{t}Apply{/t}">
32         </td>
33 </tr>
34 {/if}
35 <tr>
36         <td style="width:100%;vertical-align:top;">
37         <h2>{t}DHCP sections{/t}</h2>
38                 {$DhcpList}
39 <!--            <input type="submit" name="takeOver" value="{t}Take over{/t}" {$dhcpACL}>-->
40         </td>
41 </tr>
42 </table>
43 {/if}