source: products/qPloneComments/tags/1.7b/skins/qplonecomments/prefs_comments_setup_form.cpt @ 1591

Last change on this file since 1591 was 1, checked in by myroslav, 19 years ago

Building directory structure

File size: 7.7 KB
Line 
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_Notification;
77                                 isEnabledNotification 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="isEnabledNotification"
83                           id="isEnabledNotification"
84                           tabindex =""
85                           tal:attributes="name property_id;
86                                           value isEnabledNotification;
87                                           checked python:test(isEnabledNotification, 'True', '');
88                                           tabindex tabindex/next;"/>
89
90                    <label i18n:translate="label_enable_notification"
91                           for="isEnabledNotification">Enable e-mail notification on new coments.</label>
92                </div>
93
94                <!-- <fieldset>
95                    <legend i18n:translate="legend_qpc_setup_legend">Notification and e-mail</legend>
96                -->
97                    <div class="field"
98                         tal:define="property_id string:Email_Discussion_Manager;
99                                     email python:props_sheet.getProperty(property_id, '');
100                                     error python:test(errors.has_key(property_id), errors.get(property_id), None);"
101                         tal:attributes="class python:test(error, 'field error', 'field')"
102                         tal:condition="python:props_sheet.hasProperty(property_id)">
103           
104                        <label i18n:translate="label_discussion-manager_email">Send comments notification emails to:</label>
105           
106                        <div class="formHelp" id="smtp_server_help"
107                             i18n:translate="help_discussion-manager_email">
108                            The e-mail address where notifications about adding new comments will be sent.
109                        </div>
110                       
111                        <div tal:content="error">Validation error output</div>
112
113                        <input name="email_discussion-manager"
114                               value=""
115                               size="40"
116                               tabindex=""
117                               tal:attributes="name property_id;
118                                               value email;
119                                               tabindex tabindex/next;" />
120                    </div>
121
122                    <div class="field"
123                         tal:define="property_id string:Email_Subject_Prefix;
124                                     organization_name python:props_sheet.getProperty(property_id, '');"
125                         tal:condition="python:props_sheet.hasProperty(property_id)">
126           
127                        <label i18n:translate="label_organization_name">Email subject prefix (organization name)</label>
128           
129                        <div class="formHelp" id="organization_name_help"
130                             i18n:translate="help_organization_name">
131                            You can overide message template with custom your 'comment_template' pagetemplate.
132                        </div>
133                       
134                        <input name="organization_name"
135                               value=""
136                               size="40"
137                               tabindex=""
138                               tal:attributes="name property_id;
139                                               value organization_name;
140                                               tabindex tabindex/next;" />
141                    </div>
142                <!--</fieldset>
143                -->
144
145                <div class="formControls">
146                    <input type="hidden" name="form.submitted" value="1" />
147
148                    <input class="context"
149                           tabindex=""
150                           type="submit"
151                           name="form.button.form_submit"
152                           value="Save"
153                           i18n:attributes="value"
154                           tal:attributes="tabindex tabindex/next;"
155                           />
156                </div>
157            </fieldset> 
158        </form>
159    </div>
160
161</div>
162
163</body>
164
165</html>
Note: See TracBrowser for help on using the repository browser.