aboutsummaryrefslogtreecommitdiff
path: root/subsonic-main/src/main/webapp/WEB-INF/jsp/podcastSettings.jsp
blob: 07d99e28264e2576a4b15852b438413db776e196 (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
<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="iso-8859-1" %>

<html><head>
    <%@ include file="head.jsp" %>
</head>
<body class="mainframe bgcolor1">

<c:import url="settingsHeader.jsp">
    <c:param name="cat" value="podcast"/>
</c:import>

<form:form commandName="command" action="podcastSettings.view" method="post">

<table class="indent">
    <tr>
        <td><fmt:message key="podcastsettings.update"/></td>
        <td>
            <form:select path="interval" cssStyle="width:20em">
                <fmt:message key="podcastsettings.interval.manually" var="never"/>
                <fmt:message key="podcastsettings.interval.hourly" var="hourly"/>
                <fmt:message key="podcastsettings.interval.daily" var="daily"/>
                <fmt:message key="podcastsettings.interval.weekly" var="weekly"/>

                <form:option value="-1" label="${never}"/>
                <form:option value="1" label="${hourly}"/>
                <form:option value="24" label="${daily}"/>
                <form:option value="168" label="${weekly}"/>
            </form:select>
        </td>
    </tr>

    <tr>
        <td><fmt:message key="podcastsettings.keep"/></td>
        <td>
            <form:select path="episodeRetentionCount" cssStyle="width:20em">
                <fmt:message key="podcastsettings.keep.all" var="all"/>
                <fmt:message key="podcastsettings.keep.one" var="one"/>

                <form:option value="-1" label="${all}"/>
                <form:option value="1" label="${one}"/>

                <c:forTokens items="2 3 4 5 10 20 30 50" delims=" " var="count">
                    <fmt:message key="podcastsettings.keep.many" var="many"><fmt:param value="${count}"/></fmt:message>
                    <form:option value="${count}" label="${many}"/>
                </c:forTokens>

            </form:select>
        </td>
    </tr>

    <tr>
        <td><fmt:message key="podcastsettings.download"/></td>
        <td>
            <form:select path="episodeDownloadCount" cssStyle="width:20em">
                <fmt:message key="podcastsettings.download.all" var="all"/>
                <fmt:message key="podcastsettings.download.one" var="one"/>
                <fmt:message key="podcastsettings.download.none" var="none"/>

                <form:option value="-1" label="${all}"/>
                <form:option value="1" label="${one}"/>

                <c:forTokens items="2 3 4 5 10" delims=" " var="count">
                    <fmt:message key="podcastsettings.download.many" var="many"><fmt:param value="${count}"/></fmt:message>
                    <form:option value="${count}" label="${many}"/>
                </c:forTokens>
                <form:option value="0" label="${none}"/>

            </form:select>
        </td>
    </tr>

    <tr>
        <td><fmt:message key="podcastsettings.folder"/></td>
        <td><form:input path="folder" cssStyle="width:20em"/></td>
    </tr>

    <tr>
        <td style="padding-top:1.5em" colspan="2">
            <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'">
        </td>
    </tr>

</table>

</form:form>

</body></html>