diff options
author | Christian Vogeley <christian.vogeley@hotmail.de> | 2014-06-29 22:19:45 +0200 |
---|---|---|
committer | Christian Vogeley <christian.vogeley@hotmail.de> | 2014-06-29 22:19:45 +0200 |
commit | eb41b0ba7c2df138ce5c33bdd65d3c80ba9ca50e (patch) | |
tree | 0500342359d6840600454e0bf05fe528f8541255 | |
parent | 628f1218049715c8acf953dbda8f902b3902cc2f (diff) | |
download | volse-hubzilla-eb41b0ba7c2df138ce5c33bdd65d3c80ba9ca50e.tar.gz volse-hubzilla-eb41b0ba7c2df138ce5c33bdd65d3c80ba9ca50e.tar.bz2 volse-hubzilla-eb41b0ba7c2df138ce5c33bdd65d3c80ba9ca50e.zip |
Remove Remove Account link from account settings
because it doesn’t remove the account. Move channel removal link to
channel page
-rw-r--r-- | mod/settings.php | 4 | ||||
-rwxr-xr-x | view/tpl/settings.tpl | 4 | ||||
-rwxr-xr-x | view/tpl/settings_account.tpl | 4 |
3 files changed, 7 insertions, 5 deletions
diff --git a/mod/settings.php b/mod/settings.php index c72fdc8c4..7a63e5fc4 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -994,7 +994,9 @@ function settings_content(&$a) { '$hint' => t('Please enable expert mode (in <a href="settings/features">Settings > Additional features</a>) to adjust!'), '$lbl_misc' => t('Miscellaneous Settings'), '$menus' => $menu, - '$menu_desc' => t('Personal menu to display in your channel pages'), + '$menu_desc' => t('Personal menu to display in your channel pages'), + '$removeme' => t('Remove this channel'), + '$permanent' => t('Warning: This action is permanent and cannot be reversed.'), )); call_hooks('settings_form',$o); diff --git a/view/tpl/settings.tpl b/view/tpl/settings.tpl index 1fef255f0..89c05b75f 100755 --- a/view/tpl/settings.tpl +++ b/view/tpl/settings.tpl @@ -135,6 +135,8 @@ </div> <div id="settings-channel-menu-end"></div> {{/if}} - +<div id="settings-remove-account-link"> +<button title="{{$permanent}}" class="btn btn-danger" type="submit" formaction="removeme">{{$removeme}}</button> +</div> </div> diff --git a/view/tpl/settings_account.tpl b/view/tpl/settings_account.tpl index fcddb3f86..169516f08 100755 --- a/view/tpl/settings_account.tpl +++ b/view/tpl/settings_account.tpl @@ -2,9 +2,7 @@ <h1>{{$title}}</h1> -<div id="settings-remove-account-link"> -<a href="removeme" title="{{$permanent}}" >{{$removeme}}</a> -</div> + <form action="settings/account" id="settings-account-form" method="post" autocomplete="off" > |