1 | <html xmlns="http://www.w3.org/1999/xhtml" |
---|
2 | xml:lang="en" |
---|
3 | lang="en" |
---|
4 | i18n:domain="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" i18n:domain="plonecomments"> |
---|
13 | <div class="configlet"> |
---|
14 | <div class="documentEditable"> |
---|
15 | |
---|
16 | <!-- simulating views on the configure/comments pages until we have real objects. --> |
---|
17 | <ul class="contentViews" |
---|
18 | tal:define="tabs python:('Configure qPloneComments','prefs_comments_setup_form'), ('Recent comments moderation','prefs_recent_comments_form'),; |
---|
19 | tabs python:[ {'label':label, 'name':name} for (label,name) in tabs ];" |
---|
20 | > |
---|
21 | <li class="selected" |
---|
22 | tal:repeat="tab tabs" |
---|
23 | tal:attributes="class python:tab['name']==template.id and 'selected' or ''"> |
---|
24 | <a href="" |
---|
25 | tal:attributes="href string:${here/absolute_url}/${tab/name}" |
---|
26 | i18n:translate="" tal:content="tab/label">Configure qPloneComments</a> |
---|
27 | </li> |
---|
28 | </ul> |
---|
29 | |
---|
30 | <div class="contentActions"> |
---|
31 | |
---|
32 | </div> |
---|
33 | <!-- End of tabs --> |
---|
34 | <div class="documentContent" metal:define-slot="prefs_content"> |
---|
35 | <h1 i18n:translate="heading_comments_setup">Plone Comments Setup</h1> |
---|
36 | |
---|
37 | <a href="" |
---|
38 | class="link-parent" |
---|
39 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
40 | i18n:translate="label_up_to_plone_setup" |
---|
41 | i18n:domain="plone"> |
---|
42 | Up to Plone Setup |
---|
43 | </a> |
---|
44 | |
---|
45 | <form name="edit_form" |
---|
46 | action="href" |
---|
47 | method="post" |
---|
48 | enctype="multipart/form-data" |
---|
49 | tal:define ="pp here/portal_properties; |
---|
50 | props_sheet python:getattr(pp, 'qPloneComments');" |
---|
51 | tal:attributes="action string:${here/getId}/${template/getId}"> |
---|
52 | |
---|
53 | <fieldset> |
---|
54 | <legend i18n:translate="legend_setup_options">qPloneComments setup options</legend> |
---|
55 | |
---|
56 | <div class="field" |
---|
57 | tal:define="property_id string:enable_moderation; |
---|
58 | isEnabledModeration python:props_sheet.getProperty(property_id, False);" |
---|
59 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
60 | |
---|
61 | <input type="checkbox" |
---|
62 | class="noborder" |
---|
63 | name="isEnabledModeration" |
---|
64 | id="isEnabledModeration" |
---|
65 | tabindex ="" |
---|
66 | tal:attributes="name property_id; |
---|
67 | value isEnabledModeration; |
---|
68 | checked python:test(isEnabledModeration, 'True', ''); |
---|
69 | tabindex tabindex/next;"/> |
---|
70 | |
---|
71 | <label i18n:translate="label_enable_moderation" |
---|
72 | for="isEnabledModeration">Enable moderation.</label> |
---|
73 | |
---|
74 | </div> |
---|
75 | |
---|
76 | <div class="field" |
---|
77 | tal:define="property_id string:require_email; |
---|
78 | requireEmail python:props_sheet.getProperty(property_id, False);" |
---|
79 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
80 | |
---|
81 | <input type="checkbox" |
---|
82 | class="noborder" |
---|
83 | name="requireEmail" |
---|
84 | id="requireEmail" |
---|
85 | tabindex ="" |
---|
86 | tal:attributes="name property_id; |
---|
87 | value requireEmail; |
---|
88 | checked python:test(requireEmail, 'True', ''); |
---|
89 | tabindex tabindex/next;"/> |
---|
90 | |
---|
91 | <label i18n:translate="label_require_anonym_email" |
---|
92 | for="requireEmail">Require Anonym Email.</label> |
---|
93 | |
---|
94 | </div> |
---|
95 | |
---|
96 | <div class="field" |
---|
97 | tal:define="property_id string:enable_anonymous_commenting; |
---|
98 | isEnabledAnonymousCommenting python:props_sheet.getProperty(property_id, False);" |
---|
99 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
100 | |
---|
101 | <input type="checkbox" |
---|
102 | class="noborder" |
---|
103 | name="isEnabledAnonymousCommenting" |
---|
104 | id="isEnabledAnonymousCommenting" |
---|
105 | tabindex ="" |
---|
106 | tal:attributes="name property_id; |
---|
107 | value isEnabledAnonymousCommenting; |
---|
108 | checked python:test(isEnabledAnonymousCommenting, 'True', ''); |
---|
109 | tabindex tabindex/next;"/> |
---|
110 | |
---|
111 | <label i18n:translate="label_anonymous_commenting" |
---|
112 | for="isEnabledAnonymousCommenting">Enable anonymous commenting.</label> |
---|
113 | </div> |
---|
114 | |
---|
115 | <div class="field" |
---|
116 | tal:define="isEnabledManagerModeration python:checkPermission('Moderate Discussion', here);"> |
---|
117 | |
---|
118 | <input type="checkbox" |
---|
119 | class="noborder" |
---|
120 | name="EnableManagerModeration" |
---|
121 | id="EnableManagerModeration" |
---|
122 | tabindex ="" |
---|
123 | tal:attributes="value isEnabledManagerModeration; |
---|
124 | checked python:test(isEnabledManagerModeration, 'True', ''); |
---|
125 | tabindex tabindex/next;"/> |
---|
126 | |
---|
127 | <label i18n:translate="enable_manager_moderation" |
---|
128 | for="isEnableApproveNotification">Enable Manager moderation.</label> |
---|
129 | </div> |
---|
130 | |
---|
131 | <div class="field" |
---|
132 | tal:define="property_id string:email_discussion_manager; |
---|
133 | email python:props_sheet.getProperty(property_id, ''); |
---|
134 | error python:test(errors.has_key(property_id), errors.get(property_id), None);" |
---|
135 | tal:attributes="class python:test(error, 'field error', 'field')" |
---|
136 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
137 | |
---|
138 | <label i18n:translate="label_discussion-manager_email">Send comments notification emails to:</label> |
---|
139 | |
---|
140 | <div class="formHelp" id="smtp_server_help" |
---|
141 | i18n:translate="help_discussion-manager_email"> |
---|
142 | The e-mail address where notifications about adding new comments will be sent. |
---|
143 | </div> |
---|
144 | |
---|
145 | <div tal:content="error">Validation error output</div> |
---|
146 | |
---|
147 | <input name="email_discussion-manager" |
---|
148 | value="" |
---|
149 | size="40" |
---|
150 | tabindex="" |
---|
151 | tal:attributes="name property_id; |
---|
152 | value email; |
---|
153 | tabindex tabindex/next;" /> |
---|
154 | </div> |
---|
155 | |
---|
156 | <div class="field" |
---|
157 | tal:define="property_id string:email_subject_prefix; |
---|
158 | organization_name python:props_sheet.getProperty(property_id, '');" |
---|
159 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
160 | |
---|
161 | <label i18n:translate="label_organization_name">Email subject prefix (organization name)</label> |
---|
162 | |
---|
163 | <div class="formHelp" id="organization_name_help" |
---|
164 | i18n:translate="help_organization_name"> |
---|
165 | You can change notification message templates customizing 'approve_comment_template' and 'published_comment_template' from qplonecomments skin. |
---|
166 | </div> |
---|
167 | |
---|
168 | <input name="organization_name" |
---|
169 | value="" |
---|
170 | size="40" |
---|
171 | tabindex="" |
---|
172 | tal:attributes="name property_id; |
---|
173 | value organization_name; |
---|
174 | tabindex tabindex/next;" /> |
---|
175 | </div> |
---|
176 | |
---|
177 | </fieldset> |
---|
178 | |
---|
179 | |
---|
180 | |
---|
181 | |
---|
182 | <fieldset> |
---|
183 | <legend i18n:translate="legend_qpc_notification_legend">Notification tuning</legend> |
---|
184 | |
---|
185 | <div class="field" |
---|
186 | tal:define="property_id string:enable_published_notification; |
---|
187 | isEnabledPublishedNotification python:props_sheet.getProperty(property_id, False);" |
---|
188 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
189 | |
---|
190 | <input type="checkbox" |
---|
191 | class="noborder" |
---|
192 | name="isEnabledPublishedNotification" |
---|
193 | id="isEnabledPublishedNotification" |
---|
194 | tabindex ="" |
---|
195 | tal:attributes="name property_id; |
---|
196 | value isEnabledPublishedNotification; |
---|
197 | checked python:test(isEnabledPublishedNotification, 'True', ''); |
---|
198 | tabindex tabindex/next;"/> |
---|
199 | |
---|
200 | <label i18n:translate="label_enable_published_notification" |
---|
201 | for="isEnabledPublishedNotification">Enable Document Owner notification on new comments.</label> |
---|
202 | </div> |
---|
203 | |
---|
204 | <div class="field" |
---|
205 | tal:define="property_id string:enable_approve_notification; |
---|
206 | isEnableApproveNotification python:props_sheet.getProperty(property_id, False);" |
---|
207 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
208 | |
---|
209 | <input type="checkbox" |
---|
210 | class="noborder" |
---|
211 | name="isEnableApproveNotification" |
---|
212 | id="isEnableApproveNotification" |
---|
213 | tabindex ="" |
---|
214 | tal:attributes="name property_id; |
---|
215 | value isEnableApproveNotification; |
---|
216 | checked python:test(isEnableApproveNotification, 'True', ''); |
---|
217 | tabindex tabindex/next;"/> |
---|
218 | |
---|
219 | <label i18n:translate="label_enable_approve_notification" |
---|
220 | for="isEnableApproveNotification">Enable Discussion Manager notification on new comments.</label> |
---|
221 | </div> |
---|
222 | |
---|
223 | <div class="field" |
---|
224 | tal:define="property_id string:enable_approve_user_notification; |
---|
225 | isEnableApproveUserNotification python:props_sheet.getProperty(property_id, False);" |
---|
226 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
227 | |
---|
228 | <input type="checkbox" |
---|
229 | class="noborder" |
---|
230 | name="isEnableApproveUserNotification" |
---|
231 | id="isEnableApproveUserNotification" |
---|
232 | tabindex ="" |
---|
233 | tal:attributes="name property_id; |
---|
234 | value isEnableApproveUserNotification; |
---|
235 | checked python:test(isEnableApproveUserNotification, 'True', ''); |
---|
236 | tabindex tabindex/next;"/> |
---|
237 | |
---|
238 | <label i18n:translate="label_enable_approve_user_notification" |
---|
239 | for="isEnableApproveUserNotification">Enable Commentator notification on comment was published.</label> |
---|
240 | </div> |
---|
241 | |
---|
242 | <div class="field" |
---|
243 | tal:define="property_id string:enable_rejected_user_notification; |
---|
244 | isRejectionNotificationEnabled python:props_sheet.getProperty(property_id, False);" |
---|
245 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
246 | |
---|
247 | <input type="checkbox" |
---|
248 | class="noborder" |
---|
249 | name="isRejectionNotificationEnabled" |
---|
250 | id="isRejectionNotificationEnabled" |
---|
251 | tabindex ="" |
---|
252 | tal:attributes="name property_id; |
---|
253 | value isRejectionNotificationEnabled; |
---|
254 | checked python:test(isRejectionNotificationEnabled, 'True', ''); |
---|
255 | tabindex tabindex/next;"/> |
---|
256 | |
---|
257 | <label i18n:translate="label_enable_reject_notification" |
---|
258 | for="isRejectionNotificationEnabled">Enable Commentator notification on comment was rejected.</label> |
---|
259 | </div> |
---|
260 | |
---|
261 | |
---|
262 | <div class="field" |
---|
263 | tal:define="property_id string:enable_reply_user_notification; |
---|
264 | isReplyNotificationEnabled python:props_sheet.getProperty(property_id, False);" |
---|
265 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
266 | |
---|
267 | <input type="checkbox" |
---|
268 | class="noborder" |
---|
269 | name="isReplyNotificationEnabled" |
---|
270 | id="isReplyNotificationEnabled" |
---|
271 | tabindex ="" |
---|
272 | tal:attributes="name property_id; |
---|
273 | value isReplyNotificationEnabled; |
---|
274 | checked python:test(isReplyNotificationEnabled, 'True', ''); |
---|
275 | tabindex tabindex/next;"/> |
---|
276 | |
---|
277 | <label i18n:translate="label_enable_reply_notification" |
---|
278 | for="isReplyNotificationEnabled">Enable Commentator notification on comment was replied.</label> |
---|
279 | </div> |
---|
280 | </fieldset> |
---|
281 | |
---|
282 | <div class="formControls"> |
---|
283 | <input type="hidden" name="form.submitted" value="1" /> |
---|
284 | <input class="context" |
---|
285 | tabindex="" |
---|
286 | type="submit" |
---|
287 | name="form.button.form_submit" |
---|
288 | value="Save" |
---|
289 | i18n:attributes="value" |
---|
290 | tal:attributes="tabindex tabindex/next;"/> |
---|
291 | </div> |
---|
292 | </form> |
---|
293 | </div> |
---|
294 | </div> |
---|
295 | </div> |
---|
296 | </div> |
---|
297 | </div> |
---|
298 | </body> |
---|
299 | </html> |
---|