1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | lang="en" |
---|
3 | metal:use-macro="context/main_template/macros/master" |
---|
4 | i18n:domain="qPingTool"> |
---|
5 | |
---|
6 | <body> |
---|
7 | |
---|
8 | <div metal:fill-slot="main" |
---|
9 | tal:define="pingProperties python: here.portal_pingtool.getPingProperties(here)"> |
---|
10 | |
---|
11 | <h1 i18n:translate="heading_edit_item"> |
---|
12 | Edit |
---|
13 | <span i18n:name="itemtype"> |
---|
14 | <span i18n:translate="" |
---|
15 | tal:content="python:here.getTypeInfo().Title()" |
---|
16 | tal:omit-tag="">Item type</span> |
---|
17 | </span> |
---|
18 | </h1> |
---|
19 | |
---|
20 | <p i18n:translate="description_edit_document"> |
---|
21 | Fill in the details of this document. |
---|
22 | </p> |
---|
23 | <div tal:define="message view/ping_message" tal:omit-tag="" tal:condition="message"> |
---|
24 | <pre tal:content="message"/> |
---|
25 | </div> |
---|
26 | <form name="edit_form" |
---|
27 | action="." |
---|
28 | method="post" |
---|
29 | enctype="multipart/form-data" |
---|
30 | tal:attributes="action string:${context/absolute_url}/@@ping_setup" > |
---|
31 | |
---|
32 | <fieldset> |
---|
33 | |
---|
34 | <legend i18n:translate="legend_ping_setup">Ping Setup Details</legend> |
---|
35 | |
---|
36 | <table class="listing"> |
---|
37 | <tr> |
---|
38 | <th> |
---|
39 | <input type="checkbox" |
---|
40 | id="enable_ping" |
---|
41 | name="enable_ping" |
---|
42 | tal:attributes="checked python:pingProperties['enable_ping'] and 'checked' or None" |
---|
43 | /> |
---|
44 | <label for="enable_ping" class="hiddenStructure">Enable Ping</label> |
---|
45 | </th> |
---|
46 | <th i18n:translate="label_enable_ping">Enable Ping</th> |
---|
47 | </tr> |
---|
48 | </table> |
---|
49 | |
---|
50 | <table class="listing" style="width:60%"> |
---|
51 | <tr> |
---|
52 | <th i18n:translate="label_ping_Weblog">Name Alternative Ping Url</th> |
---|
53 | <th i18n:translate="label_ping_Weblog">Value</th> |
---|
54 | </tr> |
---|
55 | <tr class="odd"> |
---|
56 | <td i18n:translate="label_ping_Weblog">Weblog</td> |
---|
57 | <td> |
---|
58 | <input type="text" |
---|
59 | id="ping_Weblog" |
---|
60 | name="ping_Weblog" |
---|
61 | style="width:100%" |
---|
62 | tal:attributes="value python:pingProperties['ping_Weblog']" |
---|
63 | /> |
---|
64 | <label for="ping_Weblog" class="hiddenStructure">Weblog Url</label> |
---|
65 | </td> |
---|
66 | </tr> |
---|
67 | <tr class="odd"> |
---|
68 | <td i18n:translate="label_ping_RSS1">RSS1</td> |
---|
69 | <td> |
---|
70 | <input type="text" |
---|
71 | id="ping_RSS1" |
---|
72 | name="ping_RSS1" |
---|
73 | style="width:100%" |
---|
74 | tal:attributes="value python:pingProperties['ping_RSS1']" |
---|
75 | /> |
---|
76 | <label for="ping_RSS1" class="hiddenStructure">RSS1 Url</label> |
---|
77 | </td> |
---|
78 | </tr> |
---|
79 | <tr class="odd"> |
---|
80 | <td i18n:translate="label_ping_RSS2">RSS2</td> |
---|
81 | <td> |
---|
82 | <input type="text" |
---|
83 | id="ping_RSS2" |
---|
84 | name="ping_RSS2" |
---|
85 | style="width:100%" |
---|
86 | tal:attributes="value python:pingProperties['ping_RSS2']" |
---|
87 | /> |
---|
88 | <label for="ping_RSS2" class="hiddenStructure">RSS2 Url</label> |
---|
89 | </td> |
---|
90 | </tr> |
---|
91 | </table> |
---|
92 | |
---|
93 | <table class="listing" summary="Ping Site Listing" style="width:60%" tal:define="ping_sites python:pingProperties['ping_sites']"> |
---|
94 | <tr> |
---|
95 | <th> |
---|
96 | <input class="noborder" |
---|
97 | type="checkbox" |
---|
98 | id="select_all_items" |
---|
99 | src="select_all_icon.gif" |
---|
100 | name="selectButton" |
---|
101 | title="Select all items" |
---|
102 | onClick="toggleSelect(this, 'ping_sites:list');" |
---|
103 | tal:attributes="src string:$portal_url/select_all_icon.gif" |
---|
104 | alt="Select all items" |
---|
105 | i18n:domain="plone" |
---|
106 | i18n:attributes="title label_select_all_items; |
---|
107 | alt label_select_all_items;" |
---|
108 | /> |
---|
109 | <label for="select_all_items" class="hiddenStructure">Ping Site</label> |
---|
110 | </th> |
---|
111 | <th i18n:translate="listing_ping_servies">Ping Site</th> |
---|
112 | </tr> |
---|
113 | <tal:block tal:repeat="id here/portal_pingtool/objectIds"> |
---|
114 | <tr tal:define="check python:(id in ping_sites) and True or False" |
---|
115 | tal:attributes="class python:check and 'even' or 'odd'"> |
---|
116 | <td class="listingCheckbox"> |
---|
117 | <input type="checkbox" |
---|
118 | id="id" |
---|
119 | class="noborder notify" |
---|
120 | name="ping_sites:list" |
---|
121 | tal:attributes="checked python:check and 'checked' or None; |
---|
122 | value id; |
---|
123 | id id; " |
---|
124 | /> |
---|
125 | <label for="id" |
---|
126 | tal:content="python:here.portal_pingtool[id].Title()" |
---|
127 | tal:attributes="for id" |
---|
128 | class="hiddenStructure">Site name</label> |
---|
129 | </td> |
---|
130 | <td tal:content="python:here.portal_pingtool[id].Title()" |
---|
131 | i18n:translate="" >Site name</td> |
---|
132 | |
---|
133 | </tr> |
---|
134 | </tal:block> |
---|
135 | </table> |
---|
136 | <div class="formControls" |
---|
137 | tal:define="process_creation request/process_creation|nothing;"> |
---|
138 | <input type="submit" |
---|
139 | value="Apply Changes" |
---|
140 | name="form.button.Save" |
---|
141 | class="context" |
---|
142 | i18n:attributes="value label_apply_changes;" |
---|
143 | /> |
---|
144 | <input type="submit" |
---|
145 | value="Cancel" |
---|
146 | name="form.button.Cancel" |
---|
147 | class="context" |
---|
148 | i18n:attributes="value label_cancel;" |
---|
149 | /> |
---|
150 | </div> |
---|
151 | |
---|
152 | </fieldset> |
---|
153 | <fieldset> |
---|
154 | |
---|
155 | <legend i18n:translate="legend_ping">Ping Now</legend> |
---|
156 | |
---|
157 | <div class="formControls" |
---|
158 | tal:define="process_creation request/process_creation|nothing;"> |
---|
159 | <input class="context" |
---|
160 | type="submit" |
---|
161 | name="form.button.Ping" |
---|
162 | value="Ping" |
---|
163 | i18n:attributes="value" |
---|
164 | /> |
---|
165 | </div> |
---|
166 | |
---|
167 | </fieldset> |
---|
168 | |
---|
169 | <input type="hidden" name="form.submitted" value="1" /> |
---|
170 | |
---|
171 | </form> |
---|
172 | |
---|
173 | <div metal:use-macro="here/document_byline/macros/byline"> |
---|
174 | Get the byline - contains details about author and modification date. |
---|
175 | </div> |
---|
176 | |
---|
177 | </div> |
---|
178 | |
---|
179 | </body> |
---|
180 | </html> |
---|