Merge branch 'release-0.6.5'
[Sone.git] / src / main / resources / templates / options.html
1 <%include include/head.html>
2
3         <script language="javascript">
4                 $(document).ready(function() {
5                         getTranslation("WebInterface.DefaultText.Option.InsertionDelay", function(insertionDelayDefaultText) {
6                                 registerInputTextareaSwap("#sone #options input[name=insertion-delay]", insertionDelayDefaultText, "insertion-delay", true, true);
7                         });
8                         getTranslation("WebInterface.DefaultText.Option.PostsPerPage", function(postsPerPageText) {
9                                 registerInputTextareaSwap("#sone #options input[name=posts-per-page]", postsPerPageText, "posts-per-page", true, true);
10                         });
11                         getTranslation("WebInterface.DefaultText.Option.PositiveTrust", function(positiveTrustText) {
12                                 registerInputTextareaSwap("#sone #options input[name=positive-trust]", positiveTrustText, "positive-trust", true, true);
13                         });
14                         getTranslation("WebInterface.DefaultText.Option.NegativeTrust", function(negativeTrustText) {
15                                 registerInputTextareaSwap("#sone #options input[name=negative-trust]", negativeTrustText, "negative-trust", true, true);
16                         });
17                         getTranslation("WebInterface.DefaultText.Option.TrustComment", function(trustCommentText) {
18                                 registerInputTextareaSwap("#sone #options input[name=trust-comment]", trustCommentText, "trust-comment", true, true);
19                         });
20                 });
21         </script>
22
23         <h1><%= Page.Options.Page.Title|l10n|html></h1>
24
25         <p><%= Page.Options.Page.Description|l10n|html></p>
26
27         <form id="options" method="post">
28                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
29
30                 <h2><%= Page.Options.Section.SoneSpecificOptions.Title|l10n|html></h2>
31
32                 <%ifnull currentSone>
33                         <p><%= Page.Options.Section.SoneSpecificOptions.NotLoggedIn|l10n|html|replace needle="{link}" replacement='<a href="login.html">'|replace needle="{/link}" replacement='</a>'></p>
34                 <%else>
35                         <p><%= Page.Options.Section.SoneSpecificOptions.LoggedIn|l10n|html></p>
36                 <%/if>
37
38                 <p>
39                         <input type="checkbox" name="auto-follow"<%ifnull currentSone> disabled="disabled"<%/if><%if auto-follow> checked="checked"<%/if> />
40                         <%= Page.Options.Option.AutoFollow.Description|l10n|html>
41                 </p>
42
43                 <h2><%= Page.Options.Section.RuntimeOptions.Title|l10n|html></h2>
44
45                 <p><%= Page.Options.Option.InsertionDelay.Description|l10n|html></p>
46                 <%if =insertion-delay|in collection=fieldErrors>
47                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
48                 <%/if>
49                 <p><input type="text" name="insertion-delay" value="<% insertion-delay|html>" /></p>
50
51                 <p><%= Page.Options.Option.PostsPerPage.Description|l10n|html></p>
52                 <%if =posts-per-page|in collection=fieldErrors>
53                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
54                 <%/if>
55                 <p><input type="text" name="posts-per-page" value="<% posts-per-page|html>" /></p>
56
57                 <p>
58                         <input type="checkbox" name="require-full-access"<%if require-full-access> checked="checked"<%/if> />
59                         <%= Page.Options.Option.RequireFullAccess.Description|l10n|html></p>
60                 </p>
61
62                 <h2><%= Page.Options.Section.TrustOptions.Title|l10n|html></h2>
63
64                 <p><%= Page.Options.Option.PositiveTrust.Description|l10n|html></p>
65                 <%if =positive-trust|in collection=fieldErrors>
66                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
67                 <%/if>
68                 <p><input type="text" name="positive-trust" value="<% positive-trust|html>" /></p>
69
70                 <p><%= Page.Options.Option.NegativeTrust.Description|l10n|html></p>
71                 <%if =negative-trust|in collection=fieldErrors>
72                         <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
73                 <%/if>
74                 <p><input type="text" name="negative-trust" value="<% negative-trust|html>" /></p>
75
76                 <p><%= Page.Options.Option.TrustComment.Description|l10n|html></p>
77                 <p><input type="text" name="trust-comment" value="<% trust-comment|html>" /></p>
78
79                 <h2><%= Page.Options.Section.FcpOptions.Title|l10n|html></h2>
80
81                 <p><input type="checkbox" name="fcp-interface-active"<%if fcp-interface-active> checked="checked"<%/if> /> <%= Page.Options.Option.FcpInterfaceActive.Description|l10n|html></p>
82
83                 <p>
84                         <%= Page.Options.Option.FcpFullAccessRequired.Description|l10n|html|replace needle="{link}" replacement='<a href="/config/fcp">'|replace needle="{/link}" replacement='</a>'>
85                         <select name="fcp-full-access-required">
86                                 <option value="0"<%if fcp-full-access-required|match value="0"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.No|l10n|html></option>
87                                 <option value="1"<%if fcp-full-access-required|match value="1"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.Writing|l10n|html></option>
88                                 <option value="2"<%if fcp-full-access-required|match value="2"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.Always|l10n|html></option>
89                         </select>
90                 </p>
91
92                 <h2><%= Page.Options.Section.RescueOptions.Title|l10n|html></h2>
93
94                 <p><%= Page.Options.Option.SoneRescueMode.Description1|l10n|html></p>
95                 <p><%= Page.Options.Option.SoneRescueMode.Description2|l10n|html></p>
96                 <p><%= Page.Options.Option.SoneRescueMode.Description3|l10n|html></p>
97                 <p><select name="sone-rescue-mode"><option disabled="disabled"><%= WebInterface.SelectBox.Choose|l10n|html></option><option value="true"<%if sone-rescue-mode> selected="selected"<%/if>><%= WebInterface.SelectBox.Yes|l10n|html></option><option value="false"<%if !sone-rescue-mode> selected="selected"<%/if>><%= WebInterface.SelectBox.No|l10n|html></option></select>
98
99                 <h2><%= Page.Options.Section.Cleaning.Title|l10n|html></h2>
100
101                 <p><%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
102                 <p><select name="clear-on-next-restart"><option disabled="disabled"><%= WebInterface.SelectBox.Choose|l10n|html></option><option value="true"<%if clear-on-next-restart> selected="selected"<%/if>><%= WebInterface.SelectBox.Yes|l10n|html></option><option value="false"<%if ! clear-on-next-restart> selected="selected"<%/if>><%= WebInterface.SelectBox.No|l10n|html></option></select>
103
104                 <p><%= Page.Options.Option.ReallyClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
105                 <p><select name="really-clear-on-next-restart"><option disabled="disabled"><%= WebInterface.SelectBox.Choose|l10n|html></option><option value="true"<%if really-clear-on-next-restart> selected="selected"<%/if>><%= WebInterface.SelectBox.Yes|l10n|html></option><option value="false"<%if ! really-clear-on-next-restart> selected="selected"<%/if>><%= WebInterface.SelectBox.No|l10n|html></option></select>
106
107                 <p><button type="submit"><%= Page.Options.Button.Save|l10n|html></button></p>
108
109         </form>
110
111 <%include include/tail.html>