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="qplonecomments_configuration">qPloneComments Configuration</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_mailhost_details">qPloneComments configuration Details</legend> |
---|
34 | |
---|
35 | <div class="field" |
---|
36 | tal:define="property_id string:Email_of_discussion_manager; |
---|
37 | email python:props_sheet.getProperty(property_id, ''); |
---|
38 | error python:test(errors.has_key(property_id), errors.get(property_id), None);" |
---|
39 | tal:attributes="class python:test(error, 'field error', 'field')" |
---|
40 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
41 | |
---|
42 | <label i18n:translate="label_discussion-manager_email">E-mail of discussion manager</label> |
---|
43 | |
---|
44 | <div class="formHelp" id="smtp_server_help" |
---|
45 | i18n:translate="help_discussion-manager_email"> |
---|
46 | The e-mail address where notifications about adding new comments will be sent. |
---|
47 | </div> |
---|
48 | |
---|
49 | <div tal:content="error">Validation error output</div> |
---|
50 | |
---|
51 | <input name="email_discussion-manager" |
---|
52 | value="" |
---|
53 | size="40" |
---|
54 | tabindex="" |
---|
55 | tal:attributes="name property_id; |
---|
56 | value email; |
---|
57 | tabindex tabindex/next;" /> |
---|
58 | </div> |
---|
59 | |
---|
60 | <div class="field" |
---|
61 | tal:define="property_id string:Turning_on/off_notification; |
---|
62 | isEnabledNotification python:props_sheet.getProperty(property_id, False);" |
---|
63 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
64 | |
---|
65 | <input type="checkbox" |
---|
66 | class="noborder" |
---|
67 | name="isEnabledNotification" |
---|
68 | id="isEnabledNotification" |
---|
69 | tabindex ="" |
---|
70 | tal:attributes="name property_id; |
---|
71 | value isEnabledNotification; |
---|
72 | checked python:test(isEnabledNotification, 'True', ''); |
---|
73 | tabindex tabindex/next;"/> |
---|
74 | |
---|
75 | <label i18n:translate="label_enable_notification" |
---|
76 | for="isEnabledNotification">Enable e-mail notification about comments adding.</label> |
---|
77 | |
---|
78 | <div class="formHelp" i18n:translate="help_enable_notification"> |
---|
79 | If checked, notification will be sent to discussion manager's e-mail. |
---|
80 | </div> |
---|
81 | </div> |
---|
82 | |
---|
83 | <div class="field" |
---|
84 | tal:define="property_id string:Turning_on/off_Moderation; |
---|
85 | isEnabledModeration python:props_sheet.getProperty(property_id, False);" |
---|
86 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
87 | |
---|
88 | <input type="checkbox" |
---|
89 | class="noborder" |
---|
90 | name="isEnabledModeration" |
---|
91 | id="isEnabledModeration" |
---|
92 | tabindex ="" |
---|
93 | tal:attributes="name property_id; |
---|
94 | value isEnabledModeration; |
---|
95 | checked python:test(isEnabledModeration, 'True', ''); |
---|
96 | tabindex tabindex/next;"/> |
---|
97 | |
---|
98 | <label i18n:translate="label_enable_moderation" |
---|
99 | for="isEnabledModeration">Enable moderation.</label> |
---|
100 | |
---|
101 | <div class="formHelp" i18n:translate="help_enable_moderation"> |
---|
102 | If checked, moderation for new comments will be activated. |
---|
103 | </div> |
---|
104 | </div> |
---|
105 | |
---|
106 | <div class="field" |
---|
107 | tal:define="property_id string:Turning_on/off_Anonymous_Commenting; |
---|
108 | isEnabledAnonymousCommenting python:props_sheet.getProperty(property_id, False);" |
---|
109 | tal:condition="python:props_sheet.hasProperty(property_id)"> |
---|
110 | |
---|
111 | <input type="checkbox" |
---|
112 | class="noborder" |
---|
113 | name="isEnabledAnonymousCommenting" |
---|
114 | id="isEnabledAnonymousCommenting" |
---|
115 | tabindex ="" |
---|
116 | tal:attributes="name property_id; |
---|
117 | value isEnabledAnonymousCommenting; |
---|
118 | checked python:test(isEnabledAnonymousCommenting, 'True', ''); |
---|
119 | tabindex tabindex/next;"/> |
---|
120 | |
---|
121 | <label i18n:translate="label_anonymous_commenting" |
---|
122 | for="isEnabledAnonymousCommenting">Enable commenting for anonymous users.</label> |
---|
123 | |
---|
124 | <div class="formHelp" i18n:translate="help_anonymous_commenting"> |
---|
125 | If checked, anonymous users will be able to add comments and sign them. |
---|
126 | </div> |
---|
127 | </div> |
---|
128 | |
---|
129 | <div class="formControls"> |
---|
130 | <input type="hidden" name="form.submitted" value="1" /> |
---|
131 | |
---|
132 | <input class="context" |
---|
133 | tabindex="" |
---|
134 | type="submit" |
---|
135 | name="form.button.form_submit" |
---|
136 | value="Save" |
---|
137 | i18n:attributes="value" |
---|
138 | tal:attributes="tabindex tabindex/next;" |
---|
139 | /> |
---|
140 | </div> |
---|
141 | </fieldset> |
---|
142 | </form> |
---|
143 | </div> |
---|
144 | |
---|
145 | </div> |
---|
146 | |
---|
147 | </body> |
---|
148 | |
---|
149 | </html> |
---|