2022-03-16 12:11:30 +01:00
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
{% extends "baselayout.html" %}
|
2022-03-16 12:11:30 +01:00
|
|
|
|
|
|
|
{% load i18n %}
|
2022-08-06 18:56:39 +02:00
|
|
|
{% load static %}
|
2022-03-16 12:11:30 +01:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{% translate "Drinks - Login" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block headAdditional %}
|
|
|
|
<link rel="stylesheet" href="/static/css/login.css">
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% if error_message %}
|
2022-11-04 20:35:28 +01:00
|
|
|
<p class="errortext">{{ error_message }}</p>
|
2022-03-16 12:11:30 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<div class="passwordoverlaycontainer nodisplay" id="passwordoverlaycontainer">
|
2022-03-16 12:11:30 +01:00
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<div class="passwordoverlay">
|
2022-03-16 12:11:30 +01:00
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<form method="post" action="{% url 'login' %}" class="loginform">
|
2022-03-16 12:11:30 +01:00
|
|
|
{% csrf_token %}
|
|
|
|
<h1>{% translate "Log in" %}</h1>
|
|
|
|
<input type="text" name="username" autofocus="" autocapitalize="none" autocomplete="username" maxlength="150" required="" id="id_username">
|
|
|
|
<input type="password" name="password" autocomplete="current-password" required="" id="id_password" placeholder='{% translate "Password/PIN" %}'>
|
|
|
|
|
|
|
|
<div class="pinpad">
|
|
|
|
<table>
|
|
|
|
<tr>
|
2022-11-04 20:35:28 +01:00
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="1">1</button></td>
|
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="2">2</button></td>
|
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="3">3</button></td>
|
2022-03-16 12:11:30 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-11-04 20:35:28 +01:00
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="4">4</button></td>
|
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="5">5</button></td>
|
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="6">6</button></td>
|
2022-03-16 12:11:30 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-11-04 20:35:28 +01:00
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="7">7</button></td>
|
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="8">8</button></td>
|
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="9">9</button></td>
|
2022-03-16 12:11:30 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2022-11-04 20:35:28 +01:00
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="x">x</button></td>
|
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="0">0</button></td>
|
|
|
|
<td><button type="button" class="pinpadbtn" data-btn="enter">⏎</button></td>
|
2022-03-16 12:11:30 +01:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<div class="horizontalbuttonlist">
|
|
|
|
<button type="button" id="pwocancel">{% translate "cancel" %}</button>
|
2022-03-16 12:11:30 +01:00
|
|
|
<input class="button" id="submit_login" type="submit" value='{% translate "login" %}' />
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<h1>{% translate "Choose your account" %}</h1>
|
|
|
|
|
2022-11-04 20:35:28 +01:00
|
|
|
<div class="userlistcontainer" id="userlistcontainer">
|
2022-03-16 12:11:30 +01:00
|
|
|
<ul class="userlist">
|
|
|
|
{% for user_ in user_list %}
|
2022-11-04 20:35:28 +01:00
|
|
|
<li class="userlistbutton button" data-username="{{ user_.username }}">
|
2022-11-03 20:45:52 +01:00
|
|
|
<img src="/profilepictures?name={{ user_.profile_picture_filename|urlencode }}">
|
2022-08-06 18:56:39 +02:00
|
|
|
<div>
|
|
|
|
{% if user_.first_name %}
|
2022-03-16 12:11:30 +01:00
|
|
|
|
2022-08-06 18:56:39 +02:00
|
|
|
{% if user_.last_name %}
|
|
|
|
{{ user_.last_name }},
|
|
|
|
{% endif %}
|
2022-06-29 19:02:01 +02:00
|
|
|
|
2022-08-06 18:56:39 +02:00
|
|
|
{{ user_.first_name }}
|
2022-03-16 12:11:30 +01:00
|
|
|
|
2022-08-06 18:56:39 +02:00
|
|
|
{% else %}
|
|
|
|
{{ user_.username }}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-03-16 12:11:30 +01:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="/static/js/login.js"></script>
|
|
|
|
|
|
|
|
{% endblock %}
|