Skip to content
This repository
tree: 30e9bd059c
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 32 lines (29 sloc) 0.77 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
{% extends 'base.html' %}

{% block title %}Log in{% end %}

{% block body %}
{% if error != 0 %}
<div class="error_msg">
    {% if error == 1 %}
    用户名或密码不得为空!
    {% elif error == 2 %}
    用户名或密码错误!
    {% end %}
</div>
{% end %}
<div class="signin_form">
<form method="POST" action="">
    {% raw xsrf_form_html() %}
    <div class="form_line">
        <label>用户名: </label>
        <input type="text" name="usr" id="username" {% if usr %}value="{{ usr }}"{% end %}/>
    </div>
    <div class="form_line">
        <label>密码: </label>
        <input type="password" name="pwd" id="password" />
    </div>
    <div class="form_line">
        <input type="submit" value="Sign in" />
    </div>
</form>
</div>
{% end %}
Something went wrong with that request. Please try again.