pyfedi/app/templates/admin/edit_community.html

66 lines
2.9 KiB
HTML
Raw Permalink 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 %}
2023-12-30 15:09:20 -08:00
{% from 'bootstrap/form.html' import render_field %}
2024-04-14 01:05:40 -07:00
{% set active_child = 'admin_communities' %}
2023-12-30 15:09:20 -08:00
{% block app_content %}
<div class="row">
<div class="col col-login mx-auto">
2024-04-14 01:05:40 -07:00
<h1>{{ _('Edit %(community_name)s', community_name=community.display_name()) }}</h1>
2023-12-30 15:09:20 -08:00
<form method="post" enctype="multipart/form-data" id="add_local_community_form">
{{ form.csrf_token() }}
{{ render_field(form.title) }}
<div class="form-group">{{ form.url.label(class_="form-control-label required") }}
/c/{{ form.url(class_="form-control", maxlength=255) }}
{% for error in form.url.errors %}
<span style="color: red;">[{{ error }}]</span>
{% endfor %}
</div>
{{ render_field(form.description) }}
{% if community.icon_id %}
<img class="community_icon_big rounded-circle" src="{{ community.icon_image() }}" />
{% endif %}
{{ render_field(form.icon_file) }}
<small class="field_hint">Provide a square image that looks good when small.</small>
{% if community.image_id %}
<a href="{{ community.header_image() }}"><img class="community_icon_big" src="{{ community.header_image() }}" /></a>
{% endif %}
{{ render_field(form.banner_file) }}
<small class="field_hint">Provide a wide image - letterbox orientation.</small>
{{ render_field(form.rules) }}
{{ render_field(form.nsfw) }}
{{ render_field(form.restricted_to_mods) }}
{{ render_field(form.languages) }}
2023-12-30 15:09:20 -08:00
{% if not community.is_local() %}
<fieldset class="border pl-2 pt-2 mb-4">
<legend>{{ _('Will not be overwritten by remote server') }}</legend>
{% endif %}
{{ render_field(form.banned) }}
{{ render_field(form.local_only) }}
{{ render_field(form.new_mods_wanted) }}
2023-12-30 15:09:20 -08:00
{{ render_field(form.show_popular) }}
{{ render_field(form.show_all) }}
{{ render_field(form.low_quality) }}
{{ render_field(form.content_retention) }}
{{ render_field(form.topic) }}
2024-01-20 18:44:13 -08:00
{{ render_field(form.default_layout) }}
2024-04-18 01:51:08 -07:00
{{ render_field(form.posting_warning) }}
{{ render_field(form.ignore_remote_language) }}
2023-12-30 15:09:20 -08:00
{% if not community.is_local() %}
</fieldset>
{% endif %}
{{ render_field(form.submit) }}
</form>
</div>
</div>
2024-04-14 01:05:40 -07:00
<hr />
<div class="row">
<div class="col">
{% include 'admin/_nav.html' %}
</div>
</div>
<hr />
2023-12-30 15:09:20 -08:00
{% endblock %}