Changeset 1107 for trunk/LATMOS-Accounts-Web
- Timestamp:
- 08/07/12 18:26:33 (12 years ago)
- Location:
- trunk/LATMOS-Accounts-Web
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/MANIFEST
r1084 r1107 55 55 root/html/ajax/set_attrs.tt 56 56 root/html/ajax/user_to_group_form.tt 57 root/html/ajax/select_objects_list.tt 57 58 root/html/aliases/default.tt 58 59 root/html/aliases/index.tt … … 75 76 root/html/includes/obj_prev_next.tt 76 77 root/html/includes/sidebar.tt 78 root/html/includes/select_objects_list.tt 77 79 root/html/login.tt 78 80 root/html/logout.tt -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Ajax.pm
r1081 r1107 185 185 } 186 186 187 sub select_objects_list : Local { 188 my ($self, $c, $otype) = @_; 189 $c->stash->{ofilter} = $c->model('AttrFilter', $otype); 190 } 191 187 192 sub end : Private { 188 193 my ( $self, $c ) = @_; -
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Request.pm
r982 r1107 42 42 if ($accreq->get_attributes('requireObject')) { 43 43 if (!$obj) { 44 $c->stash->{ofilter} = $c->model('AttrFilter', $otype); 44 45 $c->stash->{select_object} = 1; 45 46 return; -
trunk/LATMOS-Accounts-Web/root/html/request/default.tt
r971 r1107 5 5 [% IF select_object %] 6 6 <form action="[% c.uri_for('/request', accreq.id) %]"> 7 <select name="obj" id="obj"> 8 <option value="">--</option> 9 [% FOREACH objname = c.model('accounts').db.list_objects(accreq.get_attributes('oType')) %] 10 <option value="[% objname | html %]">[% objname | html %]</option> 11 [% END %] 12 </select> 7 <input name=q value="[% c.req.param('q') | html %]" id="q"><br> 8 9 <span style="display:none" id="list_objects_ind">Searching...</span> 10 [% c.prototype.observe_field('q', { 11 url => c.uri_for('/ajax', 'select_objects_list', ofilter.otype), 12 with => "'q='+value", 13 update => 'list_objects', 14 frequency => 1, 15 before => "document.getElementById('list_objects_ind').style.display='block';", 16 loaded => "document.getElementById('list_objects_ind').style.display='none';", 17 }) %] 18 19 <div id="list_objects"> 20 [% INCLUDE 'includes/select_objects_list.tt' %] 21 </div> 13 22 14 23 [% c.prototype.observe_field( 'obj',
Note: See TracChangeset
for help on using the changeset viewer.