Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Fix 'Get Started' button and add registration sidebar (all changes)

JANVI750fb7a4feb2
diff --git a/wger/core/templates/form_content.html b/wger/core/templates/form_content.html
index 195a85b24..3246ff637 100644
--- a/wger/core/templates/form_content.html
+++ b/wger/core/templates/form_content.html
@@ -23,7 +23,4 @@
{% endblock %}
-<!--
- Sidebar
--->
{% block sidebar %}{% if sidebar %}{% include sidebar %}{% endif %}{% endblock %}
diff --git a/wger/core/views/user.py b/wger/core/views/user.py
index c9f522d06..1dd7f4688 100644
--- a/wger/core/views/user.py
+++ b/wger/core/views/user.py
@@ -284,6 +284,10 @@ def registration(request):
template_data['form'] = form
template_data['title'] = _('Register')
+ # Add this line to use the new registration-specific sidebar
+ template_data['sidebar'] = 'user/registration_sidebar.html'
+
+
return render(request, 'form_content.html', template_data)