Code

Updated buttons
[gosa.git] / gosa-plugins / gofon / gofon / phoneaccount / generic.tpl
1 <table summary="{t}Phone numbers{/t}" style="width:100%">
2  <tr>
3   <td style="vertical-align:top; border-right:1px solid #A0A0A0; width:50%">
4    <h3>
5     <img class="center" alt="" align="middle" src="plugins/gofon/images/banana.png" />
6     &nbsp;{t}Phone numbers{/t}
7    </h3>
9 {if $multiple_support}
11    <select style="width:100%;" name="dummy1" size=7 >
12     {html_options options=$phoneNumbers}
13     <option disabled>&nbsp;</option>
14    </select>
16 {else}
18 {render acl=$telephoneNumberACL}
19    <select style="width:100%;" name="phonenumber_list[]" size=7 multiple>
20     {html_options options=$phoneNumbers}
21     <option disabled>&nbsp;</option>
22    </select>
23 {/render}
24    <br>
25 {render acl=$telephoneNumberACL}
26    <input type='text' name="phonenumber" size=20 align=middle maxlength=60 value="">
27 {/render}
28 {render acl=$telephoneNumberACL}
29    <button type='submit' name='add_phonenumber'>{msgPool type=addButton}</button>&nbsp;
31 {/render}
32 {render acl=$telephoneNumberACL}
33       <button type='submit' name='delete_phonenumber'>{msgPool type=delButton}</button>
35 {/render}
37 {/if}
38   </td>
39   <td style="vertical-align:top; width:50%;">
40    <table summary="" style="width:100%" border=0>
41  <tr>
43   <td style="vertical-align:top;">
44    <h3>{t}Telephone hardware{/t}</h3>
46       <table summary="{t}Telephone{/t}" border=0>
47            {if !$multiple_support}
48        <tr>
49         <td>
50                         {t}Telephone{/t}
51                 </td>
52         <td>
53                 {render acl=$goFonHardwareACL checkbox=$multiple_support checked=$use_goFonHardware}
54                         {$hardware_list}
55                 {/render}
56                 </td>
57        </tr>
58            {/if}
59        <tr>
60         <td>{t}Home server{/t}{$must}
61         </td>
62         <td>
63 {render acl=$goFonHomeServerACL checkbox=$multiple_support checked=$use_goFonHomeServer}
64          <select name='goFonHomeServer' title='{t}Select the accounts home server{/t}'>
65           {html_options options=$goFonHomeServers selected=$goFonHomeServer}
66          </select>
67 {/render}
68         </td>
69       </tr>
70     <tr>
71      <td>{t}Context{/t}
72      </td>
73      <td>
74 {render acl=$goFonContextACL checkbox=$multiple_support checked=$use_goFonContext}
75       <select name='context' title='{t}Select the accounts context{/t}'>
76         {html_options values=$sip_contexts output=$sip_contexts selected=$context}
77       </select>
78 {/render}
79      </td>
80     </tr>
81     <tr>
82      <td>{t}Voicemail context{/t}
83      </td>
84      <td>
85 {render acl=$goFonVoiceMailContextACL checkbox=$multiple_support checked=$use_goFonVoiceMailContext}
86       <select name='voice_context' title='{t}Select the accounts context{/t}'>
87         {html_options values=$voicemail_contexts output=$voicemail_contexts selected=$voice_context}
88       </select>
89 {/render}
90      </td>
91     </tr>
93       <tr>
94        <td>
95         <label for="goFonVoicemailPIN">{t}Voicemail PIN{/t}{$must}</label>
96        </td>
97        <td>
98 {render acl=$goFonVoicemailPINACL checkbox=$multiple_support checked=$use_goFonVoicemailPIN}
99         <input type="password" id="goFonVoicemailPIN" name="goFonVoicemailPIN" value="{$goFonVoicemailPIN}">
100 {/render}
101       </td>
102       </tr>
103       <tr>
104        <td>
105         <label for="goFonPIN">{t}Phone PIN{/t}{$must}</label>
106        </td>
107        <td>
108 {render acl=$goFonPINACL checkbox=$multiple_support checked=$use_goFonPIN}
109         <input type="password" id="goFonPIN" name="goFonPIN" value="{$goFonPIN}">
110 {/render}
111       </td>
112       </tr>
113       </table>
114      </td>
115     </tr>
116    </table>
117   </td>
119  </tr>
120  <tr>
121  <td style="vertical-align:top; border-top:1px solid #A0A0A0; width:50%" colspan="2">&nbsp;</td>
122  </tr>
123  <tr style="vertical-align:top; border-top:1px solid #A0A0A0;">
124  <td colspan=2 style="vertical-align:top;width:50%">
125   <h3>
126    <img class="center" alt="" src="plugins/gofon/images/select_macro.png" align="middle" />
127    &nbsp;{t}Phone macro{/t}
128   </h3>
129   <table summary="{t}Phone macro{/t}">
130    <tr>
131     <td colspan=2>
132 {render acl=$goFonMacroACL  checkbox=$multiple_support checked=$use_macro}
133      <select id="macro" name="macro" onchange="document.mainform.submit()">
134       {html_options options=$macros selected=$macro}
135       <option disabled>&nbsp;</option>
136      </select>
137 {/render}
138      {if $javascript eq 'false'}
139 {render acl=$goFonMacroACL}
140       <button type='submit' name='refresh'>{t}Refresh{/t}</button>
142 {/render}
143      {/if}
144     </td>
145    </tr>
146   </table>
147   <br>
148   {$macrotab}
149  </td>
150  </tr>
151 </table>
152 <input type="hidden" name="phoneTab" value="phoneTab">
155 <script language="JavaScript" type="text/javascript">
156   <!-- // First input field on page
157         focus_field('phonenumber');
158   -->
159 </script>