login: use base view
This commit is contained in:
parent
38dcbe7874
commit
8e8e8243fd
1 changed files with 22 additions and 37 deletions
|
@ -1,45 +1,30 @@
|
||||||
{% load staticfiles %}
|
{% extends 'base.html' %}
|
||||||
<!DOCTYPE html>
|
|
||||||
<html lang="en">
|
|
||||||
<head>
|
|
||||||
<meta charset="utf-8">
|
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<meta name="description" content="">
|
|
||||||
<meta name="author" content="">
|
|
||||||
|
|
||||||
<title>Issue Tracker - Signin</title>
|
{% load bootstrap_tags %}
|
||||||
|
|
||||||
<!-- Bootstrap core CSS -->
|
{% block content %}
|
||||||
<link href="{% static 'css/bootstrap.min.css' %}" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- Custom styles for this template -->
|
<div class="panel panel-default">
|
||||||
<link href="{% static 'css/signin.css' %}" rel="stylesheet">
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
<div class="panel-heading">
|
||||||
<!--[if lt IE 9]>
|
<h1>
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
Login
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
<div class="pull-right">
|
||||||
<![endif]-->
|
<a href="{% url 'list-project' %}"><button class="btn btn-warning">Cancel</button></a>
|
||||||
</head>
|
</div>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
|
||||||
<body>
|
<div class="panel-body">
|
||||||
|
<div class="col-md-offset-4 col-md-4">
|
||||||
<div class="container">
|
<form action="" method="post" role="form">
|
||||||
<form class="form-signin" role="form" method="post" action="{% url 'login' %}">
|
{{ form|as_bootstrap }}
|
||||||
<h2 class="form-signin-heading">Please sign in</h2>
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
<button type="submit" class="btn btn-primary">Submit</button>
|
||||||
<input name="username" type="text" class="form-control" placeholder="Usename" required autofocus>
|
|
||||||
<input name="password" type="password" class="form-control" placeholder="Password" required>
|
|
||||||
<div class="checkbox">
|
|
||||||
<label>
|
|
||||||
<input type="checkbox" value="remember-me"> Remember me
|
|
||||||
</label>
|
|
||||||
</div>
|
|
||||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
|
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div> <!-- /container -->
|
</div>
|
||||||
</body>
|
|
||||||
</html>
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue