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