Code

Added new filterEditor
[gosa.git] / gosa-core / ihtml / themes / modern / filterEditorEntry.tpl
1 <h3>{t}Filter editor{/t}</h3>
3 <hr>
5 <table summary="{t}Filter editor{/t}" width="100%">
6   <tr>
7     <td style='vertical-align: top; width:40%;'>
8       <table summary='{t}Filter properties{/t}'>
9         <tr>
10           <td>
11             <label for='name'>{t}Name{/t}</label>
12           </td>
13           <td>
14             <input type='text' name='name' id='name' value='{$name}'>
15           </td>   
16         </tr>
17         <tr>
18           <td>
19             <label for='description'>{t}Description{/t}</label>
20           </td>
21           <td>
22             <input type='text' name='description' id='description' value='{$description}'>
23           </td>   
24         </tr>
25       </table>  
26     
27       <br>
28       
29       <input type='checkbox' name='shareFilter' value='1' {if $share} checked {/if}>
30        {t}Share this filter with others{/t}              
31     </td>
32     <td style='vertical-align: top;'>
33       <label for='usedCategory'>{t}The categories this filter is displayed for{/t}</label><br>
34       <select id='usedCategory' name='usedCategory[]' size='4' multiple style='width:100%;'>
35         {html_options options=$selectedCategories}
36       </select>
37       <br>
38       <select id='availableCategory' name='availableCategory'
39         onChange="$('manualCategory').value=$('availableCategory').options[$('availableCategory').selectedIndex].value"> 
40         <option value=''>&nbsp;</option>
41         {html_options values=$availableCategories output=$availableCategories}
42       </select>
43       <input type='text' id='manualCategory' name='manualCategory' value=''>
44       <button type='submit' name='addCategory'>{msgPool type='addButton'}</button>
45       <button type='submit' name='delCategory'>{msgPool type='delButton'}</button>
46     </td>
47   </tr>
48 </table>
50 <hr>
52 <textarea name='filter' id='filter' cols="0" style='width:100%; height: 100px;'>{$filter}</textarea>
54 <hr>
56 <input type='hidden' value='1' name='filterEditorEntry'>
58 <div class="plugin-actions">
59   <button type='submit' name='saveFilterSettings'>{msgPool type='saveButton'}</button>
60   <button type='submit' name='cancelFilterSettings'>{msgPool type='cancelButton'}</button>
61 </div>