forked from ledgersmb/LedgerSMB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
login.html
119 lines (118 loc) · 4.04 KB
/
login.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[% INCLUDE 'ui-header.html'
title = "LedgerSMB $version"
include_stylesheet = ["login.css", "ledgersmb.css"];
PROCESS elements.html -%]
<body class="login [% dojo_theme %]"
id="app-login">
<br /><br />
<center>
<form data-dojo-type="lsmb/loginForm"
method="post"
action="login.pl"
name="login">
[% INCLUDE input element_data = {
type = "hidden",
name = "menubar",
value = menubar
} %]
[% INCLUDE input element_data = {
type = "hidden",
name = "blacklisted",
value = blacklisted
} %]
<div class="login" id="logindiv">
<div class="login" align="center">
<a href="http://www.ledgersmb.org/"
target="_top">
<img src="images/ledgersmb.png"
class="logo"
alt="LedgerSMB Logo" /></a>
<div style="position:relative; width:100%; height:15em;">
<div id="loading" style="z-index:100;position:absolute;top:0;left:0;width:100%;height:100%;background:white">
<img
style="display: block; margin: auto auto;"
src="js/dijit/icons/images/loadingAnimation.gif"
alt="If this text is showing, there's most likely a problem with the Dojo setup"
title="Loading ..."
width="20"
height="20" />
</div>
<div style="z-index:10; position:absolute; top:0; left:0; width:100%; height:100%;">
<h1 class="login" align="center">
LedgerSMB [% version %]
</h1>
<div align="center">
<div id="company_div"
data-dojo-type="lsmb/layout/TableContainer"
data-dojo-props="cols:1">
<div class="noshow">
<div>
[% PROCESS input
element_data = {
type="text"
name="login"
size="20"
id="username"
label='_none_'
title=text('User Name')
value = login
accesskey="l"
tabindex=1,
attributes = { autocomplete = 'off'} } #' %]
</div>
<div>
[% PROCESS input
element_data = {
type="password"
name="password"
size="20"
id="password"
label='_none_'
title=text('Password')
value = ''
accesskey="p"
tabindex=2,
attributes = { autocomplete = 'off'} } %]
</div>
</div>
[% PROCESS input
element_data = {
type="text"
name="company"
size="20"
id="company"
label='_none_'
title=text('Company')
value = company
accesskey="c"
tabindex=3 } %]
</div>
</div>
[% PROCESS button
element_data = {
type="submit"
name="action"
value="login"
accesskey="l"
id="action-login"
text=text('Login')
tabindex=4 } %]
</div>
</div>
</div>
<div id="login-indicator">
<span>[% text('Logging in. Please wait.') %]</span>
</div>
</div>
</form>
</center>
<script>
require(['dojo/dom', 'dojo/dom-style', 'dojo/ready'],
function(dom, style, ready) {
ready(80, function() {
style.set(dom.byId('loading'), 'display', 'none');
});
});
</script>
</body>
[% end_html %]