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="errors options/state/getErrors;"> |
---|
19 | |
---|
20 | <h1 class="documentFirstHeading" |
---|
21 | i18n:translate="heading_send_page_to">Send this page to someone</h1> |
---|
22 | |
---|
23 | <p 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 | </p> |
---|
28 | |
---|
29 | |
---|
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:$here_url/$template_id"> |
---|
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:attributes="value python: request.get('send_from_address', member.getProperty('email',''));" |
---|
86 | /> |
---|
87 | </div> |
---|
88 | |
---|
89 | <div class="field"> |
---|
90 | <label for="comment" i18n:translate="label_comment">Comment</label> |
---|
91 | |
---|
92 | <div class="formHelp" i18n:translate="help_comment_to_link"> |
---|
93 | A comment about this link. |
---|
94 | </div> |
---|
95 | |
---|
96 | <textarea cols="80" |
---|
97 | rows="5" |
---|
98 | id="comment" |
---|
99 | name="comment" |
---|
100 | tal:content="request/comment | nothing" |
---|
101 | > |
---|
102 | Comment |
---|
103 | </textarea> |
---|
104 | </div> |
---|
105 | |
---|
106 | <div metal:use-macro="here/captcha_widget/macros/captcha"></div> |
---|
107 | <div class="formControls"> |
---|
108 | <input class="context" |
---|
109 | type="submit" |
---|
110 | name="form.button.Send" |
---|
111 | value="Send" |
---|
112 | i18n:attributes="value label_send;" |
---|
113 | /> |
---|
114 | </div> |
---|
115 | |
---|
116 | <input type="hidden" name="form.submitted" value="1" /> |
---|
117 | |
---|
118 | </fieldset> |
---|
119 | |
---|
120 | </form> |
---|
121 | |
---|
122 | </div> |
---|
123 | |
---|
124 | </body> |
---|
125 | </html> |
---|