Template source: alia/accounts/login.html

{% extends "alia/base_alia.html" %} {% load static i18n %} {% block main %} <div class="container"> {% include 'base_message_layout.html' %} {% if next %} {% if user.is_authenticated %} <div class="alert alert-warning">{% blocktrans %}Your account doesn't have access to this page. To proceed, please login with an account that has access.{% endblocktrans %}</div> {% else %} <div class="alert alert-warning">{% blocktrans %}Please login to see this page.{% endblocktrans %}</div> {% endif %} {% endif %} <div class="row d-flex justify-content-center"> <div class="col-md-10 col-lg-6"> <div class="card shadowed mb-3"> <div class="card-header text-alia-carnation"> <span class="h4">{% blocktrans %}I am a client{% endblocktrans %}</span> <span class="float-right pt-1">{% blocktrans %}I hire a cleaner{% endblocktrans %}</span> </div> <div class="card-body pb-1"> <div class="card-text"> {% if client_form.non_field_errors %} {% include 'snippets/form_errors_as_alert.html' with errors=client_form.non_field_errors %} {% endif %} <form method="post" action="{% url 'cognito:account-login' %}" class="form"> {% csrf_token %} <div class="form-row form-group"> <div class="col-12"> {% include 'snippets/form_errors_as_alert.html' with errors=client_form.username.errors %} </div> <div class="col-sm-3 pt-sm-2"> <label for="id_client-username">{% trans 'Email' %}</label> </div> <div class="col-sm-9"> {{ client_form.username }} </div> </div> <div class="form-row form-group"> <div class="col-12"> {% include 'snippets/form_errors_as_alert.html' with errors=client_form.password.errors %} </div> <div class="col-sm-3 pt-sm-2"> <label for="id_client-password">{% trans 'Password' %}</label> </div> <div class="col-sm-9"> {{ client_form.password }} </div> </div> <div class="form-group"> <input type="hidden" name="which" value="client" /> <input class="btn form-control btn-alia-carnation" type="submit" value="{% trans 'Client Login' %}"> </div> <p class="text-center"> <a class="" href="{% url 'cognito:password-reset' %}">{% blocktrans %}Forgot your password?{% endblocktrans %}</a> </p> <p class="text-center"> <a class="" href="{% url 'alia:client-registration' %}">{% blocktrans %}Don't have an account?{% endblocktrans %}</a> </p> {% if next %} <input type="hidden" name="next" value="{{ next }}"> {% endif %} </form> </div> </div> </div> </div> <div class="col-md-10 col-lg-6"> <div class="card shadowed mb-3"> <div class="card-header text-alia-cyan"> <span class="h4">{% blocktrans %}I am a cleaner{% endblocktrans %}</span> <span class="float-right pt-1">{% blocktrans %}I work as a cleaner{% endblocktrans %}</span> </div> <div class="card-body pb-1"> <div class="card-text"> {% if provider_form.non_field_errors %} {% include 'snippets/form_errors_as_alert.html' with errors=provider_form.non_field_errors %} {% endif %} <form method="post" action="{% url 'cognito:account-login' %}" class="form"> {% csrf_token %} <div class="form-row form-group"> <div class="col-12"> {% include 'snippets/form_errors_as_alert.html' with errors=provider_form.username.errors %} </div> <div class="col-sm-3 pt-sm-2"> <label for="id_provider-username">{% trans 'Phone number' %}</label> </div> <div class="col-sm-9"> {{ provider_form.username }} </div> </div> <div class="form-row form-group"> <div class="col-12"> {% include 'snippets/form_errors_as_alert.html' with errors=provider_form.password.errors %} </div> <div class="col-sm-3 pt-sm-2"> <label for="id_provider-password">{% trans 'Password' %}</label> </div> <div class="col-sm-9"> {{ provider_form.password }} </div> </div> <div class="form-group"> <input type="hidden" name="which" value="provider" /> <input class="btn form-control btn-alia-cyan" type="submit" value="{% trans 'Cleaner Login' %}"> </div> <p class="text-center"> <a class="" href="{% url 'cognito:password-reset' %}">{% blocktrans %}Forgot your password?{% endblocktrans %}</a> </p> <p class="text-center"> <a class="" href="{% url 'alia:provider-registration' %}">{% blocktrans %}Don't have an account?{% endblocktrans %}</a> </p> {% if next %} <input type="hidden" name="next" value="{{ next }}"> {% endif %} </form> </div> </div> </div> </div> </div> </div> {% endblock main %}