mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 17:25:44 +00:00
137 lines
4.3 KiB
Django/Jinja
137 lines
4.3 KiB
Django/Jinja
{% 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">
|
|
<form method="POST">
|
|
<div class="card-content">
|
|
{{ edit_general_settings_form.hidden_tag() }}
|
|
<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">
|
|
<div class="switch">
|
|
<label>
|
|
{{ edit_general_settings_form.dark_mode() }}
|
|
<span class="lever"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="col s12"><p> </p></div>
|
|
<div class="col s12 divider"></div>
|
|
<div class="col s12"><p> </p></div>
|
|
<div class="col s9">
|
|
<p><i class="material-icons left">notifications</i>Email notifications</p>
|
|
<p class="light">Receive emails when a job completes.</p>
|
|
</div>
|
|
<div class="col s3 right-align">
|
|
<div class="switch">
|
|
<label>
|
|
<input disabled type="checkbox">
|
|
<span class="lever"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<!--
|
|
Seperate each setting with the following two elements
|
|
<div class="col s12 divider"></div>
|
|
<div class="col s12"><p> </p></div>
|
|
-->
|
|
</div>
|
|
</div>
|
|
<div class="card-action right-align">
|
|
{{ M.render_field(edit_general_settings_form.save_settings, material_icon='send') }}
|
|
</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">
|
|
{{ edit_password_form.hidden_tag() }}
|
|
{{ 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') }}
|
|
</div>
|
|
<div class="card-action right-align">
|
|
{{ M.render_field(edit_password_form.save_password, material_icon='send') }}
|
|
</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">
|
|
{{ edit_email_form.hidden_tag() }}
|
|
{{ M.render_field(edit_email_form.email, class_='validate', material_icon='email', type='email') }}
|
|
</div>
|
|
<div class="card-action right-align">
|
|
{{ M.render_field(edit_email_form.save_email, material_icon='send') }}
|
|
</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">
|
|
<a href="#delete-account-modal" class="btn modal-trigger red waves-effect waves-light"><i class="material-icons left">delete</i>Delete</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- Modals -->
|
|
<div class="modal" id="delete-account-modal">
|
|
<div class="modal-content">
|
|
<h4>Confirm deletion</h4>
|
|
<p>Do you really want to delete your account and all associated data? All associated corpora, jobs and files will be permanently deleted!</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<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>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|