Add a “Sone rescue mode.”
[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.RescueOptions.Title|l10n|html></h2>
24
25                 <p><%= Page.Options.Option.SoneRescueMode.Description|l10n|html></p>
26                 <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>
27
28                 <h2><%= Page.Options.Section.Cleaning.Title|l10n|html></h2>
29
30                 <p><%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
31                 <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>
32
33                 <p><%= Page.Options.Option.ReallyClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
34                 <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>
35
36                 <p><button type="submit"><%= Page.Options.Button.Save|l10n|html></button></p>
37
38         </form>
39
40 <%include include/tail.html>