Code

Some template updates
[gosa.git] / include / sieve / templates / element_envelope.tpl
1 <table class='sieve_test_case'>
2         {if $Expert}
3         {if $LastError != ""}
4                 <tr>
5                                 <td colspan=4>
6                             <font color='red'><b>{$LastError}</b></font>
7                                 </td>
8                         </tr>
10         {/if}
12         <tr>
13                 <td>
14                         {t}Match type{/t}
15                 </td>
16                 <td>
17                         <select name='matchtype_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'> 
18                                 {html_options options=$match_types selected=$match_type}
19                         </select>
21                 </td>
22                 <td>
23                         {t}Invert test{/t}?
24                 </td>
25                 <td>
26                         {if $Inverse}
27                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Yes{/t}'>
28                         {else}
29                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}No{/t}'>
30                         {/if}
31                 </td>
32                 <td style='text-align:right; vertical-align:top;'>
33                         <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Normal mode{/t}'>
34                 </td>
35         </tr>
36         <tr>
37                 <td>
38                         {t}Comparator{/t}
39                 </td>
40                 <td>
41                         <select name='comparator_{$ID}' title='{t}Boolean value{/t}'> 
42                                 {html_options options=$comparators selected=$comparator}
43                         </select>
44                 </td>
45                 {if $match_type == ":count" || $match_type == ":value"}
46                 <td>
47                         {t}operator{/t}
48                 </td>
49                 <td>
50                         <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
51                                 {html_options options=$operators selected=$operator}
52                         </select>
53                 </td>
54                 {else}
55                 <td style='text-align:right;'>
56                         &nbsp;
57                 </td>
58                 {/if}
59                 <td style='text-align:right;'>
60                         &nbsp;
61                 </td>
62         </tr>
63         <tr>
64                 <td>
65                         {t}Address fields to include{/t}
66                 </td>
67                 <td>
68                         <textarea style='width:95%;height:50px;' name='keys_{$ID}'>{$keys}</textarea>
69                 </td>
70                 <td>
71                         {t}Values to match for{/t}
72                 </td>
73                 <td>
74                         <textarea style='width:95%;height:50px;' name='values_{$ID}'>{$values}</textarea>
75                 </td>
76         </tr>
77         {else}
78         {if $LastError != ""}
79                 <tr>
80                                 <td colspan=4>
81                             <font color='red'><b>{$LastError}</b></font>
82                                 </td>
83                         </tr>
85         {/if}
86         <tr>
87                 <td style='vertical-align:top;'>
88                         <b>{t}Envelope{/t}</b>
89                 
90                         {if $Inverse}
91                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}Not{/t}'>
92                         {else}
93                                 <input type='submit' name='toggle_inverse_{$ID}' value='{t}-{/t}'>
94                         {/if}
95                         &nbsp;
96                         <select onChange='document.mainform.submit();' name='matchtype_{$ID}' title='{t}Boolean value{/t}'> 
97                                 {html_options options=$match_types selected=$match_type}
98                         </select>
100                         {if $match_type == ":count" || $match_type == ":value"}
101                         <select name='operator_{$ID}' title='{t}Boolean value{/t}' onChange='document.mainform.submit();'>
102                                 {html_options options=$operators selected=$operator}
103                         </select>
104                         {/if}
105                 </td>
106                 <td>
107                         <textarea style='width:45%;height:20px;' name='keys_{$ID}'>{$keys}</textarea>
108                         <textarea style='width:45%;height:20px;' name='values_{$ID}'>{$values}</textarea>
109                 </td>
110                 <td style='text-align:right; vertical-align:top;'>
111                         <input type='submit' name='Toggle_Expert_{$ID}' value='{t}Expert mode{/t}'>
112                 </td>
113         </tr>
114         {/if}
115 </table>