Line | |
---|
1 | [% otype = c.req.param('otype') || 'user' %] [% # Default value %] |
---|
2 | |
---|
3 | <form action="[% c.uri_for('/search', 'adv') %]"> |
---|
4 | <select name=otype id=otype onChange="new Ajax.Updater( 'search_form', |
---|
5 | 'http://localhost:8080/ajax/search_adv', { parameters: |
---|
6 | 'otype='+value,asynchronous: 1 } )"> |
---|
7 | [% FOREACH totype = ['user', 'group', 'nethost', 'aliases' ] %] |
---|
8 | <option value="[% totype %]"[% " selected" IF totype == otype %]>[% totype %]</option> |
---|
9 | [% END %] |
---|
10 | </select> |
---|
11 | |
---|
12 | [% ofilter = c.model('AttrFilter', otype) %] |
---|
13 | |
---|
14 | <div id="search_form"> |
---|
15 | [% INCLUDE 'ajax/search_adv.tt' %] |
---|
16 | </div> |
---|
17 | |
---|
18 | <input type=submit> |
---|
19 | </form> |
---|
20 | |
---|
21 | [% INCLUDE 'includes/list_objects.tt' %] |
---|
Note: See
TracBrowser
for help on using the repository browser.