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