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

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

Fixed configlet templates

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