nopaque/app/templates/profile/settings.html.j2

137 lines
4.7 KiB
Plaintext
Raw Normal View History

2020-02-19 13:49:52 +00:00
{% extends "nopaque.html.j2" %}
{% block page_content %}
<div class="col s12 m4">
<h3>General settings</h3>
</div>
<div class="col s12 m8">
<br class="hide-on-small-only">
<div class="card">
2020-03-02 13:13:32 +00:00
<form method="POST">
<div class="card-content">
2020-04-17 09:04:09 +00:00
{{ edit_general_settings_form.hidden_tag() }}
2020-02-19 13:49:52 +00:00
<div class="row">
<div class="col s9">
<p><i class="material-icons left">brightness_3</i>{{ edit_general_settings_form.dark_mode.label.text }}</p>
<p class="light">Activate dark mode to ease your eyes.</p>
</div>
<div class="col s3 right-align">
2020-04-27 12:33:49 +00:00
{{ M.render_field(edit_general_settings_form.dark_mode, label=False) }}
2020-02-19 13:49:52 +00:00
</div>
2020-03-07 19:20:58 +00:00
<div class="col s12"><p>&nbsp;</p></div>
<div class="col s12 divider"></div>
<div class="col s12"><p>&nbsp;</p></div>
2020-04-27 12:33:49 +00:00
<div class="col s12 m8">
<p><i class="material-icons left">notifications</i>Job status site notifications</p>
<p class="light">Receive site notifications about job status changes.</p>
2020-03-07 19:20:58 +00:00
</div>
2020-04-27 12:33:49 +00:00
<div class="col s12 m4 right-align">
{{ M.render_field(edit_general_settings_form.job_status_site_notifications, label=False) }}
</div>
<div class="col s12"><p>&nbsp;</p></div>
<div class="col s12 divider"></div>
<div class="col s12"><p>&nbsp;</p></div>
2020-04-27 12:33:49 +00:00
<div class="col s12 m8">
<p><i class="material-icons left">notifications</i>Job status mail notifications</p>
<p class="light">Receive mail notifications about job status changes.</p>
</div>
2020-04-27 12:33:49 +00:00
<div class="col s12 m4 right-align">
{{ M.render_field(edit_general_settings_form.job_status_mail_notifications, label=False) }}
2020-03-07 19:20:58 +00:00
</div>
2020-02-19 13:49:52 +00:00
<!--
Seperate each setting with the following two elements
<div class="col s12 divider"></div>
<div class="col s12"><p>&nbsp;</p></div>
-->
</div>
</div>
<div class="card-action right-align">
2020-04-17 09:13:11 +00:00
{{ M.render_field(edit_general_settings_form.save_settings, material_icon='send') }}
2020-02-19 13:49:52 +00:00
</div>
</form>
</div>
</div>
<div class="col s12"></div>
<div class="col s12 m4">
<h3>Change password</h3>
</div>
<div class="col s12 m8">
<br class="hide-on-small-only">
<div class="card">
<form method="POST">
<div class="card-content">
2020-04-17 09:04:09 +00:00
{{ edit_password_form.hidden_tag() }}
2020-04-17 09:13:11 +00:00
{{ M.render_field(edit_password_form.current_password, data_length='128', material_icon='vpn_key') }}
{{ M.render_field(edit_password_form.password, data_length='128', material_icon='vpn_key') }}
{{ M.render_field(edit_password_form.password_confirmation, data_length='128', material_icon='vpn_key') }}
2020-02-19 13:49:52 +00:00
</div>
<div class="card-action right-align">
2020-04-17 09:13:11 +00:00
{{ M.render_field(edit_password_form.save_password, material_icon='send') }}
2020-02-19 13:49:52 +00:00
</div>
</form>
</div>
</div>
<div class="col s12"></div>
<div class="col s12 m4">
<h3>Change email</h3>
</div>
<div class="col s12 m8">
<br class="hide-on-small-only">
<div class="card">
<form method="POST">
<div class="card-content">
2020-04-17 09:04:09 +00:00
{{ edit_email_form.hidden_tag() }}
2020-04-17 09:13:11 +00:00
{{ M.render_field(edit_email_form.email, class_='validate', material_icon='email', type='email') }}
2020-02-19 13:49:52 +00:00
</div>
<div class="card-action right-align">
2020-04-17 09:13:11 +00:00
{{ M.render_field(edit_email_form.save_email, material_icon='send') }}
2020-02-19 13:49:52 +00:00
</div>
</form>
</div>
</div>
<div class="col s12"></div>
<div class="col s12 m4">
<h3>Delete account</h3>
</div>
<div class="col s12 m8">
<br class="hide-on-small-only">
<div class="card">
<div class="card-content">
<p>Deleting an account has the following effects:</p>
<ul>
<li>All data associated with your corpora and jobs will be permanently deleted.</li>
<li>All settings will be permanently deleted.</li>
</ul>
</div>
<div class="card-action right-align">
2020-02-20 09:03:42 +00:00
<a href="#delete-account-modal" class="btn modal-trigger red waves-effect waves-light"><i class="material-icons left">delete</i>Delete</a>
2020-02-19 13:49:52 +00:00
</div>
</div>
</div>
<!-- Modals -->
<div class="modal" id="delete-account-modal">
<div class="modal-content">
<h4>Confirm deletion</h4>
2020-02-24 08:18:49 +00:00
<p>Do you really want to delete your account and all associated data? All associated corpora, jobs and files will be permanently deleted!</p>
2020-02-19 13:49:52 +00:00
</div>
<div class="modal-footer">
2020-02-20 09:03:42 +00:00
<a href="#!" class="btn modal-close waves-effect waves-light">Cancel</a>
<a href="{{ url_for('profile.delete') }}" class="btn red waves-effect waves-light"><i class="material-icons left">delete</i>Delete</a>
2020-02-19 13:49:52 +00:00
</div>
</div>
{% endblock %}