Code

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