2024-02-07 17:31:12 +13:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
|
|
|
{% endif %} %}
|
2023-12-31 12:09:20 +13:00
|
|
|
{% from 'bootstrap/form.html' import render_field %}
|
2024-04-14 20:05:40 +12:00
|
|
|
{% set active_child = 'admin_communities' %}
|
2023-12-31 12:09:20 +13:00
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-login mx-auto">
|
2024-04-14 20:05:40 +12:00
|
|
|
<h1>{{ _('Edit %(community_name)s', community_name=community.display_name()) }}</h1>
|
2023-12-31 12:09:20 +13: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) }}
|
2024-01-02 19:41:00 +13:00
|
|
|
{{ render_field(form.restricted_to_mods) }}
|
2023-12-31 12:09:20 +13: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 %}
|
2024-03-13 16:40:20 +13:00
|
|
|
{{ render_field(form.banned) }}
|
2024-01-02 19:41:00 +13:00
|
|
|
{{ render_field(form.local_only) }}
|
|
|
|
{{ render_field(form.new_mods_wanted) }}
|
2023-12-31 12:09:20 +13:00
|
|
|
{{ render_field(form.show_home) }}
|
|
|
|
{{ render_field(form.show_popular) }}
|
|
|
|
{{ render_field(form.show_all) }}
|
|
|
|
{{ render_field(form.low_quality) }}
|
|
|
|
{{ render_field(form.content_retention) }}
|
2024-01-04 16:00:19 +13:00
|
|
|
{{ render_field(form.topic) }}
|
2024-01-21 15:44:13 +13:00
|
|
|
{{ render_field(form.default_layout) }}
|
2024-04-18 20:51:08 +12:00
|
|
|
{{ render_field(form.posting_warning) }}
|
2023-12-31 12:09:20 +13:00
|
|
|
{% if not community.is_local() %}
|
|
|
|
</fieldset>
|
|
|
|
{% endif %}
|
|
|
|
{{ render_field(form.submit) }}
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-04-14 20:05:40 +12:00
|
|
|
<hr />
|
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
{% include 'admin/_nav.html' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<hr />
|
2023-12-31 12:09:20 +13:00
|
|
|
{% endblock %}
|