File tree Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Expand file tree Collapse file tree 4 files changed +22
-4
lines changed Original file line number Diff line number Diff line change 2323{% endblock %}
2424
2525
26- <!--
27- Sidebar
28- -->
2926{% block sidebar %}{% if sidebar %}{% include sidebar %}{% endif %}{% endblock %}
Original file line number Diff line number Diff line change 1+
2+ {% load i18n static wger_extras crispy_forms_tags %}
3+
4+
5+
6+ {% block sidebar %}
7+ {% if user.is_anonymous %}
8+ < h4 > {% trans "Already have an account?" %}</ h4 >
9+ < p >
10+ < a href ="{% url 'core:user:login' %} ">
11+ < span class ="{% fa_class 'sign-in-alt' %} "> </ span >
12+ {% trans "Login" %}
13+ </ a >
14+ </ p >
15+ {% endif %}
16+ {% endblock %}
17+
Original file line number Diff line number Diff line change @@ -284,6 +284,10 @@ def registration(request):
284284 template_data ['form' ] = form
285285 template_data ['title' ] = _ ('Register' )
286286
287+ # Add this line to use the new registration-specific sidebar
288+ template_data ['sidebar' ] = 'user/registration_sidebar.html'
289+
290+
287291 return render (request , 'form_content.html' , template_data )
288292
289293
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ <h1 class="font-bebas-neue display-3 uppercase">
118118 href ="{% if user.is_authenticated %}
119119 {% url 'core:index' %}
120120 {% else %}
121- {% url 'core:user:login ' %}
121+ {% url 'core:user:registration ' %}
122122 {% endif %} ">
123123 {% translate "Get Started" %}
124124 </ a >
You can’t perform that action at this time.
0 commit comments