Allow user to configuration the number of posts shown on a page.
[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                 });
12         </script>
13
14         <h1><%= Page.Options.Page.Title|l10n|html></h1>
15
16         <p><%= Page.Options.Page.Description|l10n|html></p>
17
18         <form id="options" method="post">
19                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
20
21                 <h2><%= Page.Options.Section.SoneSpecificOptions.Title|l10n|html></h2>
22
23                 <%ifnull currentSone>
24                         <p><%= Page.Options.Section.SoneSpecificOptions.NotLoggedIn|l10n|html|replace needle="{link}" replacement='<a href="login.html">'|replace needle="{/link}" replacement='</a>'></p>
25                 <%/if>
26
27                 <p>
28                         <input type="checkbox" name="auto-follow"<%ifnull currentSone> disabled="disabled"<%/if><%if auto-follow> checked="checked"<%/if> />
29                         <%= Page.Options.Option.AutoFollow.Description|l10n|html>
30                 </p>
31
32                 <h2><%= Page.Options.Section.RuntimeOptions.Title|l10n|html></h2>
33
34                 <p><%= Page.Options.Option.InsertionDelay.Description|l10n|html></p>
35                 <p><input type="text" name="insertion-delay" value="<% insertion-delay|html>" /></p>
36
37                 <p><%= Page.Options.Option.PostsPerPage.Description|l10n|html></p>
38                 <p><input type="text" name="posts-per-page" value="<% posts-per-page|html>" /></p>
39
40                 <h2><%= Page.Options.Section.TrustOptions.Title|l10n|html></h2>
41
42                 <p><%= Page.Options.Option.PositiveTrust.Description|l10n|html></p>
43                 <p><input type="text" name="positive-trust" value="<% positive-trust|html>" /></p>
44
45                 <p><%= Page.Options.Option.NegativeTrust.Description|l10n|html></p>
46                 <p><input type="text" name="negative-trust" value="<% negative-trust|html>" /></p>
47
48                 <p><%= Page.Options.Option.TrustComment.Description|l10n|html></p>
49                 <p><input type="text" name="trust-comment" value="<% trust-comment|html>" /></p>
50
51                 <h2><%= Page.Options.Section.RescueOptions.Title|l10n|html></h2>
52
53                 <p><%= Page.Options.Option.SoneRescueMode.Description|l10n|html></p>
54                 <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>
55
56                 <h2><%= Page.Options.Section.Cleaning.Title|l10n|html></h2>
57
58                 <p><%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
59                 <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>
60
61                 <p><%= Page.Options.Option.ReallyClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
62                 <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>
63
64                 <p><button type="submit"><%= Page.Options.Button.Save|l10n|html></button></p>
65
66         </form>
67
68 <%include include/tail.html>