Commit 3fd18a81 authored by Noe Nieto's avatar Noe Nieto 💬

Add Instructions for pending users; liberty/ldh_middleware#77

parent a472a576
Pipeline #7391 failed with stage
......@@ -26,7 +26,21 @@ SPDX-License-Identifier: AGPL-3.0
<a href="{% url 'home' %}"><img class="logo" src="{% static 'logo.png' %}" alt="{{ site_title }}"/></a>
<div id="title_text">
<h1>{% trans "User profile" %}</h1>
{% if request.user.chosenreward.is_pending %}
<div class="notice">
<p>
Your registration is pending.
</p>
<p>
Complete the registration process please visit <a href="{{complete_signup_url}}">{{complete_signup_url}}</a>
</p>
<p>
Pending registrations are removed after 12 hours.
</p>
</div>
{% else %}
<p>{% trans "Service credit and profile management" %}</p>
{% endif %}
</div>
</div>
......@@ -49,11 +63,11 @@ SPDX-License-Identifier: AGPL-3.0
-->
{% endif %}
</div>
</header>
<hr/>
{% if not request.user.chosenreward.is_pending %}
<main class="col-wrapper form">
<article class="col-1">
......@@ -165,7 +179,7 @@ SPDX-License-Identifier: AGPL-3.0
</ul>
</nav>
</main>
{% endif %}
<footer>
<div id="footer_block">
......
......@@ -7,6 +7,7 @@ from django.urls import reverse
from .models import Limit
from invitation.models import Invitation
from purist.models import AccountType
from cart.views import CartRegistrationView
@login_required
......@@ -64,6 +65,7 @@ def userlimit(request):
"link_profile_ordered_dict": settings.LINK_PROFILE_ORDERED_DICT,
"action_function": action_function,
"invitations": invitations,
"complete_signup_url": CartRegistrationView().get_success_url(request.user),
}
return render(request, 'limitmonitor/userlimit.html', render_data)
......
......@@ -146,6 +146,7 @@ DATABASE_ROUTERS = ['ldapdb.router.Router']
#
TEMPLATES[0]['OPTIONS']['context_processors'].append('purist.context_processors.settings')
TEMPLATES[1]['OPTIONS']['context_processors'] = ['purist.context_processors.settings']
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment