source: products/quintagroup.analytics/trunk/quintagroup/analytics/browser/properties_stats.pt

Last change on this file was 3464, checked in by kroman0, 12 years ago

Fixed syntax for python2.4

  • Property svn:eol-style set to native
File size: 4.6 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml" xml: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"
5      lang="en"
6      metal:use-macro="context/prefs_main_template/macros/master">
7
8<metal:main metal:fill-slot="prefs_configlet_main"
9            i18n:domain="quintagroup.analytics"
10            tal:define="infos view/getPropsList">
11    <body>
12        <div id="wrapper">
13            <h1 i18n:translate="qa_main_title">Quintagroup Analytics Tool for Plone</h1>
14            <ul class="formTabs" id="navigation"  tal:define="template_id template/getId">
15                <span tal:repeat="formTabItem view/analiticsNavigation">
16                    <li class="formTab"><a tal:attributes="class python:formTabItem['href'] in template_id and 'selected' or '';href python:formTabItem['href']" tal:content="python:formTabItem['content']">content</a></li>
17                </span>
18            </ul>
19            <p i18n:translate="prop_stats_desc">The following list can display values for certain property for site objects. To generate the
20               list - specify the search depth (objects on what level(s) will be included) and type in
21               property name (a list of all available properties is provided below). For example: to display
22               all site objects titles type '-1' into 'Search depth' field and 'title' into 'Property name' field.
23                Select CSV to render this information in .csv format.
24            </p>
25            <form action="" method="get">
26                <span i18n:translate="prop_stats_form_desc">Search depth (-1 means no limit, 1 means that objects in the site root only will be searched):</span>
27                <input type="text" name="level" size="5" value="1" tal:attributes="value request/level|python:1" />
28                <br>
29                Property name
30                <input type="text" name="propname" size="10" tal:attributes="value request/propname|string:" />
31                CSV
32                <input type="checkbox" name="csv" size="40" tal:attributes="checked request/csv|python:0" />
33                <input type="submit" name="submit" value="Search" />
34            </form>
35        </div>
36        <div>
37             <span tal:repeat="prop view/proplist">
38                 <span tal:replace="prop"/>
39                 <span tal:condition="not:repeat/prop/end">,</span>
40             </span>
41             <hr>
42        </div>
43        <div tal:condition="request/csv|nothing">
44            <nobr>path,<span tal:replace="view/propname" /><br /></nobr>
45            <nobr tal:repeat="info infos">
46                <span tal:replace="info/path">
47                    path
48                </span>,<span
49                tal:condition="info/slots">"<span
50                tal:condition="python:not isinstance(info['slots'],basestring)"
51                tal:repeat="slot info/slots"><span
52                tal:replace="slot" />;</span><span
53                tal:condition="python:isinstance(info['slots'],basestring)"
54                tal:replace="info/slots">string</span>"</span><span
55                tal:condition="python:info['slots'] is None" i18n:translate="span_none">None</span><br />
56            </nobr>
57        </div>
58        <table class="listing"
59               tal:condition="not:request/csv|nothing">
60            <tr>
61                <th></th>
62                <th tal:content="view/propname">Property</th>
63            </tr>
64            <tr tal:repeat="info view/getPropsList">
65                <th><a href="#" tal:content="info/path" tal:attributes="href info/href">path</a></th>
66                <td>
67                    <ul tal:condition="info/slots">
68                        <li tal:condition="python:not isinstance(info['slots'],basestring)" tal:repeat="slot info/slots" tal:content="slot">slot</li>
69                        <li tal:condition="python:isinstance(info['slots'],basestring)" tal:content="info/slots">string</li>
70                    </ul>
71                    <span class="none" tal:condition="python:info['slots'] is None" i18n:translate="span_doesnt_exist">doesn't exist</span>
72                </td>
73            </tr>
74            <tr>
75                <th i18n:translate="table_header_total">Total</th>
76                <td tal:content="view/getTotal">123</td>
77            </tr>
78            <tr>
79                <th i18n:translate="table_header_expressions">Expressions</th>
80                <td>
81                    <ul>
82                        <li tal:repeat="expr view/getAllPortletExpressions" tal:content="expr">expressions</li>
83                    </ul>
84                </td>
85            </tr>
86        </table>
87    </body>
88  </metal:main>
89</html>
Note: See TracBrowser for help on using the repository browser.