summaryrefslogtreecommitdiff
path: root/actions/showapplication.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-02-02 06:26:03 +0000
committerZach Copley <zach@status.net>2010-02-05 03:18:43 +0000
commite495ac356c10a6abc0e10c81892830b5e198ef60 (patch)
tree1a0b321221a7ddaf38132d057bb1f02b8f39e61e /actions/showapplication.php
parentdc183f23cf3bd8e0fbd604ad2af4b12f77837bf2 (diff)
Allow developers to delete OAuth applications
Diffstat (limited to 'actions/showapplication.php')
-rw-r--r--actions/showapplication.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/actions/showapplication.php b/actions/showapplication.php
index 090e11882..020d62480 100644
--- a/actions/showapplication.php
+++ b/actions/showapplication.php
@@ -222,18 +222,33 @@ class ShowApplicationAction extends OwnerDesignAction
$this->elementStart('li', 'entity_reset_keysecret');
$this->elementStart('form', array(
- 'id' => 'forma_reset_key',
+ 'id' => 'form_reset_key',
'class' => 'form_reset_key',
'method' => 'POST',
'action' => common_local_url('showapplication',
array('id' => $this->application->id))));
-
$this->elementStart('fieldset');
$this->hidden('token', common_session_token());
$this->submit('reset', _('Reset key & secret'));
$this->elementEnd('fieldset');
$this->elementEnd('form');
$this->elementEnd('li');
+
+ $this->elementStart('li', 'entity_delete');
+ $this->elementStart('form', array(
+ 'id' => 'form_delete_application',
+ 'class' => 'form_delete_application',
+ 'method' => 'POST',
+ 'action' => common_local_url('deleteapplication',
+ array('id' => $this->application->id))));
+
+ $this->elementStart('fieldset');
+ $this->hidden('token', common_session_token());
+ $this->submit('delete', _('Delete'));
+ $this->elementEnd('fieldset');
+ $this->elementEnd('form');
+ $this->elementEnd('li');
+
$this->elementEnd('ul');
$this->elementEnd('div');