source: products/qPloneCaptchas/tags/0.9/skins/captchas_discussion/2.0.5/discussion_reply_form.cpt

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

Building directory structure

  • Property svn:eol-style set to native
File size: 4.9 KB
Line 
1<html xmlns:tal="http://xml.zope.org/namespaces/tal"
2      xmlns:metal="http://xml.zope.org/namespaces/metal"
3      metal:use-macro="here/main_template/macros/master"
4      i18n:domain="plone">
5<body>
6
7<metal:block fill-slot="top_slot"
8             tal:define="dummy python:request.set('disable_border',1)" />
9
10<div metal:fill-slot="main"
11     tal:define="errors options/state/getErrors;">
12
13    <h1 i18n:translate="heading_add_comment">Add Comment</h1>
14
15    <p i18n:translate="description_add_comment">
16        You can add a comment by filling out the form below. Plain text formatting.
17    </p>
18
19    <form name="edit_form"
20          method="post"
21          action="talkback"
22          tal:attributes="action string:${here/getId}/${template/getId}">
23
24        <fieldset>
25
26            <legend i18n:translate="legend_comment_details">Comment Details</legend>
27
28            <input type="hidden" name="Creator" value=""
29                   tal:attributes="value member/getUserName" />
30
31            <div class="portalMessage"
32                 tal:condition="isAnon">
33
34                <tal:block replace="structure here/info.gif"/>
35
36                <span i18n:translate="legend_note_reply_anonymous">
37                    Note: you are not logged in.  You may optionally enter your username
38                    and password below.  If you don't enter your username and
39                    password below, this comment will be posted as the 'Anonymous User'.
40                </span>
41
42                <br/><br/>
43
44                <div class="field">
45
46                    <label for="username" i18n:translate="label_name">Name</label>
47
48                    <input name="username"
49                           id="username"
50                           value="" alt="Username" title="Name"
51                           size="40"
52                           tabindex=""
53                           i18n:attributes="title"
54                           tal:attributes="tabindex tabindex/next;" />
55
56                </div>
57
58                <div class="field">
59
60                    <label for="password" i18n:translate="label_password">Password</label>
61
62                    <input type="password"
63                           id="password"
64                           name="password"
65                           tabindex=""
66                           value="" alt="Password" title="Password"
67                           size="40"
68                           i18n:attributes="title"
69                           tal:attributes="tabindex tabindex/next;" />
70
71                </div>
72
73            </div>
74
75
76            <div class="field"
77                tal:define="error errors/subject|nothing;"
78                tal:attributes="class python:test(error, 'field error', 'field')">
79
80                <label for="title" i18n:translate="label_subject">Subject</label>
81
82                <span class="fieldRequired" title="Required"
83                      i18n:attributes="title"
84                      i18n:translate="label_required">(Required)</span>
85
86                    <div class="formHelp" i18n:translate="help_subject">
87                        The subject of your posting.
88                    </div>
89
90                    <div tal:content="error">Validation error output</div>
91
92                <input name="subject"
93                       id="subject"
94                       value=""
95                       size="40"
96                       tabindex=""
97                       tal:attributes="value request/subject|request/title_override|nothing;
98                                       tabindex tabindex/next" />
99
100            </div>
101
102            <div class="field"
103                tal:define="error errors/body_text|nothing;"
104                tal:attributes="class python:test(error, 'field error', 'field')">
105
106                <label for="text" i18n:translate="label_body_text">Body text</label>
107
108                <span class="fieldRequired" title="Required"
109                      i18n:attributes="title"
110                      i18n:translate="label_required">(Required)</span>
111
112                    <div class="formHelp" i18n:translate="help_body_text">
113                        The message of your posting.
114                    </div>
115
116                    <div tal:content="error">Validation error output</div>
117
118                <textarea name="body_text"
119                          id="body_text"
120                          cols="40"
121                          rows="8"
122                          tabindex=""
123                          tal:content="request/body_text|request/text_override | nothing"
124                          tal:attributes="tabindex tabindex/next"
125                        ></textarea>
126
127            </div>
128
129            <div metal:use-macro="here/captcha_widget/macros/captcha"></div>
130
131            <div class="formControls">
132
133                <input class="context"
134                       tabindex=""
135                       type="submit"
136                       value="Add Comment"
137                       name="form.button.Save"
138                       i18n:attributes="value"
139                       tal:attributes="tabindex tabindex/next;
140                                       name string:discussion_reply:method;" />
141
142            </div>
143          <input type="hidden" name="form.submitted" value="1" />
144
145        </fieldset>
146
147    </form>
148
149</div>
150
151</body>
152</html>
Note: See TracBrowser for help on using the repository browser.