blob: 16f63a40e17bf6dc376bb2695018c65e17a188da (
plain)
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
|
<!DOCTYPE html>
<html lang='en-US'>
<head>
<meta charset="utf-8"/>
<title>Guff Login</title>
<%=
styles %w{
assets/font-awesome-4.5.0/css/font-awesome.min.css
assets/bootstrap-3.3.6/css/bootstrap.min.css
assets/bootstrap-3.3.6/css/bootstrap-theme.min.css
}
%>
</head>
<body>
<div
class='navbar navbar-inverse navbar-static-top'
role='navigation'
>
<div class='container-fluid'>
<div class='navbar-header'>
<a
href='../'
class='navbar-brand'
>
<i class='fa fa-bomb'></i>
Guff
</a><!-- navbar-brand -->
</div><!-- navbar-default -->
</div><!-- container-fluid -->
</div><!-- navbar -->
<div class='container'>
<div class='col-md-6 col-md-offset-3'>
<div class='panel panel-default'>
<div class='panel-heading'>
<b>
<i class='fa fa-lock'></i>
Login
</b>
</div><!-- panel-heading -->
<div class='panel-body'>
<% if @error %>
<div class='panel panel-danger'>
<div class='panel-heading'>
<b>
<i class='fa fa-exclamation-triangle'></i>
Error: Invalid Login
</b>
</div><!-- panel-heading -->
</div><!-- panel -->
<% end %>
<form method='post' action='login.html'>
<div class='form-group'>
<label for='username'>
User:
</label>
<input
type='text'
class='form-control'
id='username'
name='username'
title='Enter username'
/>
</div><!-- form-group -->
<div class='form-group'>
<label for='password'>
Password:
</label>
<input
type='password'
class='form-control'
id='password'
name='password'
title='Enter password'
/>
</div><!-- form-group -->
<div class='form-group'>
<button
type='submit'
class='btn btn-primary'
title='Log in to admin panel.'
>
<i class='fa fa-caret-right'></i>
Log In
</button>
</div><!-- form-group -->
<input
type='hidden'
name='csrf_token'
value='<%= h(get_csrf_token) %>'
/>
</form>
</div><!-- panel-body -->
</div><!-- panel -->
</div><!-- col-md-4 -->
</div><!-- container -->
</body>
<%=
scripts %w{
assets/jquery-2.2.1.min.js
assets/bootstrap-3.3.6/js/bootstrap.min.js
}
%>
</html>
|