47 lines
1.1 KiB
HTML
47 lines
1.1 KiB
HTML
|
<body>
|
||
|
<head>
|
||
|
<meta charset="utf-8">
|
||
|
<title>線上愛爾蘭語—華語辭典 - 登入</title>
|
||
|
<head>
|
||
|
<body>
|
||
|
<h1>線上愛爾蘭語—華語辭典</h1>
|
||
|
<h2>管理後台登入畫面</h2>
|
||
|
|
||
|
{% block content %}
|
||
|
{% if form.errors %}
|
||
|
<p>帳號或密碼不符合,請重新輸入。</p>
|
||
|
{% endif %}
|
||
|
|
||
|
{% if next %}
|
||
|
{% if user.is_authenticated %}
|
||
|
<p>您的帳號沒有此頁的存取權,如果要進行下一步,請登入以另一個具有存取權的帳號。</p>
|
||
|
{% else %}
|
||
|
<p>請登入觀看此頁。</p>
|
||
|
{% endif %}
|
||
|
{% endif %}
|
||
|
|
||
|
<form method="post" action="{% url 'login' %}">
|
||
|
{% csrf_token %}
|
||
|
|
||
|
<div>
|
||
|
<td>帳號:<!-- {{ form.username.label_tag }} --></td>
|
||
|
<td>{{ form.username }}</td>
|
||
|
</div>
|
||
|
<div>
|
||
|
<td>密碼:<!-- {{ form.password.label_tag }}--></td>
|
||
|
<td>{{ form.password }}</td>
|
||
|
</div>
|
||
|
|
||
|
<div>
|
||
|
<input type="submit" value="登入" />
|
||
|
<input type="hidden" name="next" value="{{ next }}" />
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
{# Assumes you setup the password_reset view in your URLconf #}
|
||
|
<p><a href="{% url 'password_reset' %}">忘記密碼?</a></p>
|
||
|
|
||
|
{% endblock %}
|
||
|
</body>
|
||
|
</html>
|