aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/configure.html
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/default/configure.html')
-rw-r--r--tpl/default/configure.html185
1 files changed, 185 insertions, 0 deletions
diff --git a/tpl/default/configure.html b/tpl/default/configure.html
new file mode 100644
index 00000000..0d1bd6ff
--- /dev/null
+++ b/tpl/default/configure.html
@@ -0,0 +1,185 @@
1<!DOCTYPE html>
2<html>
3<head>
4 {include="includes"}
5</head>
6<body>
7{include="page.header"}
8
9{$ratioLabel='5-12'}
10{$ratioLabelMobile='7-8'}
11{$ratioInput='7-12'}
12{$ratioInputMobile='1-8'}
13
14<form method="POST" action="#" name="configform" id="configform">
15 <div class="pure-g">
16 <div class="pure-u-lg-1-6 pure-u-1-8"></div>
17 <div class="pure-u-lg-2-3 pure-u-3-4 page-form page-form-complete">
18 <h2>{'Configure'|t}</h2>
19 <div class="pure-g">
20 <div class="pure-u-lg-{$ratioLabel} pure-u-1">
21 <div class="form-label">
22 <label for="title">
23 <span class="label-name">Shaarli {'title'|t}</span>
24 </label>
25 </div>
26 </div>
27 <div class="pure-u-lg-7-12 pure-u-1">
28 <div class="form-input">
29 <input type="text" name="title" id="title" size="50" value="{$title}">
30 </div>
31 </div>
32 </div>
33 <div class="pure-g">
34 <div class="pure-u-lg-{$ratioLabel} pure-u-1">
35 <div class="form-label">
36 <label for="titleLink">
37 <span class="label-name">{'Title link'|t}</span><br>
38 <span class="label-desc">{'Default value'|t}: ?</span>
39 </label>
40 </div>
41 </div>
42 <div class="pure-u-lg-{$ratioInput} pure-u-1">
43 <div class="form-input">
44 <input type="text" name="titleLink" id="titleLink" size="50" value="{$titleLink}">
45 </div>
46 </div>
47 </div>
48 <div class="pure-g">
49 <div class="pure-u-lg-{$ratioLabel} pure-u-1 ">
50 <div class="form-label">
51 <label>
52 <span class="label-name">{'Timezone'|t}</span>
53 </label>
54 </div>
55 </div>
56 <div class="pure-u-lg-{$ratioInput} pure-u-1 ">
57 <div class="form-input">
58 {ignore}FIXME! too hackish, needs to be fixed upstream{/ignore}
59 <div class="timezone" id="timezone-remove">{$timezone_form}</div>
60 <div class="timezone" id="timezone-add"></div>
61 </div>
62 </div>
63 </div>
64 <div class="pure-g">
65 <div class="pure-u-lg-{$ratioLabel} pure-u-1 ">
66 <div class="form-label">
67 <label for="redirector">
68 <span class="label-name">{'Redirector'|t}</span><br>
69 <span class="label-desc">{'e. g.'|t} <i>http://anonym.to/?</i> {'will mask the HTTP_REFERER'|t}</span>
70 </label>
71 </div>
72 </div>
73 <div class="pure-u-lg-{$ratioInput} pure-u-1 ">
74 <div class="form-input">
75 <input type="text" name="redirector" id="redirector" size="50" value="{$redirector}">
76 </div>
77 </div>
78 </div>
79 <div class="pure-g">
80 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
81 <div class="form-label">
82 <label for="disablesessionprotection">
83 <span class="label-name">{'Disable session cookie hijacking protection'|t}</span><br>
84 <span class="label-desc">
85 {'Check this if you get disconnected or if your IP address changes often'|t}
86 </span>
87 </label>
88 </div>
89 </div>
90 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
91 <div class="form-input">
92 <input type="checkbox" name="disablesessionprotection" id="disablesessionprotection"
93 {if="$session_protection_disabled"}checked{/if}>
94 </div>
95 </div>
96 </div>
97 <div class="pure-g">
98 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
99 <div class="form-label">
100 <label for="privateLinkByDefault">
101 <span class="label-name">{'Private links by default'|t}</span><br>
102 <span class="label-desc">{'All new links are private by default'|t}</span>
103 </label>
104 </div>
105 </div>
106 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
107 <div class="form-input">
108 <input type="checkbox" name="privateLinkByDefault" id="privateLinkByDefault"
109 {if="$private_links_default"}checked{/if}/>
110 </div>
111 </div>
112 </div>
113 <div class="pure-g">
114 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile} ">
115 <div class="form-label">
116 <label for="enableRssPermalinks">
117 <span class="label-name">{'RSS direct links'|t}</span><br>
118 <span class="label-desc">{'Check this to use direct URL instead of permalink in feeds'|t}</span>
119 </label>
120 </div>
121 </div>
122 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile} ">
123 <div class="form-input">
124 <input type="checkbox" name="enableRssPermalinks" id="enableRssPermalinks"
125 {if="$enable_rss_permalinks"}checked{/if}/>
126 </div>
127 </div>
128 </div>
129 <div class="pure-g">
130 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
131 <div class="form-label">
132 <label for="hidePublicLinks">
133 <span class="label-name">{'Hide public links'|t}</span><br>
134 <span class="label-desc">{'Do not show any links if the user is not logged in'|t}</span>
135 </label>
136 </div>
137 </div>
138 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
139 <div class="form-input">
140 <input type="checkbox" name="hidePublicLinks" id="hidePublicLinks"
141 {if="$hide_public_links"}checked{/if}/>
142 </div>
143 </div>
144 </div>
145 <div class="pure-g">
146 <div class="pure-u-lg-{$ratioLabel} pure-u-{$ratioLabelMobile}">
147 <div class="form-label">
148 <label for="hidePublicLinks">
149 <span class="label-name">{'Check updates'|t}</span><br>
150 <span class="label-desc">{'Notify me when a new release is ready'|t}</span>
151 </label>
152 </div>
153 </div>
154 <div class="pure-u-lg-{$ratioInput} pure-u-{$ratioInputMobile}">
155 <div class="form-input">
156 <input type="checkbox" name="updateCheck" id="updateCheck"
157 {if="$enable_update_check"}checked{/if}/>
158 </div>
159 </div>
160 </div>
161 <div class="center">
162 <input type="submit" value="{'Save'|t}" name="save">
163 </div>
164 </div>
165 </div>
166 <input type="hidden" name="token" value="{$token}">
167</form>
168
169{include="page.footer"}
170
171<script>
172 (function (window, document) {
173 var toRemove = document.getElementById('timezone-remove');
174 var firstSelect = toRemove.getElementsByTagName('select')[0];
175 var secondSelect = toRemove.getElementsByTagName('select')[1];
176 toRemove.parentNode.removeChild(toRemove);
177 var toAdd = document.getElementById('timezone-add');
178 var newTimezone = '<span class="timezone-continent">Continent ' + firstSelect.outerHTML + '</span>';
179 newTimezone += ' <span class="timezone-country">Country ' + secondSelect.outerHTML + '</span>';
180 toAdd.innerHTML = newTimezone;
181 })(this, this.document);
182</script>
183</body>
184</html>
185