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

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

Removed tabindex support

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