Skip to content
Snippets Groups Projects
Unverified Commit 30851118 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Use Django authentication views.

parent 90c0c8d8
No related branches found
No related tags found
No related merge requests found
......@@ -34,7 +34,7 @@
<div class="container">
<h1>{% block page_title %}{% endblock %}</h1>
<div class="row">
{% block inner_content %}{% endblock %}
{% block content %}{% endblock %}
</div>
</div>
{% endblock %}
......@@ -3,7 +3,7 @@
{% block page_title %}{% blocktrans %}BiscuIT School Information System (SIS) - Next Generation Platform{% endblocktrans %}{% endblock %}
{% block inner_content %}
{% block content %}
<div class="jumbotron">
<p>
{% blocktrans %}
......
{% extends "core/base.html" %}
{% load bootstrap3 %}
{% block content %}
{% if next %}
{% if user.is_authenticated %}
<p>
Your account doesn't have access to this page. To proceed,
please login with an account that has access.
</p>
{% else %}
<p>Please login to see this page.</p>
{% endif %}
{% endif %}
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
{% bootstrap_form form %}
<input type="submit" value="Login" />
<input type="hidden" name="next" value="{{ next }}">
</form>
{% endblock %}
......@@ -7,6 +7,7 @@ from . import views
urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('django.contrib.auth.urls')),
path('', views.index, name='index'),
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment