1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" |
---|
2 | xmlns:metal="http://xml.zope.org/namespaces/metal" |
---|
3 | xmlns:tal="http://xml.zope.org/namespaces/tal" |
---|
4 | lang="en-US" |
---|
5 | metal:use-macro="here/prefs_main_template/macros/master" |
---|
6 | i18n:domain="qPloneGoogleSitemaps"> |
---|
7 | <body> |
---|
8 | <div metal:fill-slot="prefs_configlet_main" |
---|
9 | tal:define="errors python:request.get('errors', {})"> |
---|
10 | |
---|
11 | <div class="documentEditable"> |
---|
12 | <ul class="contentViews"> |
---|
13 | <li class=""> |
---|
14 | <a href="" |
---|
15 | tal:attributes="href string: prefs_gsm_overview" |
---|
16 | i18n:translate="label_properties">Overview</a> |
---|
17 | </li> |
---|
18 | |
---|
19 | <li class=""> |
---|
20 | <a href="" |
---|
21 | tal:attributes="href string:prefs_gsm_verification" |
---|
22 | i18n:translate="label_properties">Verification</a> |
---|
23 | </li> |
---|
24 | |
---|
25 | <li class=""> |
---|
26 | <a href="" |
---|
27 | tal:attributes="href string: prefs_gsm_settings"> |
---|
28 | Settings</a> |
---|
29 | </li> |
---|
30 | |
---|
31 | <li class="selected"> |
---|
32 | <a href="" |
---|
33 | tal:attributes="href string: ${template/id}" |
---|
34 | i18n:translate="label_logs">Pinging</a> |
---|
35 | </li> |
---|
36 | |
---|
37 | </ul> |
---|
38 | |
---|
39 | <div class="contentActions"> |
---|
40 | |
---|
41 | </div> |
---|
42 | <div class="documentContent"> |
---|
43 | <h1 i18n:translate="heading_plonegooglesitemaps">Plone Google Sitemaps</h1> |
---|
44 | <a href="" |
---|
45 | class="link-parent" |
---|
46 | tal:attributes="href string: $portal_url/plone_control_panel" |
---|
47 | i18n:translate="label_up_to_plone_setup"> |
---|
48 | Up to Plone Setup |
---|
49 | </a> |
---|
50 | <form> |
---|
51 | <fieldset> |
---|
52 | <legend>Google Ping</legend> |
---|
53 | <p>By pressing "Ping Google" button you inform Google that it |
---|
54 | should reread your sitemap as you did some modification on |
---|
55 | the site. Google usually rereads your sitemap with it's |
---|
56 | own schedule but you have possibility to hint it about best |
---|
57 | time to do that.</p> |
---|
58 | <div class="formControls"> |
---|
59 | <input class="context" |
---|
60 | tabindex="" |
---|
61 | type="submit" |
---|
62 | name="form.button.Ping" |
---|
63 | value="Ping Google" |
---|
64 | i18n:attributes="value" |
---|
65 | tal:attributes="tabindex tabindex/next;" /> |
---|
66 | </div> |
---|
67 | </fieldset> |
---|
68 | <div class="field" |
---|
69 | tal:define="portal_workflow portal/portal_workflow; |
---|
70 | getWorkflowTransitions python:modules['Products.qPloneGoogleSitemaps.utils'].getWorkflowTransitions"> |
---|
71 | <label for= "portal_workflow"> |
---|
72 | Workflows to ping |
---|
73 | </label> |
---|
74 | <div class="formHelp"> |
---|
75 | Transitions after which Google have been pinged |
---|
76 | </div> |
---|
77 | <fieldset class="workflow" |
---|
78 | tal:repeat="workflow portal_workflow/listWorkflows"> |
---|
79 | <legend tal:content="workflow">Workflow title (and id)</legend> |
---|
80 | <div class="field" |
---|
81 | tal:repeat="transition python:getWorkflowTransitions(context,workflow)"> |
---|
82 | <tal:transition define="enabled python:transition.after_script_name in ['', 'ping_googlesitemap']; |
---|
83 | name string:${workflow}#${transition/id}"> |
---|
84 | <input type="checkbox" |
---|
85 | name="transitions:list" |
---|
86 | tal:attributes=" id name; |
---|
87 | value name; |
---|
88 | checked python:enabled and transition.after_script_name; |
---|
89 | disabled not:enabled"/> |
---|
90 | <label tal:content="string:${transition/getId}: ${transition/title_or_id}" |
---|
91 | tal:attributes="for name; class python:test(enabled, None, 'discreet')">Transition id |
---|
92 | </label> |
---|
93 | <span class="discreet" |
---|
94 | tal:condition="not:enabled" |
---|
95 | tal:content="string:(${transition/after_script_name})" /> |
---|
96 | </tal:transition> |
---|
97 | </div> |
---|
98 | </fieldset> |
---|
99 | <div class="formControls"> |
---|
100 | <input class="context" |
---|
101 | tabindex="" |
---|
102 | type="submit" |
---|
103 | name="form.button.Save" |
---|
104 | value="Save" |
---|
105 | i18n:attributes="value" |
---|
106 | tal:attributes="tabindex tabindex/next;" /> |
---|
107 | </div> |
---|
108 | </div> |
---|
109 | <input type="hidden" name="form.submitted" value="1" /> |
---|
110 | </form> |
---|
111 | </div> |
---|
112 | </div> |
---|
113 | </div> |
---|
114 | </body> |
---|
115 | </html> |
---|