summaryrefslogtreecommitdiffstats
path: root/idp/extra/modules/identities_ui.ptl
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@0d.be>2008-01-21 15:56:34 (GMT)
committerFrederic Peters <fpeters@0d.be>2008-01-21 15:56:34 (GMT)
commit1bcb56a58b632320f72ea65d1ce19e52d07b12c7 (patch)
tree087b1405edf7594396a659d0b8c7de121e3a338e /idp/extra/modules/identities_ui.ptl
parentda13eade954653da183b0c2e82d28f2491dfbbc4 (diff)
downloadpratic-1bcb56a58b632320f72ea65d1ce19e52d07b12c7.zip
pratic-1bcb56a58b632320f72ea65d1ce19e52d07b12c7.tar.gz
pratic-1bcb56a58b632320f72ea65d1ce19e52d07b12c7.tar.bz2
delete agent
Diffstat (limited to 'idp/extra/modules/identities_ui.ptl')
-rw-r--r--idp/extra/modules/identities_ui.ptl3
1 files changed, 2 insertions, 1 deletions
diff --git a/idp/extra/modules/identities_ui.ptl b/idp/extra/modules/identities_ui.ptl
index dbee3eb..8406f16 100644
--- a/idp/extra/modules/identities_ui.ptl
+++ b/idp/extra/modules/identities_ui.ptl
@@ -114,6 +114,7 @@ class AgentDirectory(Directory):
'<h2>%s</h2>' % _('Deleting Agent: %s') % self.agent.cn
form.render()
else:
+ self.agent.delete()
return redirect('..')
def password [html] (self):
@@ -184,7 +185,7 @@ class IdentitiesDirectory(Directory):
'<p class="commands">'
command_icon('%s/' % agent.username, 'view')
command_icon('%s/edit' % agent.username, 'edit')
- command_icon('%s/delete' % agent.username, 'remove')
+ command_icon('%s/delete' % agent.username, 'remove', popup = True)
'</p></li>'
'</ul>'
if user.is_admin():