diff options
author | Zach Copley <zach@status.net> | 2010-02-02 06:26:03 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-02 06:26:03 +0000 |
commit | 38bebb4c0dbdf7452a55cc46bbb4a80ec55dcabe (patch) | |
tree | 825454e404416decf95a887dd2fc00a73d36b64c /actions/showapplication.php | |
parent | 59d16cf16ac75e18431dfd5452c748e880dafefd (diff) |
Allow developers to delete OAuth applications
Diffstat (limited to 'actions/showapplication.php')
-rw-r--r-- | actions/showapplication.php | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/actions/showapplication.php b/actions/showapplication.php index a6ff425c7..d307ea452 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'); |