diff options
author | Zach Copley <zach@status.net> | 2010-02-02 06:26:03 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-02 08:50:18 +0000 |
commit | f0875ceea1bd6940bb30deab0f6a0f38a752a2c6 (patch) | |
tree | 27d37390841ca8e5c7ae03689c3eff3e78360fa0 /actions/showapplication.php | |
parent | df2a08126510445f93eddbebc0551ee44c945fd5 (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 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'); |