2021-09-08 21:05:08 +00:00
|
|
|
{% extends 'settings/layout.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-02-28 18:00:36 +00:00
|
|
|
|
|
|
|
{% block title %}{% trans "Site Settings" %}{% endblock %}
|
|
|
|
|
|
|
|
{% block header %}{% trans "Site Settings" %}{% endblock %}
|
2021-01-29 23:38:42 +00:00
|
|
|
|
|
|
|
{% block panel %}
|
|
|
|
|
2021-03-15 17:05:08 +00:00
|
|
|
<form action="{% url 'settings-site' %}" method="POST" class="content" enctype="multipart/form-data">
|
2021-01-29 23:38:42 +00:00
|
|
|
{% csrf_token %}
|
2021-08-09 01:40:47 +00:00
|
|
|
<section class="block" id="instance_info">
|
2021-02-28 02:48:10 +00:00
|
|
|
<h2 class="title is-4">{% trans "Instance Info" %}</h2>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_name">{% trans "Instance Name:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.name }}
|
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_instance_tagline">{% trans "Tagline:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.instance_tagline }}
|
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_instance_description">{% trans "Instance description:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.instance_description }}
|
|
|
|
</div>
|
2021-09-10 19:13:24 +00:00
|
|
|
<div class="field">
|
2021-09-10 19:15:51 +00:00
|
|
|
<label class="label mb-0" for="id_short_description">{% trans "Short description:" %}</label>
|
2021-09-10 19:13:24 +00:00
|
|
|
<p class="help">{% trans "Used when the instance is previewed on joinbookwyrm.com. Does not support html or markdown." %}</p>
|
|
|
|
{{ site_form.instance_short_description }}
|
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_code_of_conduct">{% trans "Code of conduct:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.code_of_conduct }}
|
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_privacy_policy">{% trans "Privacy Policy:" %}</label>
|
2021-02-27 19:53:36 +00:00
|
|
|
{{ site_form.privacy_policy }}
|
|
|
|
</div>
|
2021-01-29 23:38:42 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<hr aria-hidden="true">
|
|
|
|
|
|
|
|
<section class="block" id="images">
|
2021-02-28 02:48:10 +00:00
|
|
|
<h2 class="title is-4">{% trans "Images" %}</h2>
|
2021-04-30 17:42:27 +00:00
|
|
|
<div class="columns">
|
|
|
|
<div class="column">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_logo">{% trans "Logo:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.logo }}
|
|
|
|
</div>
|
2021-04-30 17:42:27 +00:00
|
|
|
<div class="column">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_logo_small">{% trans "Logo small:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.logo_small }}
|
|
|
|
</div>
|
2021-04-30 17:42:27 +00:00
|
|
|
<div class="column">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_favicon">{% trans "Favicon:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.favicon }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<hr aria-hidden="true">
|
|
|
|
|
|
|
|
<section class="block" id="footer">
|
2021-02-28 02:48:10 +00:00
|
|
|
<h2 class="title is-4">{% trans "Footer Content" %}</h2>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_support_link">{% trans "Support link:" %}</label>
|
2021-01-29 23:50:46 +00:00
|
|
|
<input type="text" name="support_link" maxlength="255" class="input" id="id_support_link" placeholder="https://www.patreon.com/bookwyrm"{% if site.support_link %} value="{{ site.support_link }}"{% endif %}>
|
2021-01-29 23:38:42 +00:00
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_support_title">{% trans "Support title:" %}</label>
|
2021-01-29 23:50:46 +00:00
|
|
|
<input type="text" name="support_title" maxlength="100" class="input" id="id_support_title" placeholder="Patreon"{% if site.support_title %} value="{{ site.support_title }}"{% endif %}>
|
2021-01-29 23:38:42 +00:00
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_admin_email">{% trans "Admin email:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.admin_email }}
|
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-04-30 17:42:27 +00:00
|
|
|
<label class="label" for="id_footer_item">{% trans "Additional info:" %}</label>
|
|
|
|
{{ site_form.footer_item }}
|
|
|
|
</div>
|
2021-01-29 23:38:42 +00:00
|
|
|
</section>
|
|
|
|
|
|
|
|
<hr aria-hidden="true">
|
|
|
|
|
|
|
|
<section class="block" id="registration">
|
2021-02-28 02:48:10 +00:00
|
|
|
<h2 class="title is-4">{% trans "Registration" %}</h2>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="id_allow_registration">
|
|
|
|
{{ site_form.allow_registration }}
|
|
|
|
{% trans "Allow registration" %}
|
|
|
|
</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
|
|
|
<label class="label" for="id_allow_invite_requests">
|
|
|
|
{{ site_form.allow_invite_requests }}
|
|
|
|
{% trans "Allow invite requests" %}
|
|
|
|
</label>
|
2021-03-21 02:14:41 +00:00
|
|
|
</div>
|
2021-08-07 00:23:44 +00:00
|
|
|
<div class="field">
|
|
|
|
<label class="label mb-0" for="id_allow_invite_requests">
|
|
|
|
{{ site_form.require_confirm_email }}
|
|
|
|
{% trans "Require users to confirm email address" %}
|
|
|
|
</label>
|
|
|
|
<p class="help">{% trans "(Recommended if registration is open)" %}</p>
|
|
|
|
</div>
|
2021-06-02 16:17:53 +00:00
|
|
|
<div class="field">
|
2021-02-28 02:48:10 +00:00
|
|
|
<label class="label" for="id_registration_closed_text">{% trans "Registration closed text:" %}</label>
|
2021-01-29 23:38:42 +00:00
|
|
|
{{ site_form.registration_closed_text }}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<footer class="block">
|
2021-02-28 16:42:25 +00:00
|
|
|
<button class="button is-primary" type="submit">{% trans "Save" %}</button>
|
2021-01-29 23:38:42 +00:00
|
|
|
</footer>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|