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>{$must}
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>{$must}
20 </td>
21 <td>
22 <input type='text' name='description' id='description' value='{$description}'>
23 </td>
24 </tr>
25 <tr>
26 <td>
27 <label for='parent'>{t}Extension for the base filter{/t}</label>
28 </td>
29 <td>
30 <select name='parent'>
31 {html_options values=$fixedFilters output=$fixedFilters selected=$parent}
32 </select>
33 </td>
34 </tr>
35 </table>
37 <br>
39 <input type='checkbox' name='shareFilter' value='1' {if $share} checked {/if}>
40 {t}Public visible{/t}
42 <br>
44 <input type='checkbox' name='enableFilter' value='1' {if $enable} checked {/if}>
45 {t}Enabled{/t}
47 </td>
48 <td style='vertical-align: top;'>
49 <label for='usedCategory'>{t}This filter affects the following categories{/t}</label><br>
50 <select id='usedCategory' name='usedCategory[]' size='4' multiple style='width:100%;'>
51 {html_options options=$selectedCategories}
52 </select>
53 <br>
54 <select id='availableCategory' name='availableCategory'
55 onChange="$('manualCategory').value=$('availableCategory').options[$('availableCategory').selectedIndex].value">
56 <option value=''> </option>
57 {html_options values=$availableCategories output=$availableCategories}
58 </select>
59 <input type='text' id='manualCategory' name='manualCategory' value=''>
60 <button type='submit' name='addCategory'>{msgPool type='addButton'}</button>
61 <button type='submit' name='delCategory'>{msgPool type='delButton'}</button>
62 </td>
63 </tr>
64 </table>
66 <hr>
68 <textarea name='filter' id='filter' cols="0" style='width:100%; height: 100px;'>{$filter}</textarea>
70 <hr>
72 <input type='hidden' value='1' name='userFilterEditor'>
74 <div class="plugin-actions">
75 <button type='submit' name='saveFilterSettings'>{msgPool type='saveButton'}</button>
76 <button type='submit' name='cancelFilterSettings'>{msgPool type='cancelButton'}</button>
77 </div>