2016-10-06 20:34:07 +02:00
|
|
|
|
<div id="account-settings" class="settings-section show" data-name="your-account">
|
2016-10-05 02:23:09 +02:00
|
|
|
|
<div class="settings-section-title">
|
|
|
|
|
<i class="icon-vector-user settings-section-icon"></i>
|
2017-01-15 20:34:59 +01:00
|
|
|
|
{{t "Your account" }}
|
2016-10-05 02:23:09 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="account-settings-form">
|
|
|
|
|
<form action="/json/settings/change" method="post"
|
|
|
|
|
class="form-horizontal your-account-settings">
|
2016-12-29 22:06:10 +01:00
|
|
|
|
<div class="input-group name_change_container">
|
2016-10-05 02:23:09 +02:00
|
|
|
|
<label for="full_name">{{t "Full name" }}</label>
|
2017-01-20 23:49:20 +01:00
|
|
|
|
<input type="text" name="full_name" value="{{ full_name }}" />
|
2016-10-05 02:23:09 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<!-- password start -->
|
|
|
|
|
{{#if page_params.password_auth_enabled}}
|
|
|
|
|
<div class="input-group" id="pw_change_link">
|
|
|
|
|
<label for="change_password_button">{{t "Password" }}</label>
|
2017-01-15 20:25:37 +01:00
|
|
|
|
<button class="change_password_button button" data-dismiss="modal" aria-hidden="true">{{t "Change password" }}</button>
|
2016-10-05 02:23:09 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="pw_change_controls">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="old_password">{{t "Old password" }}</label>
|
|
|
|
|
<input type="password" autocomplete="off" name="old_password" id="old_password" value="" />
|
|
|
|
|
(<a href="/accounts/password/reset/" target="_blank">{{t "Forgotten it?" }}</a>)
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="new_password">{{t "New password" }}</label>
|
|
|
|
|
<input type="password" autocomplete="off" name="new_password" id="new_password" value="" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label>{{t "Password strength" }}</label>
|
|
|
|
|
<div class="progress" id="pw_strength">
|
|
|
|
|
<div class="bar bar-danger fade" style="width: 10%;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<label for="confirm_password">{{t "Confirm password" }}</label>
|
|
|
|
|
<input type="password" autocomplete="off" name="confirm_password" id="confirm_password" value="" />
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
|
|
<div class="input-group">
|
2017-01-15 20:27:13 +01:00
|
|
|
|
<input type="submit" class="button green" name="change_settings" value="Save changes" />
|
2016-10-05 02:23:09 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<img id="user-settings-avatar" src="{{ page_params.avatar_url }}" />
|
|
|
|
|
<div id="user_avatar_file_input_error" class="text-error"></div>
|
|
|
|
|
<div id="user_avatar_file"></div>
|
|
|
|
|
<input type="file" name="user_avatar_file_input" class="notvisible" id="user_avatar_file_input" value="{{t 'Upload avatar' }}" />
|
|
|
|
|
<div id="upload_avatar_spinner"></div>
|
|
|
|
|
<button class="button standalone" id="user_avatar_upload_button">{{t 'Customize avatar' }}</button>
|
2016-12-21 18:34:03 +01:00
|
|
|
|
<button class="button standalone btn-danger" id="user_avatar_delete_button">{{t 'Delete avatar' }}</button>
|
2017-01-17 02:33:18 +01:00
|
|
|
|
<button class="button standalone btn-danger" id="user_deactivate_account_button">{{t 'Deactivate account' }}</button>
|
2016-10-05 02:23:09 +02:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
2016-10-13 20:09:32 +02:00
|
|
|
|
<div id="deactivate_self_modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="deactivation_self_modal_label" aria-hidden="true">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
2017-01-17 02:36:12 +01:00
|
|
|
|
<h3 id="deactivation_user_modal_label">{{t "Deactivate your account" }} </h3>
|
2016-10-13 20:09:32 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<p>{{#tr this}}By deactivating your account, you will be logged out immediately.{{/tr}}</p>
|
|
|
|
|
<p>{{t "Note that any bots that you maintain will be disabled." }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">{{t "Cancel" }}</button>
|
|
|
|
|
<button class="button btn-danger" id="do_deactivate_self_button">{{t "Deactivate now" }}</button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2016-10-05 02:23:09 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|