Merge branch 'next' into edit-wot-trust
[Sone.git] / src / main / resources / templates / options.html
index e0872bb..029837b 100644 (file)
@@ -2,7 +2,9 @@
 
        <script language="javascript">
                $(document).ready(function() {
-                       registerInputTextareaSwap("#sone #options input[name=insertion-delay]", "WebInterface.DefaultText.Option.InsertionDelay", "insertion-delay", true, true);
+                       getTranslation("WebInterface.DefaultText.Option.InsertionDelay", function(insertionDelayDefaultText) {
+                               registerInputTextareaSwap("#sone #options input[name=insertion-delay]", insertionDelayDefaultText, "insertion-delay", true, true);
+                       });
                });
        </script>
 
        <form id="options" method="post">
                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
 
+               <h2><%= Page.Options.Section.RuntimeOptions.Title|l10n|html></h2>
+
                <p><%= Page.Options.Option.InsertionDelay.Description|l10n|html></p>
                <p><input type="text" name="insertion-delay" value="<% insertion-delay|html>" /></p>
 
+               <h2><%= Page.Options.Section.TrustOptions.Title|l10n|html></h2>
+
+               <p><%= Page.Options.Option.PositiveTrust.Description|l10n|html></p>
+               <p><input type="text" name="positive-trust" value="<% positive-trust|html>" /></p>
+
+               <p><%= Page.Options.Option.NegativeTrust.Description|l10n|html></p>
+               <p><input type="text" name="negative-trust" value="<% negative-trust|html>" /></p>
+
+               <h2><%= Page.Options.Section.RescueOptions.Title|l10n|html></h2>
+
+               <p><%= Page.Options.Option.SoneRescueMode.Description|l10n|html></p>
+               <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>
+
+               <h2><%= Page.Options.Section.Cleaning.Title|l10n|html></h2>
+
                <p><%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
                <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>