source: products/qPingTool/trunk/www/overview.zpt @ 2111

Last change on this file since 2111 was 207, checked in by chervol, 18 years ago

fixed labels in configlet

File size: 2.9 KB
Line 
1<tal:header tal:replace="structure here/manage_page_header|nothing">Header</tal:header>
2<tal:message tal:define="manage_tabs_message options/manage_tabs_message | request/manage_tabs_message | nothing"
3             tal:replace="structure here/manage_tabs">Tabs</tal:message>
4<tal:body
5   tal:define="portal here/portal_url/getPortalObject;
6               canonical_url_value request/canonical_url_value | python:portal.getProperty('canonical_url');
7               hasCanonicalURL request/hasCanonicalURL | python:portal.hasProperty('canonical_url');
8               button request/submit | nothing;
9               submitted request/submitted | nothing;">
10   <div tal:condition="submitted"
11        tal:omit-tag="">
12      <tal:common>
13         <div tal:condition="python:button=='Update' and hasCanonicalURL">
14            <tal:block define="result python:portal.manage_changeProperties(canonical_url=canonical_url_value)"/>
15         </div>
16         <div tal:condition="python:button=='Add' and not hasCanonicalURL">
17            <tal:block define="result python:portal.manage_addProperty('canonical_url', canonical_url_value, 'string')"/>
18         </div>
19      </tal:common>
20   </div>
21
22   <h3>Overview</h3>
23   <p>
24      <strong>portal_pingtool</strong> is symple tool to enable pinging of external feed agregators.
25   </p>
26   <div tal:omit-tag=""
27        tal:define="hasCanonicalURL request/hasCanonicalURL | python:portal.hasProperty('canonical_url');
28                    action python:test(hasCanonicalURL, 'Update', 'Add');">
29      <h3 tal:content="string:$action Canonical URL">Update Canonical URL</h3>
30      <p tal:condition="not:hasCanonicalURL">Until you setup canonical_url - Ping Tool will not work.</p>
31
32      <form method="post" action="" tal:attributes="action template/getId">
33         <input type="hidden" name="submitted" value="1" />
34         <p class="form-help"
35            tal:content="string:To $action the property, enter a canonical URL value and click the &quot;$action&quot; button">
36            To Add/Update the property, enter a canonical URL value and click the &quot;Add/Update&quot; button.
37         </p>
38
39         <table>
40            <tr>
41               <td align="left" valign="top">
42                  <div class="form-label">Canonical URL</div>
43               </td>
44               <td align="left" valign="top">
45                  <input type="text" size="30" value="" name="canonical_url_value"
46                     tal:attributes="value canonical_url_value | nothing"/>
47            </tr>
48            <tr>
49               <td align="right" valign="top">
50                  <div class="form-element">
51                     <input class="form-element" type="submit" name="submit" value="Save"
52                        tal:attributes="value string:$action;" />
53                  </div>
54               </td>
55            </tr>
56         </table>
57      </form>
58   </div>
59</tal:body>
60<tal:footer tal:replace="structure here/manage_page_footer|nothing">footer</tal:footer>
Note: See TracBrowser for help on using the repository browser.