1 {% extends 'gilbert/base.html' %}
4 {% block css %}{{ block.super }}
5 <link rel="stylesheet" type="text/css" href="{% mediaurl 'gilbert/extjs/examples/ux/statusbar/css/statusbar.css' %}" />
6 <style type="text/css">
8 background: url({% mediaurl 'gilbert/fugue-icons/icons-shadowless' %}/door-open-in.png) no-repeat !important;
10 .x-statusbar .x-status-error {
12 background-image: url({% mediaurl 'gilbert/fugue-icons/icons-shadowless' %}/exclamation-red.png) !important;
17 {% block js %}{{ block.super }}
18 <script type="text/javascript" src="{% mediaurl 'gilbert/extjs/examples/ux/statusbar/StatusBar.js' %}"></script>
19 <script type="text/javascript" charset="utf-8">
20 Ext.onReady(function () {
22 var login_form = new Ext.FormPanel({
23 border: false,{% if request.GET.theme %}
24 bodyStyle: 'padding: 10px',{% else %}
25 bodyStyle: 'padding: 0px 10px 0px;',{% endif %}
29 name: 'csrfmiddlewaretoken',
30 value: '{{ csrf_token }}',
35 fieldLabel: 'Username',
40 inputType: 'password',
42 fieldLabel: 'Password',
46 url: '{{ form_url }}',
50 key: [Ext.EventObject.ENTER],
51 handler: function () {
52 var form = login_form.getForm();
59 var login_status_bar = window.status_bar = new Ext.ux.StatusBar({
64 iconCls: 'icon-door-open-in',
65 handler: function () {
66 var form = login_form.getForm();
72 var login_window = new Ext.Window({
81 bbar: login_status_bar,
85 {% if error_message %}
86 login_status_bar.setStatus({
87 iconCls: 'x-status-error',
88 text: '{{ error_message_short }}',
92 target: login_status_bar.statusEl.el,
94 title: '{{ error_message_short }}',
95 html: '{{ error_message }}',