source: products/qPloneComments/branches/plone3_extend/skins/qplonecomments/prefs_comments_setup_form.cpt @ 864

Last change on this file since 864 was 800, checked in by crchemist, 17 years ago

Deleted mistakable folder.

  • Property svn:eol-style set to native
File size: 14.3 KB
Line 
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">
13    <div class="configlet">
14    <div class="documentEditable"
15         tal:condition="python:checkPermission('Moderate Discussion', here)">
16
17    <!-- simulating views on the configure/comments pages until we have real objects. -->
18    <ul 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        <a href=""
27        tal:attributes="href string:prefs_recent_comments_form"
28        i18n:translate="label_comments">Recent comments moderation</a>
29        </li>
30    </ul>
31
32    <div class="contentActions">
33    &nbsp;
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
117                <div class="field"
118                     tal:define="isEnabledManagerModeration python:checkPermission('Moderate Discussion', here);">
119
120                    <input type="checkbox"
121                           class="noborder"
122                           name="EnableManagerModeration"
123                           id="EnableManagerModeration"
124                           tabindex =""
125                           tal:attributes="value isEnabledManagerModeration;
126                                           checked python:test(isEnabledManagerModeration, 'True', '');
127                                           tabindex tabindex/next;"/>
128
129                    <label i18n:translate="enable_manager_moderation"
130                           for="isEnableApproveNotification">Enable Manager moderation</label>
131                </div>
132
133                <div class="field"
134                     tal:define="property_id string:email_discussion_manager;
135                                 email python:props_sheet.getProperty(property_id, '');
136                                 error python:test(errors.has_key(property_id), errors.get(property_id), None);"
137                     tal:attributes="class python:test(error, 'field error', 'field')"
138                     tal:condition="python:props_sheet.hasProperty(property_id)">
139
140                    <label i18n:translate="label_discussion-manager_email">Send comments notification emails to:</label>
141
142                    <div class="formHelp" id="smtp_server_help"
143                         i18n:translate="help_discussion-manager_email">
144                        The email address where comment notifications will be sent
145                    </div>
146
147                    <div tal:content="error">Validation error output</div>
148
149                    <input name="email_discussion-manager"
150                           value=""
151                           size="40"
152                           tabindex=""
153                           tal:attributes="name property_id;
154                                           value email;
155                                           tabindex tabindex/next;" />
156                </div>
157
158                <div class="field"
159                     tal:define="property_id string:email_subject_prefix;
160                                 organization_name python:props_sheet.getProperty(property_id, '');"
161                     tal:condition="python:props_sheet.hasProperty(property_id)">
162
163                    <label i18n:translate="label_organization_name">Email subject prefix (organization name)</label>
164
165                    <div class="formHelp" id="organization_name_help"
166                         i18n:translate="help_organization_name">
167                        You can change notification message templates by customizing 'approve_comment_template' and 'published_comment_template' in the qplonecomments skin.
168                    </div>
169
170                    <input name="organization_name"
171                           value=""
172                           size="40"
173                           tabindex=""
174                           tal:attributes="name property_id;
175                                           value organization_name;
176                                           tabindex tabindex/next;" />
177                </div>
178
179            </fieldset>
180
181
182
183
184            <fieldset>
185                <legend i18n:translate="legend_qpc_notification_legend">Email Notification Options</legend>
186
187                <div class="field"
188                     tal:define="property_id string:enable_published_notification;
189                                 isEnabledPublishedNotification python:props_sheet.getProperty(property_id, False);"
190                     tal:condition="python:props_sheet.hasProperty(property_id)">
191
192                    <input type="checkbox"
193                           class="noborder"
194                           name="isEnabledPublishedNotification"
195                           id="isEnabledPublishedNotification"
196                           tabindex =""
197                           tal:attributes="name property_id;
198                                           value isEnabledPublishedNotification;
199                                           checked python:test(isEnabledPublishedNotification, 'True', '');
200                                           tabindex tabindex/next;"/>
201
202                    <label i18n:translate="label_enable_published_notification"
203                           for="isEnabledPublishedNotification">Notify Document Owner of new comments on their documents.</label>
204                </div>
205
206                <div class="field"
207                     tal:define="property_id string:enable_approve_notification;
208                                 isEnableApproveNotification python:props_sheet.getProperty(property_id, False);"
209                     tal:condition="python:props_sheet.hasProperty(property_id)">
210
211                    <input type="checkbox"
212                           class="noborder"
213                           name="isEnableApproveNotification"
214                           id="isEnableApproveNotification"
215                           tabindex =""
216                           tal:attributes="name property_id;
217                                           value isEnableApproveNotification;
218                                           checked python:test(isEnableApproveNotification, 'True', '');
219                                           tabindex tabindex/next;"/>
220
221                    <label i18n:translate="label_enable_approve_notification"
222                           for="isEnableApproveNotification">Notify Discussion Manager of new comments.</label>
223                </div>
224
225                <div class="field"
226                     tal:define="property_id string:enable_approve_user_notification;
227                                 isEnableApproveUserNotification python:props_sheet.getProperty(property_id, False);"
228                     tal:condition="python:props_sheet.hasProperty(property_id)">
229
230                    <input type="checkbox"
231                           class="noborder"
232                           name="isEnableApproveUserNotification"
233                           id="isEnableApproveUserNotification"
234                           tabindex =""
235                           tal:attributes="name property_id;
236                                           value isEnableApproveUserNotification;
237                                           checked python:test(isEnableApproveUserNotification, 'True', '');
238                                           tabindex tabindex/next;"/>
239
240                    <label i18n:translate="label_enable_approve_user_notification"
241                           for="isEnableApproveUserNotification">Notify Commenter when comment is published.</label>
242                </div>
243
244                <div class="field"
245                     tal:define="property_id string:enable_rejected_user_notification;
246                                 isRejectionNotificationEnabled python:props_sheet.getProperty(property_id, False);"
247                     tal:condition="python:props_sheet.hasProperty(property_id)">
248
249                    <input type="checkbox"
250                           class="noborder"
251                           name="isRejectionNotificationEnabled"
252                           id="isRejectionNotificationEnabled"
253                           tabindex =""
254                           tal:attributes="name property_id;
255                                           value isRejectionNotificationEnabled;
256                                           checked python:test(isRejectionNotificationEnabled, 'True', '');
257                                           tabindex tabindex/next;"/>
258
259                    <label i18n:translate="label_enable_reject_notification"
260                           for="isRejectionNotificationEnabled">Enable Commentator notification on comment was rejected.</label>
261                </div>
262
263
264                <div class="field"
265                     tal:define="property_id string:enable_reply_user_notification;
266                                 isReplyNotificationEnabled python:props_sheet.getProperty(property_id, False);"
267                     tal:condition="python:props_sheet.hasProperty(property_id)">
268
269                    <input type="checkbox"
270                           class="noborder"
271                           name="isReplyNotificationEnabled"
272                           id="isReplyNotificationEnabled"
273                           tabindex =""
274                           tal:attributes="name property_id;
275                                           value isReplyNotificationEnabled;
276                                           checked python:test(isReplyNotificationEnabled, 'True', '');
277                                           tabindex tabindex/next;"/>
278
279                    <label i18n:translate="label_enable_reply_notification"
280                           for="isReplyNotificationEnabled">Notify Commenter when their comment receives a reply</label>
281                </div>
282            </fieldset>
283
284            <div class="formControls">
285                <input type="hidden" name="form.submitted" value="1" />
286                <input class="context"
287                       tabindex=""
288                       type="submit"
289                       name="form.button.form_submit"
290                       value="Save"
291                       i18n:domain="plone"
292                       i18n:attributes="value"
293                       tal:attributes="tabindex tabindex/next;"/>
294            </div>
295        </form>
296    </div>
297    </div>
298    </div>
299    </div>
300</div>
301</body>
302</html>
Note: See TracBrowser for help on using the repository browser.