Clean templates in tests.
This commit is contained in:
parent
503324ae66
commit
44bbe78723
6 changed files with 9 additions and 141 deletions
|
@ -1,24 +1,7 @@
|
||||||
{% extends 'base.html' %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<div class="panel panel-default" style="width:400px;margin:0 auto 25px auto;">
|
|
||||||
<div class="panel-body">
|
|
||||||
<form method="post" action="{% url 'login' %}">
|
<form method="post" action="{% url 'login' %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="next" value="{{ next }}" />
|
<input type="hidden" name="next" value="{{ next }}" />
|
||||||
{% if form.errors %}
|
<input type="text" name="username">
|
||||||
<div class="alert alert-danger" role="alert">Username and password are incorrect.</div>
|
<input type="password" name="password">
|
||||||
{% endif %}
|
<input type="submit" value="Enter">
|
||||||
<div class="form-group">
|
|
||||||
<input type="text" class="form-control" name="username" placeholder="Username">
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<input type="password" class="form-control" name="password" placeholder="Password">
|
|
||||||
</div>
|
|
||||||
<input type="submit" class="btn btn-success btn-lg btn-block" value="Enter">
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
|
@ -1,12 +1,2 @@
|
||||||
{% extends 'base.html' %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<div class="panel panel-default" style="width:400px;margin:0 auto 25px auto;">
|
|
||||||
<div class="panel-body">
|
|
||||||
<h1>Bye!</h1>
|
<h1>Bye!</h1>
|
||||||
<p>Thanks for spending some quality time with the web site today.</p>
|
<p>Thanks for spending some quality time with the web site today.</p>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
|
@ -1,50 +0,0 @@
|
||||||
<!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">
|
|
||||||
<title>OpenID Provider</title>
|
|
||||||
|
|
||||||
<!-- Bootstrap -->
|
|
||||||
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.4/cerulean/bootstrap.min.css" rel="stylesheet">
|
|
||||||
<style type="text/css">body{padding-top:20px;padding-bottom:20px}.footer,.header,.marketing{padding-right:15px;padding-left:15px}.header{padding-bottom:20px;border-bottom:1px solid #e5e5e5}.header h3{margin-top:0;margin-bottom:0;line-height:40px}.footer{padding-top:19px;color:#777;border-top:1px solid #e5e5e5}@media (min-width:768px){.container{max-width:730px}}.container-narrow>hr{margin:30px 0}.jumbotron{border-bottom:1px solid #e5e5e5}.jumbotron .btn{padding:14px 24px;font-size:21px}.marketing{margin:40px 0}.marketing p+h4{margin-top:28px}@media screen and (min-width:768px){.footer,.header,.marketing{padding-right:0;padding-left:0}.header{margin-bottom:30px}.jumbotron{border-bottom:0}}</style>
|
|
||||||
|
|
||||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
|
||||||
<!--[if lt IE 9]>
|
|
||||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
|
|
||||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
|
||||||
<![endif]-->
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
|
|
||||||
<div class="container">
|
|
||||||
<div class="header clearfix">
|
|
||||||
<nav>
|
|
||||||
<ul class="nav nav-pills pull-right">
|
|
||||||
<li role="presentation"><a href="{% url 'home' %}">Home</a></li>
|
|
||||||
{% if user.is_authenticated %}
|
|
||||||
<li role="presentation"><a href="#">{{ user.email }}</a></li>
|
|
||||||
<li role="presentation"><a href="{% url 'logout' %}">Logout</a></li>
|
|
||||||
{% else %}
|
|
||||||
<li role="presentation"><a href="{% url 'login' %}">Login</a></li>
|
|
||||||
{% endif %}
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<h3 class="text-muted">django-oidc-provider</h3>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% block content %}{% endblock %}
|
|
||||||
|
|
||||||
<footer class="footer">
|
|
||||||
<p>Developed by <a href="http://github.com/juanifioren" target="_BLANK">Juan Ignacio Fiorentino</a>.</p>
|
|
||||||
</footer>
|
|
||||||
|
|
||||||
</div> <!-- /container -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
|
|
||||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -1,11 +0,0 @@
|
||||||
{% extends 'base.html' %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<div class="jumbotron">
|
|
||||||
<h1>Welcome!</h1>
|
|
||||||
<p class="lead">Django OIDC Provider can help you providing out of the box all the endpoints, data and logic needed to add OpenID Connect capabilities to your Django projects.</p>
|
|
||||||
<p><a class="btn btn-lg btn-success" href="https://github.com/juanifioren/django-oidc-provider" role="button">View on Github</a></p>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
|
@ -1,30 +0,0 @@
|
||||||
{% extends 'base.html' %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<div class="panel panel-default">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">Request for Permission</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
<p>Client <strong>{{ client.name }}</strong> would like to access this information of you ...</p>
|
|
||||||
|
|
||||||
<form method="post" action="{% url 'oidc_provider:authorize' %}">
|
|
||||||
|
|
||||||
{% csrf_token %}
|
|
||||||
|
|
||||||
{{ hidden_inputs }}
|
|
||||||
|
|
||||||
<ul>
|
|
||||||
{% for scope in params.scope %}
|
|
||||||
<li>{{ scope | capfirst }}</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<input name="allow" class="btn btn-primary btn-lg btn-block" type="submit" value="Authorize" />
|
|
||||||
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
|
@ -1,14 +0,0 @@
|
||||||
{% extends 'base.html' %}
|
|
||||||
|
|
||||||
{% block content %}
|
|
||||||
|
|
||||||
<div class="panel panel-danger">
|
|
||||||
<div class="panel-heading">
|
|
||||||
<h3 class="panel-title">{{ error }}</h3>
|
|
||||||
</div>
|
|
||||||
<div class="panel-body">
|
|
||||||
{{ description }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
|
Loading…
Reference in a new issue