-
Notifications
You must be signed in to change notification settings - Fork 4
/
login.lens
59 lines (55 loc) · 1.86 KB
/
login.lens
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
<koken:include file="layouts/header.html" />
<section id="main">
<div class="container">
<div class="row justify-content-center">
<div class="col-md-6 col-offset-3 text-center">
<div id="klogin_form">
<koken:form>
<div class="form-group">
<koken:if true="settings.custom_content">
<koken:not empty="settings.custom_pageid">
<koken:load source="page" filter:id="{{ settings.custom_pageid }}">
<h1>{{ page.title }}</h1>
{{ page.content }}
<koken:else>
<h1>Password Required</h1>
Content not found for supplied page id
</koken:load>
<koken:else>
<h1>Password Required</h1>
<koken:note>
For custom content, please set page id in Template Settings
</koken:note>
</koken:not>
<koken:else>
<h1>Password Required</h1>
</koken:if>
<hr>
<koken:not empty="messages.koken_password_error">
<p class="password-error">
{{ messages.koken_password_error }}
</p>
</koken:not>
<div class="row justify-content-center">
<div class="col-md-8">
<div class="input-group">
<input id="klogin_input" type="password" name="password" autofocus class="form-control" placeholder="Enter password...">
<span class="input-group-btn">
<button class="btn btn-secondary" type="button">Go!</button>
</span>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12 text-center">
<div id="klogin_title"><a href="{{ location.site_url }}" title="{{ site.title }}">{{ site.title }}</a></div>
</div>
</div>
</koken:form>
</div>
</div>
</div>
</div>
</section>
<koken:include file="layouts/footer.html" />