Frederic
11 years ago
9 changed files with 160 additions and 371 deletions
@ -0,0 +1,40 @@
@@ -0,0 +1,40 @@
|
||||
body { |
||||
padding-top: 40px; |
||||
padding-bottom: 40px; |
||||
background-color: #eee; |
||||
} |
||||
|
||||
.form-signin { |
||||
max-width: 330px; |
||||
padding: 15px; |
||||
margin: 0 auto; |
||||
} |
||||
.form-signin .form-signin-heading, |
||||
.form-signin .checkbox { |
||||
margin-bottom: 10px; |
||||
} |
||||
.form-signin .checkbox { |
||||
font-weight: normal; |
||||
} |
||||
.form-signin .form-control { |
||||
position: relative; |
||||
font-size: 16px; |
||||
height: auto; |
||||
padding: 10px; |
||||
-webkit-box-sizing: border-box; |
||||
-moz-box-sizing: border-box; |
||||
box-sizing: border-box; |
||||
} |
||||
.form-signin .form-control:focus { |
||||
z-index: 2; |
||||
} |
||||
.form-signin input[type="text"] { |
||||
margin-bottom: -1px; |
||||
border-bottom-left-radius: 0; |
||||
border-bottom-right-radius: 0; |
||||
} |
||||
.form-signin input[type="password"] { |
||||
margin-bottom: 10px; |
||||
border-top-left-radius: 0; |
||||
border-top-right-radius: 0; |
||||
} |
@ -1,21 +1,37 @@
@@ -1,21 +1,37 @@
|
||||
{% extends "cash/base.html" %} |
||||
{% load url from future %} |
||||
<!DOCTYPE html> |
||||
<html lang="en"> |
||||
<head> |
||||
<meta charset="utf-8"> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
||||
|
||||
{% block content %} |
||||
<title>Kassensystem</title> |
||||
|
||||
{% if form.errors %} |
||||
<p>Your username and password didn't match. Please try again.</p> |
||||
{% endif %} |
||||
<link href="/static/bootstrap/css/bootstrap.css" rel="stylesheet"> |
||||
<link href="/static/signin.css" rel="stylesheet"> |
||||
|
||||
<form method="post" action="{% url 'django.contrib.auth.views.login' %}"> |
||||
{% csrf_token %} |
||||
<label>{{ form.username.label_tag }}:<br/> |
||||
{{ form.username }}</label><br/> |
||||
<label>{{ form.password.label_tag }}:<br/> |
||||
{{ form.password }}</label><br/> |
||||
</head> |
||||
|
||||
<body> |
||||
|
||||
<div class="container"> |
||||
|
||||
<input type="submit" value="login" /> |
||||
<form class="form-signin" method="post" action="{% url 'django.contrib.auth.views.login' %}"> |
||||
{% csrf_token %} |
||||
<input type="hidden" name="next" value="{{ next }}" /> |
||||
<h2 class="form-signin-heading">Please sign in</h2> |
||||
<input type="text" name="username" class="form-control" placeholder="Username" autofocus> |
||||
<input type="password" name="password" class="form-control" placeholder="Password"> |
||||
<label class="checkbox"> |
||||
<input type="checkbox" value="remember-me"> Remember me |
||||
</label> |
||||
<button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button> |
||||
</form> |
||||
|
||||
{% endblock %} |
||||
</div> <!-- /container --> |
||||
|
||||
|
||||
<!-- Bootstrap core JavaScript |
||||
================================================== --> |
||||
<!-- Placed at the end of the document so the pages load faster --> |
||||
</body> |
||||
</html> |
||||
|
Loading…
Reference in new issue