1 | <html xmlns="http://www.w3.org/1999/xhtml"
|
---|
2 | xml:lang="en"
|
---|
3 | lang="en"
|
---|
4 | i18n:domain="plone"
|
---|
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="plone">
|
---|
13 | <div class="configlet">
|
---|
14 | <div class="documentEditable">
|
---|
15 |
|
---|
16 | <!-- simulating views -->
|
---|
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="qpc_setup">qPloneComments 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 | Up to Plone Setup
|
---|
42 | </a>
|
---|
43 |
|
---|
44 | <form name="edit_form"
|
---|
45 | action="href"
|
---|
46 | method="post"
|
---|
47 | enctype="multipart/form-data"
|
---|
48 | tal:define ="pp here/portal_properties;
|
---|
49 | props_sheet python:getattr(pp, 'qPloneComments');"
|
---|
50 | tal:attributes="action string:${here/getId}/${template/getId}">
|
---|
51 |
|
---|
52 | <fieldset>
|
---|
53 | <legend i18n:translate="legend_qpc_notification_legend">qPloneComments setup Details</legend>
|
---|
54 |
|
---|
55 | <div class="field"
|
---|
56 | tal:define="property_id string:enable_moderation;
|
---|
57 | isEnabledModeration python:props_sheet.getProperty(property_id, False);"
|
---|
58 | tal:condition="python:props_sheet.hasProperty(property_id)">
|
---|
59 |
|
---|
60 | <input type="checkbox"
|
---|
61 | class="noborder"
|
---|
62 | name="isEnabledModeration"
|
---|
63 | id="isEnabledModeration"
|
---|
64 | tabindex =""
|
---|
65 | tal:attributes="name property_id;
|
---|
66 | value isEnabledModeration;
|
---|
67 | checked python:test(isEnabledModeration, 'True', '');
|
---|
68 | tabindex tabindex/next;"/>
|
---|
69 |
|
---|
70 | <label i18n:translate="label_enable_moderation"
|
---|
71 | for="isEnabledModeration">Enable moderation.</label>
|
---|
72 |
|
---|
73 | </div>
|
---|
74 |
|
---|
75 | <div class="field"
|
---|
76 | tal:define="property_id string:enable_anonymous_commenting;
|
---|
77 | isEnabledAnonymousCommenting python:props_sheet.getProperty(property_id, False);"
|
---|
78 | tal:condition="python:props_sheet.hasProperty(property_id)">
|
---|
79 |
|
---|
80 | <input type="checkbox"
|
---|
81 | class="noborder"
|
---|
82 | name="isEnabledAnonymousCommenting"
|
---|
83 | id="isEnabledAnonymousCommenting"
|
---|
84 | tabindex =""
|
---|
85 | tal:attributes="name property_id;
|
---|
86 | value isEnabledAnonymousCommenting;
|
---|
87 | checked python:test(isEnabledAnonymousCommenting, 'True', '');
|
---|
88 | tabindex tabindex/next;"/>
|
---|
89 |
|
---|
90 | <label i18n:translate="label_anonymous_commenting"
|
---|
91 | for="isEnabledAnonymousCommenting">Enable anonymous comenting.</label>
|
---|
92 |
|
---|
93 | </div>
|
---|
94 |
|
---|
95 | <div class="field"
|
---|
96 | tal:define="property_id string:enable_published_notification;
|
---|
97 | isEnabledPublishedNotification python:props_sheet.getProperty(property_id, False);"
|
---|
98 | tal:condition="python:props_sheet.hasProperty(property_id)">
|
---|
99 |
|
---|
100 | <input type="checkbox"
|
---|
101 | class="noborder"
|
---|
102 | name="isEnabledPublishedNotification"
|
---|
103 | id="isEnabledPublishedNotification"
|
---|
104 | tabindex =""
|
---|
105 | tal:attributes="name property_id;
|
---|
106 | value isEnabledPublishedNotification;
|
---|
107 | checked python:test(isEnabledPublishedNotification, 'True', '');
|
---|
108 | tabindex tabindex/next;"/>
|
---|
109 |
|
---|
110 | <label i18n:translate="label_enable_published_notification"
|
---|
111 | for="isEnabledPublishedNotification">Enable Document Owner notification on new comments.</label>
|
---|
112 | </div>
|
---|
113 |
|
---|
114 | <div class="field"
|
---|
115 | tal:define="property_id string:enable_approve_notification;
|
---|
116 | isEnableApproveNotification 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="isEnableApproveNotification"
|
---|
122 | id="isEnableApproveNotification"
|
---|
123 | tabindex =""
|
---|
124 | tal:attributes="name property_id;
|
---|
125 | value isEnableApproveNotification;
|
---|
126 | checked python:test(isEnableApproveNotification, 'True', '');
|
---|
127 | tabindex tabindex/next;"/>
|
---|
128 |
|
---|
129 | <label i18n:translate="label_enable_approve_notification"
|
---|
130 | for="isEnableApproveNotification">Enable Discussion Manager notification on new comments.</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 e-mail address where notifications about adding new comments 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 customizing 'approve_comment_template' and 'published_comment_template' from 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 | <div class="formControls">
|
---|
180 | <input type="hidden" name="form.submitted" value="1" />
|
---|
181 |
|
---|
182 | <input class="context"
|
---|
183 | tabindex=""
|
---|
184 | type="submit"
|
---|
185 | name="form.button.form_submit"
|
---|
186 | value="Save"
|
---|
187 | i18n:attributes="value"
|
---|
188 | tal:attributes="tabindex tabindex/next;"
|
---|
189 | />
|
---|
190 | </div>
|
---|
191 | </fieldset>
|
---|
192 | </form>
|
---|
193 | </div>
|
---|
194 | </div>
|
---|
195 | </div>
|
---|
196 | </div>
|
---|
197 | </div>
|
---|
198 | </body>
|
---|
199 | </html> |
---|