diff options
author | Zach Copley <zach@status.net> | 2010-02-02 08:48:52 +0000 |
---|---|---|
committer | Zach Copley <zach@status.net> | 2010-02-02 08:48:52 +0000 |
commit | 2be00ce64221197f3c8ad1458eba2488c8836e5c (patch) | |
tree | b3fd0ee62c631f53b2c8670ec1f109283b2d6b34 /actions/showapplication.php | |
parent | 952b5806987e12a34e6fd75509b5d78815c1aa2d (diff) | |
parent | 5e90f744a6fb58c43f8f5332ef868ba38e82b3d1 (diff) |
Merge branch 'oauth-continued' into 0.9.x
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'); |