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-08 17:13:38 +13:00
|
|
|
{% from 'bootstrap/form.html' import render_field %}
|
2023-09-03 16:30:20 +12:00
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col col-login mx-auto">
|
|
|
|
<div class="card mt-5">
|
|
|
|
<div class="card-body p-6">
|
|
|
|
<div class="card-title">{{ _('Create community') }}</div>
|
2024-01-23 19:17:05 +13:00
|
|
|
<form method="post" enctype="multipart/form-data" id="add_local_community_form" role="form">
|
2023-12-08 17:13:38 +13:00
|
|
|
{{ form.csrf_token() }}
|
|
|
|
{{ render_field(form.community_name) }}
|
|
|
|
<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) }}
|
|
|
|
{{ render_field(form.icon_file) }}
|
|
|
|
<small class="field_hint">Provide a square image that looks good when small.</small>
|
|
|
|
{{ 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-27 11:19:23 +13:00
|
|
|
{{ render_field(form.local_only) }}
|
|
|
|
<small class="field_hint">{{ _('Only people using %(name)s can post or reply', name=current_app.config['SERVER_NAME']) }}.</small>
|
2024-05-08 21:07:22 +12:00
|
|
|
{{ render_field(form.languages) }}
|
2023-12-08 17:13:38 +13:00
|
|
|
{{ render_field(form.submit) }}
|
|
|
|
</form>
|
2023-09-03 16:30:20 +12:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|