Show the first of the two “clear on next restart” options on the Options page.
[Sone.git] / src / main / resources / templates / options.html
1 <%include include/head.html>
2
3         <script language="javascript">
4                 $(document).ready(function() {
5                         registerInputTextareaSwap("#sone #options input[name=insertion-delay]", "WebInterface.DefaultText.Option.InsertionDelay", "insertion-delay", true, true);
6                 });
7         </script>
8
9         <h1><%= Page.Options.Page.Title|l10n|html></h1>
10
11         <p><%= Page.Options.Page.Description|l10n|html></p>
12
13         <form id="options" method="post">
14                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
15
16                 <p><%= Page.Options.Option.InsertionDelay.Description|l10n|html></p>
17                 <p><input type="text" name="insertion-delay" value="<% insertion-delay|html>" /></p>
18
19                 <p><%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
20                 <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>
21
22                 <p><button type="submit"><%= Page.Options.Button.Save|l10n|html></button></p>
23
24         </form>
25
26 <%include include/tail.html>