drought/users/templates/user/user_register.html

48 lines
2.2 KiB
HTML

{% extends 'dashboard/base.html' %}
{% load static %}
{% load bootstrap3 %}
{% block breadcrumb %}{% endblock %}
{% block title %} 宝鸡地区气象灾害监测、预警与决策支持系统{% endblock %}
{% block content %}
<div class="container" style="min-height: 400px;margin-top: 15%">
<div class="col-md-6 col-md-offset-3">
{% if messages %}
<div class="alert alert-danger alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
{% for message in messages %}
{{ message }}.<br/>
{% endfor %}
</div>
{% endif %}
<div class="panel panel-default">
<div class="panel-heading">
<h3 style="text-align: center; margin: 8px;">用户注册</h3>
</div>
<div class="panel-body">
<form method="post" >{% csrf_token %}
<div class="form-group">
<label for="username">用户名</label>
<input type="text" class="form-control" id="username" placeholder="请填写用户名" name="username">
</div>
<div class="form-group">
<label for="email">邮箱</label>
<input type="email" class="form-control" id="email" placeholder="请填写正确的邮箱" name="email">
</div>
<div class="form-group">
<label for="password">密码</label>
<input type="password" class="form-control" id="password" placeholder="输入密码"
name="password">
</div>
<button type="submit" class="btn btn-primary btn-block"> 注册 </button>
</form>
</div>
</div>
</div>
</div>
{% endblock %}