Self hosted FLOSS fitness/workout, nutrition and weight tracker
Add conditional registration section in login and features templates
Matthew Harrisoncfac06f82e71
diff --git a/wger/core/templates/user/login.html b/wger/core/templates/user/login.htmlindex d4b7e17a1..04137919d 100644--- a/wger/core/templates/user/login.html+++ b/wger/core/templates/user/login.html@@ -13,6 +13,7 @@{% block sidebar %}+{% if allow_registration %}<h4>{% translate "No account?" %}</h4><p><a href="{% url 'core:user:registration' %}">@@ -20,6 +21,7 @@{% translate "Register" %}</a></p>+{% endif %}<h4>{% translate "Forgot password?" %}</h4><p>diff --git a/wger/software/templates/features.html b/wger/software/templates/features.htmlindex 7c61070b3..6b2655bf3 100644--- a/wger/software/templates/features.html+++ b/wger/software/templates/features.html@@ -325,13 +325,13 @@</section><!-- sign up section -->- <section class="main-section ">+ {% if allow_registration %}+ <section class="main-section"><div class="container d-flex align-items-center justify-content-center sign-up-bg">-<!-- form --><form method="post"- action="{% url 'core:user:registration' %}"- class="row justify-content-center">+ action="{% url 'core:user:registration' %}"+ class="row justify-content-center">{% csrf_token %}<h3 class="col-12 text-center fs-1 uppercase font-bebas-neue">{% translate "Sign Up Now For Free" %}@@ -342,6 +342,7 @@</form></div></section>+ {% endif %}<!-- not enough section --><section class="bg-bottom-menu p-5">