mirror of
https://github.com/jazzband/django-admin2.git
synced 2026-04-24 08:34:46 +00:00
* Add a way to customize LoginView and Document about it Resolve #416 * Add test for custom login view * Remove unused code in test_views
32 lines
1.2 KiB
HTML
32 lines
1.2 KiB
HTML
{% extends "djadmin2theme_bootstrap3/base.html" %}
|
|
{% load i18n staticfiles admin2_tags %}
|
|
|
|
{% block navbar %}{% endblock navbar %}
|
|
{% block breacrumbs %}{% endblock breacrumbs %}
|
|
|
|
{% block page_header %}{% endblock page_header %}
|
|
|
|
{% block content %}
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-4 col-md-offset-4">
|
|
<div class="login-panel panel panel-default">
|
|
<div class="panel-heading">
|
|
<h3 class="panel-title">Custom login view</h3>
|
|
</div>
|
|
<div class="panel-body">
|
|
<form method="post" class="">
|
|
{% csrf_token %}
|
|
{{ form }}
|
|
<input type="hidden" name="this_is_the_login_form" value="1"/>
|
|
<input type="hidden" name="next" value="{{ next }}"/>
|
|
<button class="btn btn-lg btn-success btn-block" type="submit">
|
|
{% trans "Log in" %}
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|