1 <%include include/head.html>
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);
8 getTranslation("WebInterface.DefaultText.Option.PostsPerPage", function(postsPerPageText) {
9 registerInputTextareaSwap("#sone #options input[name=posts-per-page]", postsPerPageText, "posts-per-page", true, true);
11 getTranslation("WebInterface.DefaultText.Option.CharactersPerPost", function(postsPerPageText) {
12 registerInputTextareaSwap("#sone #options input[name=characters-per-post]", postsPerPageText, "characters-per-post", true, true);
14 getTranslation("WebInterface.DefaultText.Option.PostCutOffLength", function(postCutOffLengthText) {
15 registerInputTextareaSwap("#sone #options input[name=post-cut-off-length]", postCutOffLengthText, "post-cut-off-length", true, true);
17 getTranslation("WebInterface.DefaultText.Option.PositiveTrust", function(positiveTrustText) {
18 registerInputTextareaSwap("#sone #options input[name=positive-trust]", positiveTrustText, "positive-trust", true, true);
20 getTranslation("WebInterface.DefaultText.Option.NegativeTrust", function(negativeTrustText) {
21 registerInputTextareaSwap("#sone #options input[name=negative-trust]", negativeTrustText, "negative-trust", true, true);
23 getTranslation("WebInterface.DefaultText.Option.TrustComment", function(trustCommentText) {
24 registerInputTextareaSwap("#sone #options input[name=trust-comment]", trustCommentText, "trust-comment", true, true);
29 <h1><%= Page.Options.Page.Title|l10n|html></h1>
31 <p><%= Page.Options.Page.Description|l10n|html></p>
33 <form id="options" method="post">
34 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
36 <h2><%= Page.Options.Section.SoneSpecificOptions.Title|l10n|html></h2>
39 <p><%= Page.Options.Section.SoneSpecificOptions.NotLoggedIn|l10n|html|replace needle="{link}" replacement='<a href="login.html">'|replace needle="{/link}" replacement='</a>'></p>
41 <p><%= Page.Options.Section.SoneSpecificOptions.LoggedIn|l10n|html></p>
45 <input type="checkbox" name="auto-follow"<%ifnull currentSone> disabled="disabled"<%/if><%if auto-follow> checked="checked"<%/if> />
46 <%= Page.Options.Option.AutoFollow.Description|l10n|html>
50 <input type="checkbox" name="enable-sone-insert-notifications"<%ifnull currentSone> disabled="disabled"<%/if><%if enable-sone-insert-notifications> checked="checked"<%/if> />
51 <%= Page.Options.Option.EnableSoneInsertNotifications.Description|l10n|html>
55 <input type="checkbox" name="show-notification-new-sones"<%ifnull currentSone> disabled="disabled"<%/if><%if show-notification-new-sones> checked="checked"<%/if>/>
56 <%= Page.Options.Option.ShowNotificationNewSones.Description|l10n|html>
60 <input type="checkbox" name="show-notification-new-posts"<%ifnull currentSone> disabled="disabled"<%/if><%if show-notification-new-posts> checked="checked"<%/if>/>
61 <%= Page.Options.Option.ShowNotificationNewPosts.Description|l10n|html>
65 <input type="checkbox" name="show-notification-new-replies"<%ifnull currentSone> disabled="disabled"<%/if><%if show-notification-new-replies> checked="checked"<%/if>/>
66 <%= Page.Options.Option.ShowNotificationNewReplies.Description|l10n|html>
69 <h2><%= Page.Options.Section.RuntimeOptions.Title|l10n|html></h2>
71 <p><%= Page.Options.Option.InsertionDelay.Description|l10n|html></p>
72 <%if =insertion-delay|in collection=fieldErrors>
73 <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
75 <p><input type="text" name="insertion-delay" value="<% insertion-delay|html>" /></p>
77 <p><%= Page.Options.Option.PostsPerPage.Description|l10n|html></p>
78 <%if =posts-per-page|in collection=fieldErrors>
79 <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
81 <p><input type="text" name="posts-per-page" value="<% posts-per-page|html>" /></p>
83 <p><%= Page.Options.Option.CharactersPerPost.Description|l10n|html></p>
84 <%if =characters-per-post|in collection=fieldErrors>
85 <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
87 <p><input type="text" name="characters-per-post" value="<% characters-per-post|html>" /></p>
89 <p><%= Page.Options.Option.PostCutOffLength.Description|l10n|html></p>
90 <%if =post-cut-off-length|in collection=fieldErrors>
91 <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
93 <p><input type="text" name="post-cut-off-length" value="<% post-cut-off-length|html>" /></p>
96 <input type="checkbox" name="require-full-access"<%if require-full-access> checked="checked"<%/if> />
97 <%= Page.Options.Option.RequireFullAccess.Description|l10n|html></p>
100 <h2><%= Page.Options.Section.TrustOptions.Title|l10n|html></h2>
102 <p><%= Page.Options.Option.PositiveTrust.Description|l10n|html></p>
103 <%if =positive-trust|in collection=fieldErrors>
104 <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
106 <p><input type="text" name="positive-trust" value="<% positive-trust|html>" /></p>
108 <p><%= Page.Options.Option.NegativeTrust.Description|l10n|html></p>
109 <%if =negative-trust|in collection=fieldErrors>
110 <p class="warning"><%= Page.Options.Warnings.ValueNotChanged|l10n|html></p>
112 <p><input type="text" name="negative-trust" value="<% negative-trust|html>" /></p>
114 <p><%= Page.Options.Option.TrustComment.Description|l10n|html></p>
115 <p><input type="text" name="trust-comment" value="<% trust-comment|html>" /></p>
117 <h2><%= Page.Options.Section.FcpOptions.Title|l10n|html></h2>
119 <p><input type="checkbox" name="fcp-interface-active"<%if fcp-interface-active> checked="checked"<%/if> /> <%= Page.Options.Option.FcpInterfaceActive.Description|l10n|html></p>
122 <%= Page.Options.Option.FcpFullAccessRequired.Description|l10n|html|replace needle="{link}" replacement='<a href="/config/fcp">'|replace needle="{/link}" replacement='</a>'>
123 <select name="fcp-full-access-required">
124 <option value="0"<%if fcp-full-access-required|match value="0"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.No|l10n|html></option>
125 <option value="1"<%if fcp-full-access-required|match value="1"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.Writing|l10n|html></option>
126 <option value="2"<%if fcp-full-access-required|match value="2"> selected="selected"<%/if>><%= Page.Options.Option.FcpFullAccessRequired.Value.Always|l10n|html></option>
130 <h2><%= Page.Options.Section.Cleaning.Title|l10n|html></h2>
132 <p><%= Page.Options.Option.ClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
133 <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>
135 <p><%= Page.Options.Option.ReallyClearOnNextRestart.Description|l10n|html|replace needle="{strong}" replacement="<strong>"|replace needle="{/strong}" replacement="</strong>"></p>
136 <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>
138 <p><button type="submit"><%= Page.Options.Button.Save|l10n|html></button></p>
142 <%include include/tail.html>