root/branches/release-36/tmpl/cms/cfg_comments.tmpl @ 2076

Revision 2076, 12.8 kB (checked in by bsmith, 19 months ago)

bugzid:79291 - Comment Settings: Missing field labels

Line 
1<mt:setvar name="page_title" value="<__trans phrase="Comment Settings">">
2<$mt:setvar name="position_actions_bottom" value="1"$>
3<mt:setvar name="comments" value="1">
4<MTSetVarBlock name="system_msg">
5
6    <mt:if name="error">
7        <mtapp:statusmsg
8            id="generic-error"
9            class="error">
10            <mt:var name="error">
11        </mtapp:statusmsg>
12    </mt:if>
13
14    <mt:if name="saved">
15        <mt:if name="can_rebuild">
16            <mt:if name="need_full_rebuild">
17                <mtapp:statusmsg
18                    id="saved-full-rebuild"
19                    class="success"
20                    rebuild="all">
21                    <__trans phrase="Your preferences have been saved.">
22                </mtapp:statusmsg>
23            <mt:else>
24                <mt:if name="need_index_rebuild">
25                    <mtapp:statusmsg
26                        id="saved-index-rebuild"
27                        class="success"
28                        rebuild="index">
29                        <__trans phrase="Your preferences have been saved.">
30                    </mtapp:statusmsg>
31                <mtelse>
32                    <mtapp:statusmsg
33                        id="saved"
34                        class="success">
35                        <__trans phrase="Your preferences have been saved.">
36                    </mtapp:statusmsg>
37                </mt:if>
38            <mtelse>
39                <mtapp:statusmsg
40                    id="saved"
41                    class="success">
42                    <__trans phrase="Your preferences have been saved.">
43                </mtapp:statusmsg>
44            </mt:if>
45        <mtelse>
46            <mtapp:statusmsg
47                id="saved"
48                class="success">
49                <__trans phrase="Your preferences have been saved.">
50            </mtapp:statusmsg>
51        </mtif>
52    </mt:if>
53
54</MTSetVarBlock>
55<MTSetVarBlock name="content_nav">
56    <mt:include name="include/cfg_content_nav.tmpl">
57</MTSetVarBlock>
58<mt:include name="include/header.tmpl">
59
60
61<form name="cfg_form" method="post" action="<mt:var name="script_url">">
62<input type="hidden" name="id" value="<mt:var name="id">" />
63<input type="hidden" name="__mode" value="save" />
64<input type="hidden" name="_type" value="blog" />
65<input type="hidden" name="cfg_screen" value="cfg_comments" />
66<input type="hidden" name="blog_id" value="<mt:var name="blog_id">" />
67<input type="hidden" name="return_args" value="<mt:var name="return_args" escape="html">" />
68<input type="hidden" name="magic_token" value="<mt:var name="magic_token">" />
69
70<mt:if name="allow_comments">
71<mt:unless name="system_allow_comments">
72    <mtapp:statusmsg
73        id="system-allow-comments"
74        class="alert">
75        <__trans phrase="Note: Commenting is currently disabled at the system level.">
76    </mtapp:statusmsg>
77</mt:unless>
78</mt:if>
79
80<mt:unless name="tk_available">
81<p><__trans phrase="Comment authentication is not available because one of the needed modules, MIME::Base64 or LWP::UserAgent is not installed. Talk to your host about getting this module installed."></p>
82</mt:unless>
83
84<fieldset>
85
86    <mtapp:setting
87        id="allow_comments"
88        label="<__trans phrase="Accept Comments">"
89        content_class="field-content-text"
90        help_page="blog_settings_feedback"
91        help_section="accept_comments_from">
92        <input type="checkbox" name="allow_comments" value="1" id="allow_comments" onclick="toggleHidden('commenting-policy'); toggleHidden('commenting-display-options'); return true"<mt:if name="allow_comments"> checked="checked"</mt:if> class="cb" /> <label for="allow_comments"><__trans phrase="If enabled, comments will be accepted."></label>
93    </mtapp:setting>
94
95</fieldset>
96
97<fieldset id="commenting-policy"<mt:unless name="allow_comments"> class="hidden"</mt:unless>>
98
99<h3><__trans phrase="Commenting Policy"></h3>
100
101    <mtapp:setting
102        id="moderate_comments"
103        label="<__trans phrase="Immediately approve comments from">"
104        content_class="field-content-text"
105        hint="<__trans phrase="Specify what should happen to comments after submission. Unapproved comments are held for moderation.">"
106        help_page="blog_settings_feedback"
107        help_section="immediately_publish_comments_from">
108        <ul>
109            <li><label><input type="radio" name="moderate_comments" value="1"<mt:if name="moderate_comments_1"> checked="checked"</mt:if> class="rb" /> <__trans phrase="No one"></label></li>
110            <li><label><input type="radio" name="moderate_comments" value="2"<mt:if name="moderate_comments_2"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Trusted commenters only"></label></li>
111            <li><label><input type="radio" name="moderate_comments" value="3"<mt:if name="moderate_comments_3"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Any authenticated commenters"></label></li>
112            <li><label><input type="radio" name="moderate_comments" value="0"<mt:if name="moderate_comments_0"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Anyone"></label></li>
113        </ul>
114    </mtapp:setting>
115
116    <mtapp:setting
117        id="allow_comment_html"
118        label="<__trans phrase="Allow HTML">"
119        content_class="field-content-text"
120        help_page="blog_settings_feedback"
121        help_section="allow_html">
122<input type="checkbox" name="allow_comment_html" id="allow_comment_html" onclick="toggleSubPrefs(this);" value="1"<mt:if name="allow_comment_html"> checked="checked"</mt:if> class="cb" /> <label for="allow_comment_html"><__trans phrase="If enabled, users will be able to enter a limited set of HTML in their comments. If not, all HTML will be stripped out."></label>
123    </mtapp:setting>
124
125    <div id="allow_comment_html_prefs"<mt:unless name="allow_comment_html"> class="hidden"</mt:unless>>
126    <mtapp:setting
127        id="sanitize_spec"
128        label="<__trans phrase="Limit HTML Tags">"
129        content_class="field-content-text"
130        hint="<__trans phrase="Specifies the list of HTML tags allowed by default when cleaning an HTML string (a comment, for example).">"
131        help_page="blog_settings_general"
132        help_section="limit_html_tags">
133        <ul>
134        <li><label><input type="radio" name="sanitize_spec" id="sanitize_spec_0" value="0"<mt:if name="sanitize_spec_0"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Use defaults">:</label> <span class="hint"><__trans phrase="([_1])" params="<mt:var name="global_sanitize_spec" escape="html">"></span></li>
135        <li><label><input type="radio" name="sanitize_spec" id="sanitize_spec_1" value="1"<mt:if name="sanitize_spec_1"> checked="checked"</mt:if> class="rb" /> <__trans phrase="Use my settings">:</label> <input name="sanitize_spec_manual" id="sanitize_spec_manual" value="<mt:if name="sanitize_spec_1"><mt:var name="sanitize_spec" escape="html"></mt:if>" /></li>
136        </ul>
137    </mtapp:setting>
138
139    <mtapp:setting
140        id="nofollow_urls"
141        label="<__trans phrase="Apply 'nofollow' to URLs">"
142        content_class="field-content-text"
143        help_page="blog_settings_feedback"
144        help_section="nofollow_urls"
145        show_warning="1"
146        warning="<__trans phrase="This preference affects both comments and TrackBacks.">">
147        <input type="checkbox" value="1" name="nofollow_urls" id="nofollow_urls"<mt:if name="nofollow_urls"> checked="checked"</mt:if> class="cb" onclick="toggleSubPrefs(this)" /> <label for="nofollow_urls"><__trans phrase="If enabled, all URLs in comments and TrackBacks will be assigned a 'nofollow' link relation."></label>
148    </mtapp:setting>
149
150    <div id="nofollow_urls_prefs"<mt:unless name="nofollow_urls"> class="hidden"</mt:unless>>
151
152        <mtapp:setting
153            id="follow_auth_links"
154            label="<__trans phrase="Disable 'nofollow' for trusted commenters">"
155            content_class="field-content-text"
156            help_page="blog_settings_feedback"
157            help_section="follow_auth_links">
158            <input type="checkbox" value="1" name="follow_auth_links" id="follow_auth_links"<mt:if name="follow_auth_links"> checked="checked"</mt:if> class="cb" /> <label for="follow_auth_links"><__trans phrase="If enabled, the 'nofollow' link relation will not be applied to any comments left by trusted commenters."></label>
159        </mtapp:setting>
160
161    </div>
162
163    </div>
164
165    <mtapp:setting
166        id="email_new_comments"
167        label="<__trans phrase="E-mail Notification">"
168        content_class="field-content-text"
169        hint="<__trans phrase="Specify when Movable Type should notify you of new comments if at all.">"
170        help_page="blog_settings_feedback"
171        help_section="email_notification">
172<ul>
173<li><label><input type="radio" name="email_new_comments" value="1"<mt:if name="email_new_comments_1"> checked="checked"</mt:if> class="rb" /> <__trans phrase="On"></label></li>
174<li><label><input type="radio" name="email_new_comments" value="2"<mt:if name="email_new_comments_2"> checked="checked"</mt:if> class="rb"  /> <__trans phrase="Only when attention is required"></label></li>
175<li><label><input type="radio" name="email_new_comments" value="0"<mt:unless name="email_new_comments"> checked="checked"</mt:unless> class="rb" /> <__trans phrase="Off"></label></li>
176</ul>
177    </mtapp:setting>
178
179</fieldset>
180<fieldset id="commenting-display-options"<mt:unless name="allow_comments"> class="hidden"</mt:unless>>
181
182<h3><__trans phrase="Comment Display Options"></h3>
183
184    <mtapp:setting
185        id="sort_order_comments"
186        label="<__trans phrase="Comment Order">"
187        hint="<__trans phrase="Select whether you want visitor comments displayed in ascending (oldest at top) or descending (newest at top) order.">"
188        help_page="blog_settings_general"
189        help_section="comment_order">
190<select name="sort_order_comments" id="sort_order_comments">
191<option value="ascend"<mt:if name="sort_order_comments_ascend"> selected="selected"</mt:if>><__trans phrase="Ascending"></option>
192<option value="descend"<mt:if name="sort_order_comments_descend"> selected="selected"</mt:if>><__trans phrase="Descending"></option>
193</select>
194    </mtapp:setting>
195
196    <mtapp:setting
197        id="autolink_urls"
198        label="<__trans phrase="Auto-Link URLs">"
199        content_class="field-content-text"
200        help_page="blog_settings_feedback"
201        help_section="autolink_urls">
202<input type="checkbox" value="1" name="autolink_urls" id="autolink_urls"<mt:if name="autolink_urls"> checked="checked"</mt:if> class="cb" /> <label for="autolink_urls"><__trans phrase="If enabled, all non-linked URLs will be transformed into links to that URL."></label>
203    </mtapp:setting>
204
205    <mtapp:setting
206        id="convert_paras_comments"
207        label="<__trans phrase="Text Formatting">"
208        hint="<__trans phrase="Specifies the Text Formatting option to use for formatting visitor comments.">"
209        help_page="blog_settings_feedback"
210        help_section="comment_text_formatting">
211<select name="convert_paras_comments" id="convert_paras_comments">
212<mt:loop name="text_filters_comments">
213<option value="<mt:var name="key">"<mt:if name="selected"> selected="selected"</mt:if>><mt:var name="label"></option>
214</mt:loop>
215</select>
216    </mtapp:setting>
217
218    <mtapp:setting
219        id="captcha_provider"
220        label="<__trans phrase="CAPTCHA Provider">">
221        <mt:if name="captcha_loop">
222            <select name="captcha_provider" id="captcha_provider">
223            <option value="none"><__trans phrase="none"></option>
224            <mt:loop name="captcha_loop">
225            <option value="<mt:var name="key">"<mt:if name="selected"> selected="selected"</mt:if>><mt:var name="label"></option>
226            </mt:loop>
227            </select>
228        <mt:else>
229            <p>
230            <img src="<mt:var name="static_uri">images/status_icons/warning.gif" alt="<__trans phrase="No CAPTCHA provider available">" width="9" height="9" />
231            <span class="alert-warning-inline"><__trans phrase="No CAPTCHA provider is available in this system.  Please check to see if Image::Magick is installed, and CaptchaSourceImageBase directive points to captcha-source directory under mt-static/images."></span>
232            </p>
233        </mt:if>
234    </mtapp:setting>
235
236    <mtapp:setting
237        id="use_comment_confirmation"
238        label="<__trans phrase="Use Comment Confirmation Page">"
239        content_class="field-content-text"
240        hint="<__trans phrase="Use comment confirmation page">">
241<p><input type="checkbox" value="1" id="use_comment_confirmation" name="use_comment_confirmation"<mt:if name="use_comment_confirmation"> checked="checked"</mt:if> class="cb" /></p>
242    </mtapp:setting>
243
244</fieldset>
245
246<mt:setvarblock name="action_buttons">
247    <button
248        type="submit"
249        accesskey="s"
250        title="<__trans phrase="Save changes to these settings (s)">"
251        class="primary-button"
252        ><__trans phrase="Save Changes"></button>
253</mt:setvarblock>
254<mt:include name="include/actions_bar.tmpl" bar_position="bottom" hide_pager="1" settings_bar="1">
255</form>
256
257
258<mt:include name="include/footer.tmpl">
Note: See TracBrowser for help on using the browser.