mirror of
https://github.com/netbox-community/netbox.git
synced 2025-12-09 09:59:37 -06:00
38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
{% extends '_base.html' %}
|
|
{% load form_helpers %}
|
|
|
|
{% block content %}
|
|
<div class="row" style="margin-top: {% if settings.BANNER_LOGIN %}100{% else %}150{% endif %}px;">
|
|
<div class="col-sm-4 col-sm-offset-4">
|
|
{% if settings.BANNER_LOGIN %}
|
|
<div style="margin-bottom: 25px">
|
|
{{ settings.BANNER_LOGIN|safe }}
|
|
</div>
|
|
{% endif %}
|
|
{% if form.non_field_errors %}
|
|
<div class="panel panel-danger">
|
|
<div class="panel-heading"><strong>Errors</strong></div>
|
|
<div class="panel-body">
|
|
{{ form.non_field_errors }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
<form action="{% url 'login' %}" method="post" class="form form-horizontal">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">
|
|
<strong>Log In</strong>
|
|
</div>
|
|
<div class="panel-body">
|
|
{% csrf_token %}
|
|
{% if 'next' in request.GET %}<input type="hidden" name="next" value="{{ request.GET.next }}" />{% endif %}
|
|
{% render_form form %}
|
|
</div>
|
|
<div class="panel-footer text-right">
|
|
<button type="submit" class="btn btn-primary">Log In</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|