chiark / gitweb /
db03220d33ecaed48be540c2a41d28db7fd754c3
[disorder] / templates / prefs.tmpl
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
2 <!--
3 This file is part of DisOrder.
4 Copyright (C) 2004-2008 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 @stdhead{prefs}
24  </head>
25  <body>
26 @stdmenu{prefs}
27    <h1>@label:prefs.title@</h1>
28
29    <form class=prefs action="@url@" method=POST
30          enctype="multipart/form-data" accept-charset=utf-8>
31     <input type=hidden name="files" value="@nfiles@">
32     <input type=hidden name=parts value="artist album title">
33    @files{
34    <p class="prefs_head">Preferences for <span class="prefs_track">@arg{@index@_file}@</span></p>
35     <input type=hidden name="@index@_file" value="@arg{@index@_file}@">
36     <table class=prefs>
37       <tr class="headings">
38        <th class="prefs_name">@label:prefs.name@</th>
39        <th class="prefs_value">@label:prefs.value@</th>
40       </tr>
41       <tr class=even>
42        <td class="prefs_name">@label:heading.title@</td>
43        <td class="prefs_value"><input size=40 type=text name="@index@_title" value="@part{@arg{@index@_file}display}{title}{display}"></td>
44       </tr>
45       <tr class=odd>
46        <td class="prefs_name">@label:heading.album@</td>
47        <td class="prefs_value"><input size=40 type=text name="@index@_album" value="@part{display}{album}{@arg{@index@_file}@}@"></td>
48       </tr>
49       <tr class=even>
50        <td class="prefs_name">@label:heading.artist@</td>
51        <td class="prefs_value"><input size=40 type=text name="@index@_artist" value="@part{display}{artist}{@arg{@index@_file}@}@"></td>
52       </tr>
53       <tr class=odd>
54        <td class="prefs_name">@label:prefs.tags@</td>
55        <td class="prefs_value"><input size=40 type=text name="@index@_tags" value="@pref{@arg{@index@_file}@}{tags}@"></td>
56       </tr>
57       <tr class=even>
58        <td class="prefs_name">@label:prefs.weight@</td>
59        <td class="prefs_value"><input size=40 type=text name="@index@_weight" value="@pref{@arg{@index@_file}@}{weight}@"></td>
60       </tr>
61       <tr class=odd>
62        <td class="prefs_name">@label:prefs.random@</td>
63        <td class="prefs_value"><input type=checkbox
64          name="@index@_random" value=true
65         @if{@ne{@pref{@arg{@index@_file}@}{pick_at_random}@}{0}@}{ checked}{}@></td>
66     </table>
67    }@
68     
69     <p>
70      <button type=submit name=submit>
71       @label:prefs.set@
72      </button>
73      <input name=action type=hidden value=prefs>
74     </p>
75    </form>
76
77 @credits
78  </body>
79 </html>
80 @discard{
81 Local variables:
82 mode:sgml
83 sgml-always-quote-attributes:nil
84 sgml-indent-step:1
85 sgml-indent-data:t
86 indent-tabs-mode:nil
87 fill-column:79
88 End:
89 }@#