]> git.plutz.net Git - serve0/blob - templates/preferences.html.sh
styling for pagination links
[serve0] / templates / preferences.html.sh
1 # Copyright 2015, 2016, 2018 Paul Hänsch
2 #
3 # This file is part of Serve0
4
5 # Serve0 is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9
10 # Serve0 is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 # GNU Affero General Public License for more details.
14
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Serve0  If not, see <http://www.gnu.org/licenses/>. 
17
18 cat <<EOF
19   <form class="panel switchable top" id="preferences"
20    action="?action=preferences" method="post" accept-charset="UTF-8">
21     <a class="panel toggle" href="#">Hide</a>
22
23     <fieldset>
24       <legend>Watch videos:</legend>
25       $(form_radio watch 240p     "${_COOKIE[watch]}" "as Download in 240p"   )<br/>
26       $(form_radio watch 480p     "${_COOKIE[watch]}" "as Download in 480p"   )<br/>
27       $(form_radio watch download "${_COOKIE[watch]}" "as Download (original)")<br/>
28       $(form_radio watch raspi    "${_COOKIE[watch]}" "on playback device"    )<br/>
29       $(form_radio watch player   "${_COOKIE[watch]}" "in embedded player"    )<br/>
30       $(form_radio watch server   "${_COOKIE[watch]}" "on screen connected to server")<br/>
31
32       $(form_check fakemp4 yes "${_COOKIE[fakemp4]}" "Fake .mp4 file ending, even if file is of different type")
33     </fieldset>
34
35     <fieldset>
36       <legend>Display:</legend>
37       <label for="n_pagesize">Number of items per page: </label>
38       <input type="number" name="pagesize" value="${pagesize}" id="n_pagesize">
39     </fieldset>
40
41     <input type="hidden" name="referrer" value="$(attribsafe ${REQUEST_URI})">
42     <input type="submit" value="Set Cookie!">
43   </form>
44 EOF
45
46 # vi:set filetype=html: