chiark / gitweb /
abolish sidebar.html; too much hassle to maintain two
[disorder] / templates / prefs.html
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <!--
3 This file is part of DisOrder.
4 Copyright (C) 2004, 2005, 2006 Richard Kettlewell
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
19 USA
20 -->
21 <html>
22  <head>
23 @include:stdhead@
24   <title>@label:prefs.title@</title>
25  </head>
26  <body>
27 @include{topbar}@
28    <h1 class=title>@label:prefs.title@</h1>
29
30    <form class=prefs action="@url@" method=POST
31          enctype="multipart/form-data" accept-charset=utf-8>
32     <input type=hidden name="files" value="@nfiles@">
33     <input type=hidden name=nonce value=@nonce@>
34     <input type=hidden name=parts value="artist album title">
35    @files{
36    <p class="prefs_head">Preferences for <span class="prefs_track">@arg{@index@_file}@</span></p>
37     <input type=hidden name="@index@_file" value="@arg{@index@_file}@">
38     <table class=prefs>
39       <tr class="prefs_headings">
40        <th class="prefs_name">@label:prefs.name@</th>
41        <th class="prefs_value">@label:prefs.value@</th>
42       </tr>
43       <tr class=even>
44        <td class="prefs_name">@label:heading.title@</td>
45        <td class="prefs_value"><input size=40 class="prefs_value" type=text name="@index@_title" value="@part{display}{title}{@arg{@index@_file}@}@"></td>
46       </tr>
47       <tr class=odd>
48        <td class="prefs_name">@label:heading.album@</td>
49        <td class="prefs_value"><input size=40 class="prefs_value" type=text name="@index@_album" value="@part{display}{album}{@arg{@index@_file}@}@"></td>
50       </tr>
51       <tr class=even>
52        <td class="prefs_name">@label:heading.artist@</td>
53        <td class="prefs_value"><input size=40 class="prefs_value" type=text name="@index@_artist" value="@part{display}{artist}{@arg{@index@_file}@}@"></td>
54       </tr>
55       <tr class=odd>
56        <td class="prefs_name">@label:prefs.tags@</td>
57        <td class="prefs_value"><input size=40 class="prefs_value" type=text name="@index@_tags" value="@pref{@arg{@index@_file}@}{tags}@"></td>
58       </tr>
59       <tr class=even>
60        <td class="prefs_name">@label:prefs.random@</td>
61        <td class="prefs_value"><input class="prefs_value" type=checkbox
62          name="@index@_random" value=true
63         @if{@ne{@pref{@arg{@index@_file}@}{pick_at_random}@}{0}@}{ checked}{}@></td>
64     </table>
65    }@
66     
67     <p>
68      <button class="pref_set" type=submit name=action value=prefs>
69       @label:prefs.set@
70      </button>
71     </p>
72    </form>
73
74 @include{topbarend}@
75  </body>
76 </html>
77 @@
78 <!--
79 Local variables:
80 mode:sgml
81 sgml-always-quote-attributes:nil
82 sgml-indent-step:1
83 sgml-indent-data:t
84 End:
85 -->