login.html 2.21 KB
Newer Older
1
{% extends 'base.html' %}
2 3 4 5 6 7 8 9

{% block title %}
    SLUB - Είσοδος Χρήστη/Διαχειριστή
{% endblock %}

{% block content %}
    <h4>Είσοδος Χρήστη/Διαχειριστή</h4>

10
    <form id="login_form" accept-charset="utf-8" action="{% url 'submit_login' %}" method="post">
11
        {% csrf_token %}
12

13
        <table>
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
            <tbody>
                <tr>
                    <td style="text-align:right;"><label for="platform">Είσοδος ως:</label></td>
                    <td style="text-align:left;">
                        <select name="platform" id="platform">
                            <option value="SLUB">διαχειριστής του SLUB</option>
                            {% for name in platform_names %}
                                <option value="{{ name }}" {% if name == 'Novice' %}selected="selected"{% endif %}>
                                    χρήστης του {{ name }}
                                </option>
                            {% endfor %}
                        </select>
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;"><label for="username">Όνομα χρήστη:</label></td>
                    <td style="text-align:left;">
                        <input type="text" name="username" id="username" maxlength="50" title="" required="required" />
                    </td>
                </tr>
                <tr>
                    <td style="text-align:right;"><label for="password">Κωδικός πρόσβασης:</label></td>
                    <td style="text-align:left;">
                        <input type="password" name="password" id="password" maxlength="50" title="" required="required" />
                    </td>
                </tr>
            </tbody>
41
        </table>
42 43 44

        <br />
        <input type="submit" value="Είσοδος" />
45 46
    </form>

47 48
    {% if error_messages %}
        {% for message in error_messages %}
49 50
            <p style="color:red;">
                <img src="images/warning.svg" alt="Σφάλμα:" />
51 52 53 54 55
                <strong>{{ message | linebreaksbr }}</strong>
            </p>
        {% endfor %}
    {% endif %}

56
    <br />
57 58
{% endblock %}