mirror of https://gitlab.federez.net/re2o/re2o
3 changed files with 61 additions and 2 deletions
@ -0,0 +1,48 @@ |
|||
{% extends "base.html" %} |
|||
|
|||
{% load i18n %} |
|||
|
|||
{% block content %} |
|||
<div class="panel-heading"> |
|||
<h2>{% blocktrans trimmed with asso_name=asso.name %}Welcome onto the captive portal of {{ asso_name }}!{% endblocktrans %}</h2> |
|||
</div> |
|||
|
|||
<div class="row"> |
|||
{% if not user.is_authenticated %} |
|||
<div class="col-sm-6 col-md-6"> |
|||
<div class="col-12"> |
|||
<div class="thumbnail"> |
|||
<div class="caption"> |
|||
<h3>{% trans "Registration" %}</h3> |
|||
<p>{% trans "If you don't have an account yet and you want to access the Internet and the organisation's services, create your own personal account." %}</p> |
|||
<p><a href="{% url 'portail:signup' %}" class="btn btn-primary" role="button">{% trans "Sign up" %}</a></p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-6 col-md-6"> |
|||
<div class="col-12"> |
|||
<div class="thumbnail"> |
|||
<div class="caption"> |
|||
<h3>{% trans "Logging in" %}</h3> |
|||
<p>{% trans "If you already have an account, log in. You can manage your subscriptions to the organisation." %}</p> |
|||
<p><a href="{% url 'portail:login' %}" class="btn btn-primary" role="button">{% trans "Log in" %}</a></p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
{% else %} |
|||
<div class="col-sm-12 col-md-12"> |
|||
<div class="col-12"> |
|||
<div class="thumbnail"> |
|||
<div class="caption"> |
|||
<h3>{% trans "My subscriptions" %}</h3> |
|||
<p>{% trans "To renew your Internet connection, you can extend your current connection." %}</p> |
|||
<p><a href="{% url 'portail:extend-connection' userid=request.user.pk %}" class="btn btn-primary" role="button">{% trans "Buy a new subscription" %}</a></p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
{% endif %} |
|||
</div> |
|||
{% endblock %} |
|||
Loading…
Reference in new issue