Code

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