Changeset 518
- Timestamp:
- 10/23/09 18:33:32 (15 years ago)
- Location:
- LATMOS-Accounts-Web
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/Aliases.pm
r516 r518 29 29 my @name = $c->req->param('name'); 30 30 my @forward = $c->req->param('forward'); 31 foreach my $idx (0 .. scalar(@ al) - 1) {31 foreach my $idx (0 .. scalar(@name) - 1) { 32 32 33 33 if ($c->req->param('del' . ($idx+1))) { … … 35 35 } elsif ($al[$idx] ne $name[$idx]) { 36 36 # delete old, create new 37 $db->delete_object('aliases', $al[$idx]) ;37 $db->delete_object('aliases', $al[$idx]) if($al[$idx]); 38 38 $db->create_object('aliases', $name[$idx], 39 39 forward => [ split(/\s*,\s*/, $forward[$idx]) ], -
LATMOS-Accounts-Web/root/html/aliases/index.tt
r517 r518 1 1 <div style="border: outset; padding: 0.5em;"> 2 <table border=1> 3 <tr><td valign="top"> 2 4 <form action="[% c.uri_for() %]" method="POST"> 3 Filtre: 5 <p>Filtre:</p> 4 6 <input type="text" name="filter" value="[% c.req.param('filter') | html %]"><br> 5 7 <input type="submit"> 6 8 </form> 9 </td> 10 <td valign="top"> 11 <p>Créer un alias</p> 12 <form action="[% c.uri_for() %]" method="POST"> 13 <input type="hidden" name="filter" value="[% c.req.param('filter') | html %]"> 14 <input type="text" name="name" id="newal"> 15 <span style="display:none" id="newalind">Searching...</span> 16 <span id="span_newval"></span><br> 17 [% c.prototype.observe_field('newal', { 18 url => c.uri_for('/ajax', 'objexist', 'aliases'), 19 with => "'val='+value+ '&attr=forward'", 20 update => 'span_newval', 21 frequency => 1, 22 min_chars => 1, 23 indicator => 'newalind', 24 }) %] 25 <br> 26 <input type="text" name="forward"><br> 27 <input type="submit"> 28 </form> 29 </td></tr> 30 </table> 7 31 </div> 8 32
Note: See TracChangeset
for help on using the changeset viewer.