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 | |
---|
14 | <h1 i18n:translate="qpc_setup">qPloneComments Setup</h1> |
---|
15 | |
---|
16 | <a href="" |
---|
17 | class="link-parent" |
---|
18 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
19 | i18n:translate="label_up_to_plone_setup"> |
---|
20 | Up to Plone Setup |
---|
21 | </a> |
---|
22 | |
---|
23 | <form name="edit_form" |
---|
24 | action="href" |
---|
25 | method="post" |
---|
26 | enctype="multipart/form-data" |
---|
27 | tal:define ="pp here/portal_properties; |
---|
28 | ps_name python:modules['Products.qPloneComments.config'].PROPERTY_SHEET; |
---|
29 | props_sheet python:getattr(pp, ps_name);" |
---|
30 | tal:attributes="action string:${here/getId}/${template/getId}"> |
---|
31 | |
---|
32 | <fieldset> |
---|
33 | <legend i18n:translate="legend_qpc_notification_legend">qPloneComments setup Details</legend> |
---|
34 | |
---|
35 | <div class="field" |
---|
36 | tal:define="property_id string:Enable_Moderation; |
---|
37 | isEnabledModeration python:props_sheet.getProperty(property_id, False);" |
---|
38 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
39 | |
---|
40 | <input type="checkbox" |
---|
41 | class="noborder" |
---|
42 | name="isEnabledModeration" |
---|
43 | id="isEnabledModeration" |
---|
44 | tabindex ="" |
---|
45 | tal:attributes="name property_id; |
---|
46 | value isEnabledModeration; |
---|
47 | checked python:test(isEnabledModeration, 'True', ''); |
---|
48 | tabindex tabindex/next;"/> |
---|
49 | |
---|
50 | <label i18n:translate="label_enable_moderation" |
---|
51 | for="isEnabledModeration">Enable moderation.</label> |
---|
52 | |
---|
53 | </div> |
---|
54 | |
---|
55 | <div class="field" |
---|
56 | tal:define="property_id string:Enable_Anonymous_Commenting; |
---|
57 | isEnabledAnonymousCommenting 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="isEnabledAnonymousCommenting" |
---|
63 | id="isEnabledAnonymousCommenting" |
---|
64 | tabindex ="" |
---|
65 | tal:attributes="name property_id; |
---|
66 | value isEnabledAnonymousCommenting; |
---|
67 | checked python:test(isEnabledAnonymousCommenting, 'True', ''); |
---|
68 | tabindex tabindex/next;"/> |
---|
69 | |
---|
70 | <label i18n:translate="label_anonymous_commenting" |
---|
71 | for="isEnabledAnonymousCommenting">Enable anonymous comenting.</label> |
---|
72 | |
---|
73 | </div> |
---|
74 | |
---|
75 | <div class="field" |
---|
76 | tal:define="property_id string:Enable_Published_Notification; |
---|
77 | isEnabledPublishedNotification 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="isEnabledPublishedNotification" |
---|
83 | id="isEnabledPublishedNotification" |
---|
84 | tabindex ="" |
---|
85 | tal:attributes="name property_id; |
---|
86 | value isEnabledPublishedNotification; |
---|
87 | checked python:test(isEnabledPublishedNotification, 'True', ''); |
---|
88 | tabindex tabindex/next;"/> |
---|
89 | |
---|
90 | <label i18n:translate="label_enable_published_notification" |
---|
91 | for="isEnabledPublishedNotification">Enable Document Owner notification on new comments.</label> |
---|
92 | </div> |
---|
93 | |
---|
94 | <div class="field" |
---|
95 | tal:define="property_id string:Enable_Approve_Notification; |
---|
96 | isEnableApproveNotification python:props_sheet.getProperty(property_id, False);" |
---|
97 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
98 | |
---|
99 | <input type="checkbox" |
---|
100 | class="noborder" |
---|
101 | name="isEnableApproveNotification" |
---|
102 | id="isEnableApproveNotification" |
---|
103 | tabindex ="" |
---|
104 | tal:attributes="name property_id; |
---|
105 | value isEnableApproveNotification; |
---|
106 | checked python:test(isEnableApproveNotification, 'True', ''); |
---|
107 | tabindex tabindex/next;"/> |
---|
108 | |
---|
109 | <label i18n:translate="label_enable_approve_notification" |
---|
110 | for="isEnableApproveNotification">Enable Discussion Manager notification on new comments.</label> |
---|
111 | </div> |
---|
112 | |
---|
113 | <!-- <fieldset> |
---|
114 | <legend i18n:translate="legend_qpc_setup_legend">Notification and e-mail</legend> |
---|
115 | --> |
---|
116 | <div class="field" |
---|
117 | tal:define="property_id string:Email_Discussion_Manager; |
---|
118 | email python:props_sheet.getProperty(property_id, ''); |
---|
119 | error python:test(errors.has_key(property_id), errors.get(property_id), None);" |
---|
120 | tal:attributes="class python:test(error, 'field error', 'field')" |
---|
121 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
122 | |
---|
123 | <label i18n:translate="label_discussion-manager_email">Send comments notification emails to:</label> |
---|
124 | |
---|
125 | <div class="formHelp" id="smtp_server_help" |
---|
126 | i18n:translate="help_discussion-manager_email"> |
---|
127 | The e-mail address where notifications about adding new comments will be sent. |
---|
128 | </div> |
---|
129 | |
---|
130 | <div tal:content="error">Validation error output</div> |
---|
131 | |
---|
132 | <input name="email_discussion-manager" |
---|
133 | value="" |
---|
134 | size="40" |
---|
135 | tabindex="" |
---|
136 | tal:attributes="name property_id; |
---|
137 | value email; |
---|
138 | tabindex tabindex/next;" /> |
---|
139 | </div> |
---|
140 | |
---|
141 | <div class="field" |
---|
142 | tal:define="property_id string:Email_Subject_Prefix; |
---|
143 | organization_name python:props_sheet.getProperty(property_id, '');" |
---|
144 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
145 | |
---|
146 | <label i18n:translate="label_organization_name">Email subject prefix (organization name)</label> |
---|
147 | |
---|
148 | <div class="formHelp" id="organization_name_help" |
---|
149 | i18n:translate="help_organization_name"> |
---|
150 | You can change notification message templates customizing 'approve_comment_template' |
---|
151 | and 'published_comment_template' from qplonecomments skin. |
---|
152 | </div> |
---|
153 | |
---|
154 | <input name="organization_name" |
---|
155 | value="" |
---|
156 | size="40" |
---|
157 | tabindex="" |
---|
158 | tal:attributes="name property_id; |
---|
159 | value organization_name; |
---|
160 | tabindex tabindex/next;" /> |
---|
161 | </div> |
---|
162 | <!--</fieldset> |
---|
163 | --> |
---|
164 | |
---|
165 | <div class="formControls"> |
---|
166 | <input type="hidden" name="form.submitted" value="1" /> |
---|
167 | |
---|
168 | <input class="context" |
---|
169 | tabindex="" |
---|
170 | type="submit" |
---|
171 | name="form.button.form_submit" |
---|
172 | value="Save" |
---|
173 | i18n:attributes="value" |
---|
174 | tal:attributes="tabindex tabindex/next;" |
---|
175 | /> |
---|
176 | </div> |
---|
177 | </fieldset> |
---|
178 | </form> |
---|
179 | </div> |
---|
180 | |
---|
181 | </div> |
---|
182 | |
---|
183 | </body> |
---|
184 | |
---|
185 | </html> |
---|