2021-05-28 13:51:23 +00:00
|
|
|
{% extends "base.html.j2" %}
|
|
|
|
{% from "admin/_breadcrumbs.html.j2" import breadcrumbs with context %}
|
2021-05-27 11:05:46 +00:00
|
|
|
{% import "materialize/wtf.html.j2" as wtf %}
|
2020-10-27 13:23:23 +00:00
|
|
|
|
|
|
|
{% block page_content %}
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12">
|
2022-02-08 11:26:20 +00:00
|
|
|
<h1 id="title">{{ title }}</h1>
|
2020-10-27 13:23:23 +00:00
|
|
|
</div>
|
|
|
|
|
2022-02-08 11:26:20 +00:00
|
|
|
<div class="col s12">
|
|
|
|
<form method="POST">
|
|
|
|
{{ edit_general_settings_form.hidden_tag() }}
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-content">
|
|
|
|
<span class="card-title">General settings</span>
|
|
|
|
{{ wtf.render_field(edit_general_settings_form.username, data_length='64', material_icon='person') }}
|
|
|
|
{{ wtf.render_field(edit_general_settings_form.email, data_length='254', material_icon='email') }}
|
|
|
|
</div>
|
|
|
|
<div class="card-action">
|
|
|
|
<div class="right-align">
|
|
|
|
{{ wtf.render_field(edit_general_settings_form.submit, material_icon='send') }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</form>
|
2020-10-27 13:23:23 +00:00
|
|
|
|
2022-02-08 11:26:20 +00:00
|
|
|
<form method="POST">
|
|
|
|
{{ edit_interface_settings_form.hidden_tag() }}
|
2020-10-27 13:23:23 +00:00
|
|
|
<div class="card">
|
2022-02-08 11:26:20 +00:00
|
|
|
<div class="card-content">
|
|
|
|
<span class="card-title">Interface settings</span>
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12"><p> </p></div>
|
|
|
|
<div class="col s1">
|
|
|
|
<p><i class="material-icons">brightness_3</i></p>
|
|
|
|
</div>
|
|
|
|
<div class="col s8">
|
|
|
|
<p>{{ edit_interface_settings_form.dark_mode.label.text }}</p>
|
|
|
|
<p class="light">Enable dark mode to ease your eyes.</p>
|
|
|
|
</div>
|
|
|
|
<div class="col s3 right-align">
|
|
|
|
<div class="switch">
|
|
|
|
<label>
|
|
|
|
{{ edit_interface_settings_form.dark_mode() }}
|
|
|
|
<span class="lever"></span>
|
|
|
|
</label>
|
2020-10-27 13:23:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-08 11:26:20 +00:00
|
|
|
</div>
|
|
|
|
<div class="card-action">
|
|
|
|
<div class="right-align">
|
|
|
|
{{ wtf.render_field(edit_interface_settings_form.submit, material_icon='send') }}
|
2020-10-27 13:23:23 +00:00
|
|
|
</div>
|
2022-02-08 11:26:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form method="POST">
|
|
|
|
{{ edit_notification_settings_form.hidden_tag() }}
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-content">
|
|
|
|
<span class="card-title">Notification settings</span>
|
|
|
|
{{ wtf.render_field(edit_notification_settings_form.job_status_mail_notification_level, material_icon='notifications') }}
|
|
|
|
</div>
|
|
|
|
<div class="card-action">
|
|
|
|
<div class="right-align">
|
|
|
|
{{ wtf.render_field(edit_notification_settings_form.submit, material_icon='send') }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form method="POST">
|
|
|
|
{{ admin_edit_user_form.hidden_tag() }}
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-content">
|
|
|
|
<span class="card-title">Administrator settings</span>
|
|
|
|
{{ wtf.render_field(admin_edit_user_form.role, material_icon='swap_vert') }}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col s12"><p> </p></div>
|
|
|
|
<div class="col s1">
|
|
|
|
<p><i class="material-icons">check</i></p>
|
|
|
|
</div>
|
|
|
|
<div class="col s8">
|
|
|
|
<p>{{ admin_edit_user_form.confirmed.label.text }}</p>
|
|
|
|
<p class="light">Change confirmation status manually.</p>
|
|
|
|
</div>
|
|
|
|
<div class="col s3 right-align">
|
|
|
|
<div class="switch">
|
|
|
|
<label>
|
|
|
|
{{ admin_edit_user_form.confirmed() }}
|
|
|
|
<span class="lever"></span>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="card-action right-align">
|
|
|
|
{{ wtf.render_field(admin_edit_user_form.submit, material_icon='send') }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-content">
|
|
|
|
<span class="card-title">Delete account</span>
|
|
|
|
<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>
|
2020-10-27 13:23:23 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-12-01 13:15:20 +00:00
|
|
|
{% endblock page_content %}
|
2022-02-08 11:26:20 +00:00
|
|
|
|
|
|
|
{% block modals %}
|
|
|
|
{{ super() }}
|
|
|
|
<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('.delete_user', user_id=user.id) }}" class="btn red waves-effect waves-light"><i class="material-icons left">delete</i>Delete</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock modals %}
|