pyfedi/app/templates/user/edit_settings.html

47 lines
2 KiB
HTML
Raw Normal View History

{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
{% extends 'themes/' + theme() + '/base.html' %}
{% else %}
{% extends "base.html" %}
2024-12-10 03:16:52 -08:00
{% endif %}
{% from 'bootstrap/form.html' import render_field %}
2024-02-18 18:56:56 -08:00
{% set active_child = 'settings' %}
2023-10-07 01:32:19 -07:00
{% block app_content %}
<div class="row">
<div class="col-12 col-md-8 position-relative main_pane">
<nav class="mb-2" aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="/">{{ _('Home') }}</a></li>
<li class="breadcrumb-item"><a href="/u/{{ user.link() }}">{{ user.display_name() }}</a></li>
<li class="breadcrumb-item active">{{ _('Change settings') }}</li>
</ol>
</nav>
<h1>{{ _('Change settings') }}</h1>
{% include "user/_user_nav.html" %}
<form method='post' enctype="multipart/form-data" role="form">
{{ form.csrf_token() }}
<h5> Mail Settings </h5>
{{ render_field(form.newsletter) }}
{{ render_field(form.email_unread) }}
<h5> Visibility </h5>
{{ render_field(form.searchable) }}
{{ render_field(form.indexable) }}
{{ render_field(form.hide_read_posts) }}
<h5> Preferences </h5>
2024-05-08 18:59:52 -07:00
{{ render_field(form.interface_language) }}
{{ render_field(form.markdown_editor) }}
{{ render_field(form.default_sort) }}
2024-08-15 18:42:29 -07:00
{{ render_field(form.default_filter) }}
{{ render_field(form.theme) }}
2024-08-19 12:03:08 -07:00
{{ render_field(form.vote_privately) }}
<small class="field_hint">{{ _('Votes will be sent to <a href="/instances?filter=trusted">untrusted instances</a> using an alt') }}</small>
{{ render_field(form.submit) }}
</form>
2024-05-09 22:52:16 -07:00
<p class="mt-4 pt-4">
<a class="btn btn-warning" href="{{ url_for('user.delete_account') }}">{{ _('Delete account') }}</a>
</p>
</div>
</div>
{% endblock %}