[1] | 1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
| 2 | lang="en" |
---|
| 3 | metal:use-macro="here/main_template/macros/master" |
---|
| 4 | i18n:domain="plone"> |
---|
| 5 | |
---|
| 6 | <body> |
---|
| 7 | |
---|
| 8 | <div metal:fill-slot="main" |
---|
| 9 | tal:define="errors options/state/getErrors; |
---|
| 10 | editor python:member.getProperty('wysiwyg_editor','None'); |
---|
| 11 | wysiwyg python:test(editor and editor!='None', editor, 'None'); |
---|
| 12 | lockable python:hasattr(here, 'wl_isLocked'); |
---|
| 13 | isLocked python:lockable and here.wl_isLocked(); |
---|
| 14 | pingProperties python: here.portal_pingtool.getPingProperties(here)"> |
---|
| 15 | |
---|
| 16 | <h1 i18n:translate="heading_edit_item"> |
---|
| 17 | Edit |
---|
| 18 | <span i18n:name="itemtype"> |
---|
| 19 | <span i18n:translate="" |
---|
| 20 | tal:content="python:here.getTypeInfo().Title()" |
---|
| 21 | tal:omit-tag="">Item type</span> |
---|
| 22 | </span> |
---|
| 23 | </h1> |
---|
| 24 | |
---|
| 25 | <p i18n:translate="description_edit_document"> |
---|
| 26 | Fill in the details of this document. |
---|
| 27 | </p> |
---|
| 28 | |
---|
| 29 | <form name="edit_form" |
---|
| 30 | action="." |
---|
| 31 | method="post" |
---|
| 32 | enctype="multipart/form-data" |
---|
| 33 | tal:attributes="action string:${here/getId}/${template/getId}" > |
---|
| 34 | |
---|
| 35 | <fieldset> |
---|
| 36 | |
---|
| 37 | <legend i18n:translate="legend_ping_setup">Ping Setup Details</legend> |
---|
| 38 | |
---|
| 39 | <div class="field"> |
---|
| 40 | <input type="checkbox" |
---|
| 41 | id="enable_ping" |
---|
| 42 | name="enable_ping" |
---|
| 43 | tabindex="" |
---|
| 44 | tal:attributes="tabindex tabindex/next; |
---|
| 45 | checked python:pingProperties['enable_ping'] and 'checked' or None" |
---|
| 46 | /> |
---|
| 47 | <label for="enable_ping" i18n:translate="label_enable_ping">Enable Ping</label> |
---|
| 48 | </div> |
---|
| 49 | <div class="field" |
---|
| 50 | tal:define="ping_sites python:pingProperties['ping_sites']"> |
---|
| 51 | |
---|
| 52 | <tal:block repeat="id here/portal_pingtool/objectIds"> |
---|
| 53 | <input type="checkbox" |
---|
| 54 | id="id" |
---|
| 55 | name="ping_sites:list" |
---|
| 56 | tabindex="" |
---|
| 57 | tal:attributes="tabindex tabindex/next; |
---|
| 58 | checked python:id in ping_sites and 'checked' or None; |
---|
| 59 | value id; |
---|
| 60 | id id; " |
---|
| 61 | /> |
---|
| 62 | <label for="id" tal:content="python:here.portal_pingtool[id].Title()" >Site name</label><br/> |
---|
| 63 | </tal:block> |
---|
| 64 | </div> |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | <div class="formControls" |
---|
| 68 | tal:define="process_creation request/process_creation|nothing;"> |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | <input class="context" |
---|
| 72 | tabindex="" |
---|
| 73 | type="submit" |
---|
| 74 | name="form.button.Save" |
---|
| 75 | value="Save" |
---|
| 76 | i18n:attributes="value" |
---|
| 77 | tal:attributes="tabindex tabindex/next;" /> |
---|
| 78 | |
---|
| 79 | <!--input class="standalone" |
---|
| 80 | tabindex="" |
---|
| 81 | type="submit" |
---|
| 82 | name="form.button.Cancel" |
---|
| 83 | value="Cancel" |
---|
| 84 | i18n:attributes="value" |
---|
| 85 | tal:attributes="tabindex tabindex/next;" /--> |
---|
| 86 | </div> |
---|
| 87 | </fieldset> |
---|
| 88 | <fieldset> |
---|
| 89 | |
---|
| 90 | <legend i18n:translate="legend_ping">Ping Now</legend> |
---|
| 91 | |
---|
| 92 | <div class="formControls" |
---|
| 93 | tal:define="process_creation request/process_creation|nothing;"> |
---|
| 94 | <input class="context" |
---|
| 95 | tabindex="" |
---|
| 96 | type="submit" |
---|
| 97 | name="form.button.Ping" |
---|
| 98 | value="Ping" |
---|
| 99 | i18n:attributes="value" |
---|
| 100 | tal:attributes="tabindex tabindex/next;" /> |
---|
| 101 | </div> |
---|
| 102 | |
---|
| 103 | </fieldset> |
---|
| 104 | |
---|
| 105 | <input type="hidden" name="form.submitted" value="1" /> |
---|
| 106 | |
---|
| 107 | </form> |
---|
| 108 | |
---|
| 109 | <div metal:use-macro="here/document_byline/macros/byline"> |
---|
| 110 | Get the byline - contains details about author and modification date. |
---|
| 111 | </div> |
---|
| 112 | |
---|
| 113 | </div> |
---|
| 114 | |
---|
| 115 | </body> |
---|
| 116 | </html> |
---|