-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
84 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,61 +1,58 @@ | ||
{% load i18n %} | ||
|
||
<!DOCTYPE html> | ||
{% load i18n %}<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<head> | ||
{% block meta_tags %} | ||
<meta charset="utf-8"> | ||
<meta name="robots" content="noindex,nofollow"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta charset="utf-8"> | ||
<meta name="robots" content="noindex,nofollow"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
{% endblock meta_tags %} | ||
<title> | ||
{% block title %}{% trans "Central Authentication Service" %}{% endblock title %} | ||
</title> | ||
<title>{% block title %}{% trans "Central Authentication Service" %}{% endblock title %}</title> | ||
{% block styles %} | ||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | ||
<style type="text/css"> | ||
body { | ||
background-color: #eee; | ||
} | ||
.login-title { | ||
color: #555; | ||
font-size: 1.8em; | ||
} | ||
.form-login .checkbox { | ||
font-weight: normal; | ||
padding-left: 20px; | ||
} | ||
.form-login .form-control { | ||
font-size: 16px; | ||
height: auto; | ||
padding: 10px; | ||
position: relative; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
.form-login .form-control:focus { | ||
z-index: 2; | ||
} | ||
.form-login input[type="text"] { | ||
margin-bottom: -1px; | ||
border-bottom-right-radius: 0; | ||
border-bottom-left-radius: 0; | ||
} | ||
.form-login input[type="password"] { | ||
margin-bottom: 10px; | ||
border-top-left-radius: 0; | ||
border-top-right-radius: 0; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> | ||
<style type="text/css"> | ||
body { | ||
background-color: #eee; | ||
} | ||
.login-title { | ||
color: #555; | ||
font-size: 1.8em; | ||
margin-bottom: 20px; | ||
} | ||
.form-login .checkbox { | ||
font-weight: normal; | ||
padding-left: 20px; | ||
} | ||
.form-login .form-control { | ||
font-size: 16px; | ||
height: auto; | ||
padding: 10px; | ||
position: relative; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
.form-login .form-control:focus { | ||
z-index: 2; | ||
} | ||
.form-login input[type="text"] { | ||
margin-bottom: -1px; | ||
border-bottom-right-radius: 0; | ||
border-bottom-left-radius: 0; | ||
} | ||
.form-login input[type="password"] { | ||
margin-bottom: 10px; | ||
border-top-left-radius: 0; | ||
border-top-right-radius: 0; | ||
} | ||
</style> | ||
{% endblock styles %} | ||
{% block javascript %}{% endblock javascript %} | ||
{% block extra_head %}{% endblock extra_head %} | ||
</head> | ||
<body> | ||
</head> | ||
<body> | ||
<div class="container"> | ||
{% block content %}{% endblock content %} | ||
{% block content %}{% endblock content %} | ||
</div> | ||
</body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
{% if messages %} | ||
<div class="alert alert-info"><ul> | ||
{% for message in messages %} | ||
<li>{{ message|urlize }}</li> | ||
{% endfor %} | ||
</ul></div> | ||
{% for message in messages %} | ||
<div class="alert alert-info">{{ message }}</div> | ||
{% endfor %} | ||
{% endif %} | ||
|
||
{% if form.errors %} | ||
<div class="alert alert-danger"><ul> | ||
{% for error in form.non_field_errors %} | ||
<li>{{ error }}</li> | ||
{% endfor %} | ||
{% for field in form %} | ||
{% for error in field.errors %} | ||
<li>{{ error }}</li> | ||
{% endfor %} | ||
{% for error in form.non_field_errors %} | ||
<div class="alert alert-danger">{{ error }}</div> | ||
{% endfor %} | ||
{% for field in form %} | ||
{% for error in field.errors %} | ||
<div class="alert alert-danger">{{ error }}</div> | ||
{% endfor %} | ||
</ul></div> | ||
{% endfor %} | ||
{% endif %} |