[797] | 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" |
---|
[2454] | 5 | metal:use-macro="context/main_template/macros/master" |
---|
[797] | 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 | |
---|
[2454] | 17 | <metal:main fill-slot="main" |
---|
[1874] | 18 | tal:define="errors options/state/getErrors;"> |
---|
[797] | 19 | |
---|
| 20 | <h1 class="documentFirstHeading" |
---|
| 21 | i18n:translate="heading_send_page_to">Send this page to someone</h1> |
---|
| 22 | |
---|
[2454] | 23 | <div class="documentDescription" |
---|
[797] | 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. |
---|
[2454] | 27 | </div> |
---|
[797] | 28 | |
---|
[2454] | 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}"> |
---|
[797] | 36 | |
---|
[2454] | 37 | <fieldset> |
---|
[797] | 38 | |
---|
[2454] | 39 | <legend i18n:translate="legend_address_info">Address info</legend> |
---|
[797] | 40 | |
---|
[2454] | 41 | <div class="field" |
---|
| 42 | tal:define="error errors/send_to_address|nothing;" |
---|
| 43 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
[797] | 44 | |
---|
[2454] | 45 | <label for="send_to_address" i18n:translate="label_send_to_mail">Send to</label> |
---|
[797] | 46 | |
---|
[2454] | 47 | <span class="fieldRequired" title="Required" |
---|
| 48 | i18n:attributes="title title_required;" |
---|
| 49 | i18n:translate="label_required">(Required)</span> |
---|
[797] | 50 | |
---|
[2454] | 51 | <div class="formHelp" i18n:translate="help_send_to_mail"> |
---|
| 52 | The e-mail address to send this link to. |
---|
| 53 | </div> |
---|
[797] | 54 | |
---|
[2454] | 55 | <div tal:content="error">Validation error output</div> |
---|
[797] | 56 | |
---|
[2454] | 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> |
---|
[797] | 64 | |
---|
[2454] | 65 | <div class="field" |
---|
| 66 | tal:define="error errors/send_from_address|nothing;" |
---|
| 67 | tal:attributes="class python:test(error, 'field error', 'field')"> |
---|
[797] | 68 | |
---|
[2454] | 69 | <label for="send_from_address" i18n:translate="label_send_from">From</label> |
---|
[797] | 70 | |
---|
[2454] | 71 | <span class="fieldRequired" title="Required" |
---|
| 72 | i18n:attributes="title title_required;" |
---|
| 73 | i18n:translate="label_required">(Required)</span> |
---|
[797] | 74 | |
---|
[2454] | 75 | <div class="formHelp" i18n:translate="help_send_from"> |
---|
| 76 | Your email address. |
---|
| 77 | </div> |
---|
[797] | 78 | |
---|
[2454] | 79 | <div tal:content="error">Validation error output</div> |
---|
[797] | 80 | |
---|
[2454] | 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> |
---|
[797] | 89 | |
---|
[2454] | 90 | <div class="field"> |
---|
| 91 | <label for="comment" i18n:translate="label_comment">Comment</label> |
---|
[797] | 92 | |
---|
[2454] | 93 | <div class="formHelp" i18n:translate="help_comment_to_link"> |
---|
| 94 | A comment about this link. |
---|
| 95 | </div> |
---|
[797] | 96 | |
---|
[2454] | 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> |
---|
[797] | 106 | |
---|
[2454] | 107 | <div metal:use-macro="here/captcha_widget/macros/captcha"></div> |
---|
[797] | 108 | |
---|
[2454] | 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> |
---|
[797] | 117 | |
---|
[2454] | 118 | <input type="hidden" name="form.submitted" value="1" /> |
---|
[797] | 119 | |
---|
[2454] | 120 | </fieldset> |
---|
[797] | 121 | |
---|
[2454] | 122 | </form> |
---|
| 123 | </div> |
---|
| 124 | |
---|
| 125 | </metal:main> |
---|
[797] | 126 | |
---|
| 127 | </body> |
---|
| 128 | </html> |
---|