source: products/quintagroup.plonecaptchas/branches/plone4/quintagroup/plonecaptchas/skins/captchas_sendto_form/sendto_form.cpt @ 2454

Last change on this file since 2454 was 2454, checked in by mylan, 14 years ago

#194: Fixed sendto form for plone-4

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