source: products/quintagroup.plonecaptchas/trunk/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto_form.cpt @ 1691

Last change on this file since 1691 was 1691, checked in by liebster, 14 years ago

Fixed global definitions in templates by Plone4

File size: 4.4 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
2      xmlns:tal="http://xml.zope.org/namespaces/tal"
3      xmlns:metal="http://xml.zope.org/namespaces/metal"
4      xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5      metal:use-macro="here/main_template/macros/master"
6      i18n:domain="plone">
7
8<metal:block fill-slot="top_slot"
9             tal:define="dummy python:request.set('disable_border',1)" />
10
11  <metal:head fill-slot="head_slot">
12    <meta name="robots" content="noindex,follow" />
13  </metal:head>
14
15  <body>
16
17    <div metal:fill-slot="main"
18         tal:define="template_id template/getId;
19                     errors options/state/getErrors;
20                     member context/@@plone_portal_state/member;
21                     here_url context/@@plone_context_state/object_url;">
22
23      <h1 class="documentFirstHeading"
24          i18n:translate="heading_send_page_to">Send this page to someone</h1>
25
26      <p class="documentDescription"
27         i18n:translate="description_send_page_url_to">
28        Fill in the email address of your friend, and we will send an email
29        that contains a link to this page.
30      </p>
31
32
33      <form name="sendto_form"
34            class="enableAutoFocus"
35            action="sendto_form"
36            method="post"
37            enctype="multipart/form-data"
38            tal:attributes="action string:$here_url/$template_id">
39
40        <fieldset>
41
42          <legend i18n:translate="legend_address_info">Address info</legend>
43
44          <div class="field"
45               tal:define="error errors/send_to_address|nothing;"
46               tal:attributes="class python:test(error, 'field error', 'field')">
47
48            <label for="send_to_address" i18n:translate="label_send_to_mail">Send to</label>
49
50            <span class="fieldRequired" title="Required"
51                  i18n:attributes="title title_required;"
52                  i18n:translate="label_required">(Required)</span>
53
54                  <div class="formHelp" i18n:translate="help_send_to_mail">
55                    The e-mail address to send this link to.
56                  </div>
57
58                  <div tal:content="error">Validation error output</div>
59
60                  <input type="text"
61                         id="send_to_address"
62                         name="send_to_address"
63                         size="25"
64                         tal:attributes="value request/send_to_address | nothing;"
65                         />
66          </div>
67
68          <div class="field"
69               tal:define="error errors/send_from_address|nothing;"
70               tal:attributes="class python:test(error, 'field error', 'field')">
71
72            <label for="send_from_address" i18n:translate="label_send_from">From</label>
73
74            <span class="fieldRequired" title="Required"
75                  i18n:attributes="title title_required;"
76                  i18n:translate="label_required">(Required)</span>
77
78                  <div class="formHelp" i18n:translate="help_send_from">
79                    Your email address.
80                  </div>
81
82                  <div tal:content="error">Validation error output</div>
83
84                  <input type="text"
85                         id="send_from_address"
86                         name="send_from_address"
87                         size="25"
88                         tal:attributes="value python: request.get('send_from_address', member.getProperty('email',''));"
89                         />
90          </div>
91
92          <div class="field">
93            <label for="comment" i18n:translate="label_comment">Comment</label>
94
95            <div class="formHelp" i18n:translate="help_comment_to_link">
96              A comment about this link.
97            </div>
98
99            <textarea cols="80"
100                      rows="5"
101                      id="comment"
102                      name="comment"
103                      tal:content="request/comment | nothing"
104                      >
105              Comment
106            </textarea>
107          </div>
108         
109          <div metal:use-macro="here/captcha_widget/macros/captcha"></div>
110          <div class="formControls">
111            <input class="context"
112                   type="submit"
113                   name="form.button.Send"
114                   value="Send"
115                   i18n:attributes="value label_send;"
116                   />
117          </div>
118
119          <input type="hidden" name="form.submitted" value="1" />
120
121        </fieldset>
122
123      </form>
124
125    </div>
126
127  </body>
128</html>
Note: See TracBrowser for help on using the repository browser.