Skip to content

Commit

Permalink
Merge pull request #1855 from Maralai/fix/registration
Browse files Browse the repository at this point in the history
Fix/registration
  • Loading branch information
rolandgeider authored Dec 30, 2024
2 parents 2fb082c + 76da122 commit c512614
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Developers
* Taylor Fuller - https://github.com/taylor-fuller
* eyJhb - https://github.com/eyJhb
* Joshua Shelley - https://github.com/navyjosh
* Matt Harrison - https://github.com/Maralai


Translators
Expand Down
4 changes: 3 additions & 1 deletion wger/core/templates/navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@
<li class="dropdown nav-item">
<a href="#" class="dropdown-toggle nav-link text-white"
data-bs-toggle="dropdown">
{% translate "Login" %} / {% translate "Register" %}
{% translate "Login" %}{% if allow_registration %} / {% translate "Register" %}{% endif %}
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
Expand All @@ -290,12 +290,14 @@
{% translate "Login" %}
</a>
</li>
{% if allow_registration %}
<li>
<a class="dropdown-item"
href="{% url 'core:user:registration' %}">
{% translate "Register" %}
</a>
</li>
{% endif %}
<li>
<a class="dropdown-item"
href="{% url 'core:user:password_reset' %}">
Expand Down
2 changes: 2 additions & 0 deletions wger/core/templates/user/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,15 @@


{% block sidebar %}
{% if allow_registration %}
<h4>{% translate "No account?" %}</h4>
<p>
<a href="{% url 'core:user:registration' %}">
<span class="{% fa_class 'sign-in-alt' %}"></span>
{% translate "Register" %}
</a>
</p>
{% endif %}

<h4>{% translate "Forgot password?" %}</h4>
<p>
Expand Down
11 changes: 7 additions & 4 deletions wger/software/templates/features.html
Original file line number Diff line number Diff line change
Expand Up @@ -325,13 +325,13 @@ <h1 class="display-3 uppercase font-bebas-neue header-community">
</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" %}
Expand All @@ -342,6 +342,7 @@ <h3 class="col-12 text-center fs-1 uppercase font-bebas-neue">
</form>
</div>
</section>
{% endif %}

<!-- not enough section -->
<section class="bg-bottom-menu p-5">
Expand Down Expand Up @@ -417,11 +418,13 @@ <h6 class="text-white fw-bold text-center">
<li class="list-group-item bg-transparent border-0 text-light ps-0">
<h1 class="fs-5 text-white">{% translate "Account" %}</h1>
</li>
{% if allow_registration %}
<li class="list-group-item bg-transparent border-0 text-light fw-lighter ps-0">
<a href="{% url 'core:user:registration' %}">
{% translate "Register" %}
</a>
</li>
{% endif %}
<li class="list-group-item bg-transparent border-0 text-light fw-lighter ps-0">
<a href="{% url 'core:user:login' %}">
{% translate "Login" %}
Expand Down

0 comments on commit c512614

Please sign in to comment.