Statistics
| Branch: | Tag: | Revision:

root / templates / overview / login.html @ 552466bf

History | View | Annotate | Download (2.8 kB)

1
{% extends "b3theme/base.html" %}
2
{% load widget_tweaks %}
3
{% block sidenav %}{% endblock %}
4
{% load i18n %}
5
   {% block extraheadbottom %}
6
<style>
7
        @media (min-width: 768px) {
8
                #page-wrapper {
9
                    border-left: none;
10
                    margin: 0;
11
                }
12
}
13
.errorlist{
14
        list-style: none outside none;
15
}
16
</style>
17
{% endblock %}
18
{% block title %}
19
        
20
                {% trans "Overview Login" %}
21

    
22
{% endblock %}
23

    
24

    
25
    {% block contentplaceholder %}
26
    <div class="container">
27
    <div class="row">
28
                <div class="col-lg-12">
29
                    <h1 class="page-header">{% trans "Overview Login" %}</h1>
30
                </div>
31
                <!-- /.col-lg-12 -->
32
            </div>
33
            
34
            
35
<div class="row">
36
                <div class="col-lg-8">
37
                        <div class="panel panel-primary">
38
                        <div class="panel-heading">
39
                            <i class="fa fa-user fa-fw"></i> Login
40
                        </div>
41
                        <!-- /.panel-heading -->
42
                        <div class="panel-body">
43
    <form class="form-horizontal" method="post" action="{% url altlogin %}" role="form">     
44
        
45
            {% csrf_token %}
46
            {% load unescape %}
47
            {% if form.non_field_errors %}
48
            <div class="form-group {% if form.non_field_errors %} has-error {% endif %}" style="color: #A94442;">
49
                    {{ form.non_field_errors|unescape}}
50
                    </div>
51
            {% endif %}
52
               
53
                 <div class="form-group {% if form.username.errors %} has-error {% endif %}">
54
        <label for="id_username" class="col-md-2 control-label"><b>{% trans "Username" %}</b></label>
55
        <div class="col-md-8">
56
            {% render_field form.username class+="form-control"  %}
57
            {% if form.username.errors %} <span class="help-block"> {{ form.username.errors|join:", " }} </span>
58
            {% endif %}
59
        </div>
60
        </div>
61
        <div class="form-group {% if form.password.errors %} has-error {% endif %}">
62
        <label for="id_password" class="col-md-2 control-label"><b>{% trans "Password" %}</b></label>
63
        <div class="col-md-8">
64
            {% render_field form.password class+="form-control" %}
65
            {% if form.password.errors %} <span class="help-block"> {{ form.password.errors|join:", " }} </span>
66
            {% endif %}
67
        </div>
68
        </div>
69
                                 <div class="form-group">
70
                                 <div class="col-md-2"></div>
71
                                  <div class="col-md-8">
72
                        <button type="submit" id="applybutton" value="{% trans 'Login' %}" class="btn btn-md btn-primary">Login</button>
73
                                </div>
74
                        </div>
75
                <input name="next" id="next" type="hidden" value="{% url group-routes %}">
76
            </form>
77
            </div>
78
            </div>  
79
            </div>  
80
            </div>          
81
           </div>
82
    {% endblock %}
83