- Timestamp:
- 09/28/12 08:08:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/NetHosts.pm
r1087 r1162 69 69 $base->rollback; 70 70 } 71 } elsif ($c->req->param('delete')) { 72 if ($base->delete_object('nethost', $nethostname)) { 73 $base->commit; 74 $c->res->redirect('/nethosts'); 75 } else { 76 $base->rollback; 77 } 71 } elsif ($c->req->param('make_active')) { 72 $c->stash->{nethost}->set_c_fields('exported' => 1); 73 $base->commit; 74 } 75 elsif ($c->req->param('make_inactive')) { 76 $c->stash->{nethost}->set_c_fields('exported' => 0); 77 $base->commit; 78 } 79 elsif ($c->req->param('delete')) { 80 $base->delete_object('nethost', $nethostname); 81 $base->commit; 82 $c->res->redirect('/nethosts'); 83 78 84 } else { 79 85 $c->stash->{form}->set_attrs;
Note: See TracChangeset
for help on using the changeset viewer.