-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.html
118 lines (102 loc) · 3.43 KB
/
install.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
<!DOCTYPE html>
<html{if="$language !== 'auto'"} lang="{$language}"{/if}>
<head>
{include="includes"}
</head>
<body>
{$ratioLabel='1-4'}
{$ratioInput='3-4'}
{$ratioLabelMobile='7-8'}
{$ratioInputMobile='1-8'}
<div class="pure-g pure-g-full">
<div class="pure-u-2-24"></div>
<form method="POST" action="{$base_path}/install" name="installform" id="installform" class="page-form pure-u-20-24">
<h2 class="window-title">{'Install Shaarli'|t}</h2>
<p>{'It looks like it\'s the first time you run Shaarli. Please configure it.'|t}</p>
<div>
<label>
<span class="label-name">{'Username'|t}</span>
<input type="text" name="setlogin" id="username" autocapitalize="off">
</label>
</div>
<div>
<label for="password">
<span class="label-name">{'Password'|t}</span>
<input type="password" name="setpassword" id="password">
</label>
</div>
<div>
<label for="title">
<span class="label-name">{'Shaarli title'|t}</span>
<input type="text" name="title" id="title" placeholder="{'My links'|t}">
</label>
</div>
<div>
<label for="language">
<span class="label-name">{'Languages'|t}</span>
<select name="language" id="language" class="align">
{loop="$languages"}
<option value="{$key}">
{$value}
</option>
{/loop}
</select>
</label>
</div>
<p class="timezone">
<label>
<span class="label-name">{'Timezone'|t}</span><br>
<select id="continent" name="continent">
{loop="$continents"}
{if="$key !== 'selected'"}
<option value="{$value}" {if="$continents.selected === $value"}selected{/if}>
{$value}
</option>
{/if}
{/loop}
</select>
<select id="city" name="city">
{loop="$cities"}
{if="$key !== 'selected'"}
<option value="{$value.city}"
{if="$cities.selected === $value.city"}selected{/if}
data-continent="{$value.continent}">
{$value.city}
</option>
{/if}
{/loop}
</select>
<br><span class="label-desc">{'Continent'|t} · {'City'|t}</span>
</label>
</p>
<div>
<label class="checkbox">
<input type="checkbox" name="updateCheck" id="update" checked="checked">
<span class="label-name">{'Check for updates'|t}</span><br>
<span class="label-desc">
{'Notify me when a new release is ready'|t}
</span>
</label>
</div>
<div>
<label class="checkbox">
<input type="checkbox" name="enableApi" id="enableApi" checked />
<span class="label-name">{'Enable REST API'|t}</span><br>
<span class="label-desc">{'Allow third party software to use Shaarli such as mobile application'|t}</span>
</label>
</div>
<div class="submit-buttons">
<input type="submit" value="{'Install'|t}" name="Save">
</div>
</form>
</div>
<div class="pure-g">
<div class="pure-u-lg-1-6 pure-u-1-24"></div>
<div class="pure-u-lg-2-3 pure-u-22-24 page-form page-form-complete">
<h2 class="window-title">{'Server requirements'|t}</h2>
{include="server.requirements"}
</div>
</div>
{include="page.footer"}
</body>
</html>