Make web of trust comment configurable. (#24)
[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.RuntimeOptions.Title|l10n|html></h2>
19
20                 <p><%= Page.Options.Option.InsertionDelay.Description|l10n|html></p>
21                 <p><input type="text" name="insertion-delay" value="<% insertion-delay|html>" /></p>
22
23                 <h2><%= Page.Options.Section.TrustOptions.Title|l10n|html></h2>
24
25                 <p><%= Page.Options.Option.PositiveTrust.Description|l10n|html></p>
26                 <p><input type="text" name="positive-trust" value="<% positive-trust|html>" /></p>
27
28                 <p><%= Page.Options.Option.NegativeTrust.Description|l10n|html></p>
29                 <p><input type="text" name="negative-trust" value="<% negative-trust|html>" /></p>
30
31                 <p><%= Page.Options.Option.TrustComment.Description|l10n|html></p>
32                 <p><input type="text" name="trust-comment" value="<% trust-comment|html>" /></p>
33
34                 <h2><%= Page.Options.Section.RescueOptions.Title|l10n|html></h2>
35
36                 <p><%= Page.Options.Option.SoneRescueMode.Description|l10n|html></p>
37                 <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>
38
39                 <h2><%= Page.Options.Section.Cleaning.Title|l10n|html></h2>
40
41                 <p><%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
42                 <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>
43
44                 <p><%= Page.Options.Option.ReallyClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
45                 <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>
46
47                 <p><button type="submit"><%= Page.Options.Button.Save|l10n|html></button></p>
48
49         </form>
50
51 <%include include/tail.html>