source: products/quintagroup.plonecomments/trunk/quintagroup/plonecomments/skins/quintagroup_plonecomments/prefs_comments_setup_form.cpt @ 2611

Last change on this file since 2611 was 2611, checked in by kroman0, 14 years ago

Removed tabindex support

File size: 16.6 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
2      xml:lang="en"
3      lang="en"
4      i18n:domain="quintagroup.plonecomments"
5      metal:use-macro="here/prefs_main_template/macros/master">
6        <!--      metal:use-macro="here/main_template/macros/master" -->
7<body>
8
9<div metal:fill-slot="prefs_configlet_content"
10     tal:define="here_url context/@@plone_context_state/object_url;
11                 errors python:request.get('controller_state', None).getErrors();">
12
13    <div metal:define-macro="main">
14    <div class="documentEditable">
15
16    <!-- simulating views on the configure/comments pages until we have real objects. -->
17    <div id="edit-bar">
18      <ul id="content-views" class="contentViews">
19        <li class="selected">
20        <a href=""
21        tal:attributes="href string:${template/id}"
22        i18n:translate="label_configure">Configure qPloneComments</a>
23        </li>
24
25        <li class=""
26            tal:condition="python:checkPermission('Moderate Discussion', here)">
27        <a href=""
28           tal:attributes="href string:prefs_recent_comments_form"
29           i18n:translate="label_comments">Recent comments moderation</a>
30        </li>
31      </ul>
32
33    <div class="contentActions">
34    &nbsp;
35    </div>
36    </div>
37    <!-- End of tabs -->
38
39    <div id="content" class="documentContent" metal:define-slot="prefs_content">
40        <h1 i18n:translate="heading_comments_setup">Plone Comments Setup</h1>
41
42        <a href=""
43           class="link-parent"
44           tal:attributes="href string: $portal_url/plone_control_panel"
45           i18n:translate="label_up_to_plone_setup"
46           i18n:domain="plone">
47           Up to Plone Setup
48        </a>
49
50        <form name="edit_form"
51              action="href"
52              method="post"
53              enctype="multipart/form-data"
54              tal:define ="pp here/portal_properties;
55                           props_sheet python:getattr(pp, 'qPloneComments');"
56              tal:attributes="action string:${here_url}/${template/getId}">
57
58            <fieldset>
59                <legend i18n:translate="legend_setup_options">qPloneComments setup options</legend>
60
61                <div class="field"
62                     tal:define="property_id string:enable_moderation;
63                                 isEnabledModeration python:props_sheet.getProperty(property_id, False);"
64                     tal:condition="python:props_sheet.hasProperty(property_id)">
65
66                    <input type="checkbox"
67                           class="noborder"
68                           name="isEnabledModeration"
69                           id="isEnabledModeration"
70                           tal:attributes="name property_id;
71                                           value isEnabledModeration;
72                                           checked python:test(isEnabledModeration, 'True', '');" />
73
74                    <label i18n:translate="label_enable_moderation"
75                           for="isEnabledModeration">Enable comment moderation</label>
76
77                </div>
78
79                <div class="field"
80                     tal:define="property_id string:require_email;
81                                 requireEmail python:props_sheet.getProperty(property_id, False);"
82                     tal:condition="python:props_sheet.hasProperty(property_id)">
83
84                    <input type="checkbox"
85                           class="noborder"
86                           name="requireEmail"
87                           id="requireEmail"
88                           tal:attributes="name property_id;
89                                           value requireEmail;
90                                           checked python:test(requireEmail, 'True', '');" />
91
92                    <label i18n:translate="label_require_anonym_email"
93                           for="requireEmail">Require email from Anonymous commenters</label>
94
95                </div>
96
97                <div class="field"
98                     tal:define="property_id string:enable_anonymous_commenting;
99                                 isEnabledAnonymousCommenting python:props_sheet.getProperty(property_id, False);"
100                     tal:condition="python:props_sheet.hasProperty(property_id)">
101
102                    <input type="checkbox"
103                           class="noborder"
104                           name="isEnabledAnonymousCommenting"
105                           id="isEnabledAnonymousCommenting"
106                           tal:attributes="name property_id;
107                                           value isEnabledAnonymousCommenting;
108                                           checked python:test(isEnabledAnonymousCommenting, 'True', '');" />
109
110                    <label i18n:translate="label_anonymous_commenting"
111                           for="isEnabledAnonymousCommenting">Allow comments from Anonymous users</label>
112                </div>
113
114                <div class="field"
115                     tal:define="property_id string:enable_authenticated_report_abuse;
116                                 isEnabledReportAbuse python:props_sheet.getProperty(property_id, False);"
117                     tal:condition="python:props_sheet.hasProperty(property_id)">
118
119                    <input type="checkbox"
120                           class="noborder"
121                           name="isEnabledReportAbuse"
122                           id="isEnabledReportAbuse"
123                           tal:attributes="name property_id;
124                                           value isEnabledReportAbuse;
125                                           checked python:test(isEnabledReportAbuse, 'True', '');" />
126
127                    <label i18n:translate="label_enable_report_abuse"
128                           for="isEnabledReportAbuse">Enable authenticated users to report abusive comments</label>
129                </div>
130
131                <div class="field"
132                     tal:define="property_id string:enable_anonymous_report_abuse;
133                                 isEnabledAnonymousReportAbuse python:props_sheet.getProperty(property_id, False);"
134                     tal:condition="python:props_sheet.hasProperty(property_id)">
135
136                    <input type="checkbox"
137                           class="noborder"
138                           name="isEnabledAnonymousReportAbuse"
139                           id="isEnabledAnonymousReportAbuse"
140                           tal:attributes="name property_id;
141                                           value isEnabledAnonymousReportAbuse;
142                                           checked python:test(isEnabledAnonymousReportAbuse, 'True', '');" />
143
144                    <label i18n:translate="label_enable_anonymous_report_abuse"
145                           for="isEnabledAnonymousReportAbuse">Enable anonymous users to report abusive comments</label>
146
147                    <div class="formHelp" id="anonymous_report_abuse_help"
148                         i18n:translate="help_enable_anonymous_report_abuse">
149                        This setting will allow ALL users, including non logged in users to report abusive comments.
150                    </div>
151                </div>
152
153                <div class="field"
154                     tal:define="property_id string:enable_ajax_report_abuse;
155                                 isEnabledAjaxReportAbuse python:props_sheet.getProperty(property_id, False);"
156                     tal:condition="python:props_sheet.hasProperty(property_id)">
157
158                    <input type="checkbox"
159                           class="noborder"
160                           name="isEnabledAjaxReportAbuse"
161                           id="isEnabledAjaxReportAbuse"
162                           tal:attributes="name property_id;
163                                           value isEnabledAjaxReportAbuse;
164                                           checked python:test(isEnabledAjaxReportAbuse, 'True', '');"/>
165
166                    <label i18n:translate="label_enable_ajax_report_abuse"
167                           for="isEnabledAjaxReportAbuse">Enable AJAX powered abuse reports</label>
168
169                    <div class="formHelp" id="ajax_report_abuse_help"
170                         i18n:translate="help_enable_ajax_report_abuse">
171                        This setting will only take effect if abuse reports are enabled.
172                    </div>
173                </div>
174
175                <div class="field"
176                     tal:define="isEnabledManagerModeration python:checkPermission('Moderate Discussion', here);">
177
178                    <input type="checkbox"
179                           class="noborder"
180                           name="EnableManagerModeration"
181                           id="EnableManagerModeration"
182                           tal:attributes="value isEnabledManagerModeration;
183                                           checked python:test(isEnabledManagerModeration, 'True', '');" />
184
185                    <label i18n:translate="enable_manager_moderation"
186                           for="isEnableApproveNotification">Enable Manager moderation</label>
187                </div>
188
189                <div class="field"
190                     tal:define="property_id string:email_discussion_manager;
191                                 email python:props_sheet.getProperty(property_id, '');
192                                 error python:test(errors.has_key(property_id), errors.get(property_id), None);"
193                     tal:attributes="class python:test(error, 'field error', 'field')"
194                     tal:condition="python:props_sheet.hasProperty(property_id)">
195
196                    <label i18n:translate="label_discussion-manager_email">Send comments notification emails to:</label>
197
198                    <div class="formHelp" id="smtp_server_help"
199                         i18n:translate="help_discussion-manager_email">
200                        The email address where comment notifications will be sent
201                    </div>
202
203                    <div tal:content="error">Validation error output</div>
204
205                    <input name="email_discussion-manager"
206                           value=""
207                           size="40"
208                           tal:attributes="name property_id;
209                                           value email;" />
210                </div>
211
212                <div class="field"
213                     tal:define="property_id string:email_subject_prefix;
214                                 organization_name python:props_sheet.getProperty(property_id, '');"
215                     tal:condition="python:props_sheet.hasProperty(property_id)">
216
217                    <label i18n:translate="label_organization_name">Email subject prefix (organization name)</label>
218
219                    <div class="formHelp" id="organization_name_help"
220                         i18n:translate="help_organization_name">
221                        You can change notification message templates by customizing 'approve_comment_template' and 'published_comment_template' in the qplonecomments skin.
222                    </div>
223
224                    <input name="organization_name"
225                           value=""
226                           size="40"
227                           tal:attributes="name property_id;
228                                           value organization_name;" />
229                </div>
230
231            </fieldset>
232
233
234
235
236            <fieldset>
237                <legend i18n:translate="legend_qpc_notification_legend">Email Notification Options</legend>
238
239                <div class="field"
240                     tal:define="property_id string:enable_published_notification;
241                                 isEnabledPublishedNotification python:props_sheet.getProperty(property_id, False);"
242                     tal:condition="python:props_sheet.hasProperty(property_id)">
243
244                    <input type="checkbox"
245                           class="noborder"
246                           name="isEnabledPublishedNotification"
247                           id="isEnabledPublishedNotification"
248                           tal:attributes="name property_id;
249                                           value isEnabledPublishedNotification;
250                                           checked python:test(isEnabledPublishedNotification, 'True', '');" />
251
252                    <label i18n:translate="label_enable_published_notification"
253                           for="isEnabledPublishedNotification">Notify Document Owner of new comments on their documents.</label>
254                </div>
255
256                <div class="field"
257                     tal:define="property_id string:enable_approve_notification;
258                                 isEnableApproveNotification python:props_sheet.getProperty(property_id, False);"
259                     tal:condition="python:props_sheet.hasProperty(property_id)">
260
261                    <input type="checkbox"
262                           class="noborder"
263                           name="isEnableApproveNotification"
264                           id="isEnableApproveNotification"
265                           tal:attributes="name property_id;
266                                           value isEnableApproveNotification;
267                                           checked python:test(isEnableApproveNotification, 'True', '');" />
268
269                    <label i18n:translate="label_enable_approve_notification"
270                           for="isEnableApproveNotification">Notify Discussion Manager of new comments.</label>
271                </div>
272
273                <div class="field"
274                     tal:define="property_id string:enable_approve_user_notification;
275                                 isEnableApproveUserNotification python:props_sheet.getProperty(property_id, False);"
276                     tal:condition="python:props_sheet.hasProperty(property_id)">
277
278                    <input type="checkbox"
279                           class="noborder"
280                           name="isEnableApproveUserNotification"
281                           id="isEnableApproveUserNotification"
282                           tal:attributes="name property_id;
283                                           value isEnableApproveUserNotification;
284                                           checked python:test(isEnableApproveUserNotification, 'True', '');" />
285
286                    <label i18n:translate="label_enable_approve_user_notification"
287                           for="isEnableApproveUserNotification">Notify Commenter when comment is published.</label>
288                </div>
289
290                <div class="field"
291                     tal:define="property_id string:enable_rejected_user_notification;
292                                 isRejectionNotificationEnabled python:props_sheet.getProperty(property_id, False);"
293                     tal:condition="python:props_sheet.hasProperty(property_id)">
294
295                    <input type="checkbox"
296                           class="noborder"
297                           name="isRejectionNotificationEnabled"
298                           id="isRejectionNotificationEnabled"
299                           tal:attributes="name property_id;
300                                           value isRejectionNotificationEnabled;
301                                           checked python:test(isRejectionNotificationEnabled, 'True', '');" />
302
303                    <label i18n:translate="label_enable_reject_notification"
304                           for="isRejectionNotificationEnabled">Enable Commentator notification on comment was rejected.</label>
305                </div>
306
307
308                <div class="field"
309                     tal:define="property_id string:enable_reply_user_notification;
310                                 isReplyNotificationEnabled python:props_sheet.getProperty(property_id, False);"
311                     tal:condition="python:props_sheet.hasProperty(property_id)">
312
313                    <input type="checkbox"
314                           class="noborder"
315                           name="isReplyNotificationEnabled"
316                           id="isReplyNotificationEnabled"
317                           tal:attributes="name property_id;
318                                           value isReplyNotificationEnabled;
319                                           checked python:test(isReplyNotificationEnabled, 'True', '');" />
320
321                    <label i18n:translate="label_enable_reply_notification"
322                           for="isReplyNotificationEnabled">Notify Commenter when their comment receives a reply</label>
323                </div>
324            </fieldset>
325
326            <div class="formControls">
327                <input type="hidden" name="form.submitted" value="1" />
328                <input class="context"
329                       type="submit"
330                       name="form.button.form_submit"
331                       value="Save"
332                       i18n:domain="plone"
333                       i18n:attributes="value" />
334            </div>
335        </form>
336    </div>
337    </div>
338    </div>
339</div>
340</body>
341</html>
Note: See TracBrowser for help on using the repository browser.