blob: 2942d195fce863346d3bf9fb8cab9f87dfbf2b09 (
plain)
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
|
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>
<%--@elvariable id="command" type="net.sourceforge.subsonic.command.PersonalSettingsCommand"--%>
<html><head>
<%@ include file="head.jsp" %>
<script type="text/javascript" src="<c:url value="/script/scripts.js"/>"></script>
<script type="text/javascript" src="<c:url value="/script/prototype.js"/>"></script>
<script type="text/javascript" language="javascript">
function enableLastFmFields() {
var checkbox = $("lastFm");
var table = $("lastFmTable");
if (checkbox && checkbox.checked) {
table.show();
} else {
table.hide();
}
}
</script>
</head>
<body class="mainframe bgcolor1" onload="enableLastFmFields()">
<script type="text/javascript" src="<c:url value="/script/wz_tooltip.js"/>"></script>
<script type="text/javascript" src="<c:url value="/script/tip_balloon.js"/>"></script>
<c:import url="settingsHeader.jsp">
<c:param name="cat" value="personal"/>
<c:param name="restricted" value="${not command.user.adminRole}"/>
</c:import>
<h2><fmt:message key="personalsettings.title"><fmt:param>${command.user.username}</fmt:param></fmt:message></h2>
<fmt:message key="common.default" var="default"/>
<form:form method="post" action="personalSettings.view" commandName="command">
<table style="white-space:nowrap" class="indent">
<tr>
<td><fmt:message key="personalsettings.language"/></td>
<td>
<form:select path="localeIndex" cssStyle="width:15em">
<form:option value="-1" label="${default}"/>
<c:forEach items="${command.locales}" var="locale" varStatus="loopStatus">
<form:option value="${loopStatus.count - 1}" label="${locale}"/>
</c:forEach>
</form:select>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="language"/></c:import>
</td>
</tr>
<tr>
<td><fmt:message key="personalsettings.theme"/></td>
<td>
<form:select path="themeIndex" cssStyle="width:15em">
<form:option value="-1" label="${default}"/>
<c:forEach items="${command.themes}" var="theme" varStatus="loopStatus">
<form:option value="${loopStatus.count - 1}" label="${theme.name}"/>
</c:forEach>
</form:select>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="theme"/></c:import>
</td>
</tr>
</table>
<table class="indent">
<tr>
<th style="padding:0 0.5em 0.5em 0;text-align:left;"><fmt:message key="personalsettings.display"/></th>
<th style="padding:0 0.5em 0.5em 0.5em;text-align:center;"><fmt:message key="personalsettings.browse"/></th>
<th style="padding:0 0 0.5em 0.5em;text-align:center;"><fmt:message key="personalsettings.playlist"/></th>
<th style="padding:0 0 0.5em 0.5em">
<c:import url="helpToolTip.jsp"><c:param name="topic" value="visibility"/></c:import>
</th>
</tr>
<tr>
<td><fmt:message key="personalsettings.tracknumber"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.trackNumberVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.trackNumberVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.artist"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.artistVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.artistVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.album"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.albumVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.albumVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.genre"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.genreVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.genreVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.year"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.yearVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.yearVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.bitrate"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.bitRateVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.bitRateVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.duration"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.durationVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.durationVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.format"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.formatVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.formatVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.filesize"/></td>
<td style="text-align:center"><form:checkbox path="mainVisibility.fileSizeVisible" cssClass="checkbox"/></td>
<td style="text-align:center"><form:checkbox path="playlistVisibility.fileSizeVisible" cssClass="checkbox"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.captioncutoff"/></td>
<td style="text-align:center"><form:input path="mainVisibility.captionCutoff" size="3"/></td>
<td style="text-align:center"><form:input path="playlistVisibility.captionCutoff" size="3"/></td>
</tr>
</table>
<table class="indent">
<tr>
<td><form:checkbox path="showNowPlayingEnabled" id="nowPlaying" cssClass="checkbox"/></td>
<td><label for="nowPlaying"><fmt:message key="personalsettings.shownowplaying"/></label></td>
<td style="padding-left:2em"><form:checkbox path="showChatEnabled" id="chat" cssClass="checkbox"/></td>
<td><label for="chat"><fmt:message key="personalsettings.showchat"/></label></td>
</tr>
<tr>
<td><form:checkbox path="nowPlayingAllowed" id="nowPlayingAllowed" cssClass="checkbox"/></td>
<td><label for="nowPlayingAllowed"><fmt:message key="personalsettings.nowplayingallowed"/></label></td>
<td style="padding-left:2em"><form:checkbox path="partyModeEnabled" id="partyModeEnabled" cssClass="checkbox"/></td>
<td><label for="partyModeEnabled"><fmt:message key="personalsettings.partymode"/></label>
<c:import url="helpToolTip.jsp"><c:param name="topic" value="partymode"/></c:import>
</td>
</tr>
</table>
<table class="indent">
<tr>
<td><form:checkbox path="finalVersionNotificationEnabled" id="final" cssClass="checkbox"/></td>
<td><label for="final"><fmt:message key="personalsettings.finalversionnotification"/></label></td>
</tr>
<tr>
<td><form:checkbox path="betaVersionNotificationEnabled" id="beta" cssClass="checkbox"/></td>
<td><label for="beta"><fmt:message key="personalsettings.betaversionnotification"/></label></td>
</tr>
</table>
<table class="indent">
<tr>
<td><form:checkbox path="lastFmEnabled" id="lastFm" cssClass="checkbox" onclick="javascript:enableLastFmFields()"/></td>
<td><label for="lastFm"><fmt:message key="personalsettings.lastfmenabled"/></label></td>
</tr>
</table>
<table id="lastFmTable" style="padding-left:2em">
<tr>
<td><fmt:message key="personalsettings.lastfmusername"/></td>
<td><form:input path="lastFmUsername" size="24"/></td>
</tr>
<tr>
<td><fmt:message key="personalsettings.lastfmpassword"/></td>
<td><form:password path="lastFmPassword" size="24"/></td>
</tr>
</table>
<p style="padding-top:1em;padding-bottom:1em">
<input type="submit" value="<fmt:message key="common.save"/>" style="margin-right:0.3em"/>
<input type="button" value="<fmt:message key="common.cancel"/>" onclick="location.href='nowPlaying.view'">
</p>
<h2><fmt:message key="personalsettings.avatar.title"/></h2>
<p style="padding-top:1em">
<c:forEach items="${command.avatars}" var="avatar">
<c:url value="avatar.view" var="avatarUrl">
<c:param name="id" value="${avatar.id}"/>
</c:url>
<span style="white-space:nowrap;">
<form:radiobutton id="avatar-${avatar.id}" path="avatarId" value="${avatar.id}"/>
<label for="avatar-${avatar.id}"><img src="${avatarUrl}" alt="${avatar.name}" width="${avatar.width}" height="${avatar.height}" style="padding-right:2em;padding-bottom:1em"/></label>
</span>
</c:forEach>
</p>
<p>
<form:radiobutton id="noAvatar" path="avatarId" value="-1"/>
<label for="noAvatar"><fmt:message key="personalsettings.avatar.none"/></label>
</p>
<p>
<form:radiobutton id="customAvatar" path="avatarId" value="-2"/>
<label for="customAvatar"><fmt:message key="personalsettings.avatar.custom"/>
<c:if test="${not empty command.customAvatar}">
<sub:url value="avatar.view" var="avatarUrl">
<sub:param name="username" value="${command.user.username}"/>
</sub:url>
<img src="${avatarUrl}" alt="${command.customAvatar.name}" width="${command.customAvatar.width}" height="${command.customAvatar.height}" style="padding-right:2em"/>
</c:if>
</label>
</p>
</form:form>
<form method="post" enctype="multipart/form-data" action="avatarUpload.view">
<table>
<tr>
<td style="padding-right:1em"><fmt:message key="personalsettings.avatar.changecustom"/></td>
<td style="padding-right:1em"><input type="file" id="file" name="file" size="40"/></td>
<td style="padding-right:1em"><input type="submit" value="<fmt:message key="personalsettings.avatar.upload"/>"/></td>
</tr>
</table>
</form>
<p class="detail" style="text-align:right">
<fmt:message key="personalsettings.avatar.courtesy"/>
</p>
<c:if test="${command.reloadNeeded}">
<script language="javascript" type="text/javascript">
parent.location.href="index.view?";
</script>
</c:if>
</body></html>
|