Add account deletion to the UI
This commit is contained in:
parent
f36253b7a8
commit
54fe09f466
@ -629,6 +629,7 @@ function settings_content(&$a) {
|
|||||||
'$submit' => t('Submit'),
|
'$submit' => t('Submit'),
|
||||||
'$email' => array('email', t('Email Address:'), $email, ''),
|
'$email' => array('email', t('Email Address:'), $email, ''),
|
||||||
'$removeme' => t('Remove Account'),
|
'$removeme' => t('Remove Account'),
|
||||||
|
'$removeaccount' => t('Remove this account from this server including all its channels'),
|
||||||
'$permanent' => t('Warning: This action is permanent and cannot be reversed.'),
|
'$permanent' => t('Warning: This action is permanent and cannot be reversed.'),
|
||||||
'$account_settings' => $account_settings
|
'$account_settings' => $account_settings
|
||||||
));
|
));
|
||||||
|
@ -2,9 +2,6 @@
|
|||||||
<h1>{{$title}}</h1>
|
<h1>{{$title}}</h1>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<form action="settings/account" id="settings-account-form" method="post" autocomplete="off" >
|
<form action="settings/account" id="settings-account-form" method="post" autocomplete="off" >
|
||||||
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
<input type='hidden' name='form_security_token' value='{{$form_security_token}}'>
|
||||||
|
|
||||||
@ -23,4 +20,9 @@
|
|||||||
|
|
||||||
{{$account_settings}}
|
{{$account_settings}}
|
||||||
|
|
||||||
|
<div id="settings-remove-account-link">
|
||||||
|
<h3 class="settings-heading">{{$removeme}}</h3>
|
||||||
|
<div id="settings-remove-account-desc">{{$removeaccount}}</div>
|
||||||
|
<button title="{{$permanent}}" class="btn btn-danger" type="submit" formaction="removeaccount">{{$removeme}}</button>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user