source: products/quintagroup.plonecomments/trunk/quintagroup/plonecomments/skins/quintagroup_plonecomments/discussion_edit_form.cpt @ 1583

Last change on this file since 1583 was 1583, checked in by kroman0, 14 years ago

Removed captcha from discussion_edit_form

  • Property svn:eol-style set to native
File size: 5.2 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<metal:block fill-slot="sub" />
11
12<div metal:fill-slot="main"
13     tal:define="errors options/state/getErrors;
14                 thread python:putils.getDiscussionThread(here);
15                 discussable python:thread[0];
16                 replies python:thread[1:]">
17
18
19    <form name="edit_form"
20          method="post"
21          action="talkback"
22          tal:attributes="action string:$here_url/$template_id">
23
24        <fieldset>
25
26            <legend i18n:translate="legend_edit_comment">Edit comment</legend>
27            <p i18n:translate="description_edit_comment">
28                You can edit a comment by filling out the form below. Plain text
29                formatting.
30            </p>
31
32            <input type="hidden" name="Creator" value=""
33                   tal:attributes="value member/getUserName" />
34
35            <div class="portalMessage"
36                 tal:condition="isAnon">
37
38                <tal:block replace="structure here/info.gif"/>
39
40                <p i18n:translate="legend_note_reply_anonymous">
41                    Note: you are not logged in. You may optionally enter your
42                    username and password below. If you don't enter your
43                    username and password below, this comment will be posted as
44                    the 'Anonymous User'.
45                </p>
46
47                <div class="field">
48
49                    <label for="username" i18n:translate="label_name">Name</label>
50
51                    <input name="username"
52                           id="username"
53                           value="" alt="Username" title="Name"
54                           size="40"
55                           tabindex=""
56                           i18n:attributes="title label_name; alt label_username;"
57                           tal:attributes="tabindex tabindex/next;" />
58
59                </div>
60
61                <div class="field">
62
63                    <label for="password" i18n:translate="label_password">Password</label>
64
65                    <input type="password"
66                           id="password"
67                           name="password"
68                           tabindex=""
69                           value="" alt="Password" title="Password"
70                           size="40"
71                           i18n:attributes="title label_password; alt label_password;"
72                           tal:attributes="tabindex tabindex/next;" />
73
74                </div>
75
76            </div>
77
78
79        <div class="field"
80        tal:define="error errors/subject|nothing;"
81        tal:attributes="class python:test(error, 'field error', 'field')">
82
83                <label for="subject" i18n:translate="label_subject">Subject</label>
84
85        <span class="fieldRequired" title="Required"
86              i18n:attributes="title title_required;"
87              i18n:translate="label_required">(Required)</span>
88
89            <div tal:content="error">Validation error output</div>
90
91                <input name="subject"
92                       id="subject"
93                       value=""
94                       size="40"
95                       tabindex=""
96                       tal:attributes="value context/title|request/subject|request/title_override|nothing;
97                                       tabindex tabindex/next" />
98
99            </div>
100
101        <div class="field"
102        tal:define="error errors/body_text|nothing;"
103        tal:attributes="class python:test(error, 'field error', 'field')">
104
105          <label for="body_text" i18n:translate="label_comment">Comment</label>
106
107        <span class="fieldRequired" title="Required"
108              i18n:attributes="title title_required;"
109              i18n:translate="label_required">(Required)</span>
110
111            <div tal:content="error">Validation error output</div>
112
113                <textarea name="body_text"
114                          id="body_text"
115                          cols="40"
116                          rows="20"
117                          tabindex=""
118                          tal:content="context/text|request/body_text|request/text_override | nothing"
119                          tal:attributes="tabindex tabindex/next"
120                        ></textarea>
121
122            </div>
123
124            <div class="formControls">
125
126                <input class="context"
127                       tabindex=""
128                       type="submit"
129                       value="Save"
130                       name="form.button.Save"
131                       i18n:attributes="value label_save;"
132                       tal:attributes="tabindex tabindex/next;" />
133                <input class="standalone"
134                       tabindex=""
135                       type="submit"
136                       value="Cancel"
137                       name="form.button.Cancel"
138                       i18n:attributes="value label_cancel;"
139                       tal:attributes="tabindex tabindex/next;" />
140
141            </div>
142          <input type="hidden" name="form.submitted" value="1" />
143
144        </fieldset>
145
146    </form>
147
148</div>
149
150</body>
151</html>
Note: See TracBrowser for help on using the repository browser.