source: products/qPloneCaptchas/tags/1.3.1/skins/captchas_sendto_form/2.1.2/sendto_form.cpt @ 458

Last change on this file since 458 was 4, checked in by myroslav, 19 years ago

Fixing repository layout issues

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