summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMichael Manfre2022-11-20 18:03:09 -0500
committerGitHub2022-11-20 16:03:09 -0700
commit61ce62b02627414e5d4c65d32146ba8dc89421c4 (patch)
tree268089638f2bd2eebe9d22cec4480a2420ce9fb6 /templates
parent6e88c0096942e008bb55d29b5696a058a2c1e013 (diff)
downloadtakahe-61ce62b02627414e5d4c65d32146ba8dc89421c4.tar.gz
takahe-61ce62b02627414e5d4c65d32146ba8dc89421c4.tar.bz2
takahe-61ce62b02627414e5d4c65d32146ba8dc89421c4.zip
Enforce signups_allowed=False (#26)
Diffstat (limited to 'templates')
-rw-r--r--templates/auth/signup.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/templates/auth/signup.html b/templates/auth/signup.html
index b1aaa50..7924c0a 100644
--- a/templates/auth/signup.html
+++ b/templates/auth/signup.html
@@ -7,13 +7,24 @@
{% csrf_token %}
<fieldset>
<legend>Create An Account</legend>
- {{ config.signup_text|safe|linebreaks }}
+ {% if config.signup_text %}{{ config.signup_text|safe|linebreaks }}{% endif %}
+ {% if config.signup_allowed %}
{% for field in form %}
{% include "forms/_field.html" %}
{% endfor %}
+ {% else %}
+ {% if not config.signup_text %}
+ <p>Not accepting new users at this time</p>
+ {% endif %}
+ {% endif %}
+
</fieldset>
+
+ {% if config.signup_allowed %}
<div class="buttons">
<button>Create</button>
</div>
+ {% endif %}
+
</form>
{% endblock %}