source: products/quintagroup.referencedatagridfield/trunk/quintagroup/referencedatagridfield/skins/referencedatagridfield/referencedatagridwidget.pt @ 2279

Last change on this file since 2279 was 2279, checked in by mylan, 14 years ago

Update templates, javascript for update link, title, uid data for added reference

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1<html xmlns="http://www.w3.org/1999/xhtml"
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      i18n:domain="plone">
6<body>
7
8    <!-- VIEW -->
9    <metal:define define-macro="view">
10       
11          <div class="box"
12               tal:define="fielddata python:field.getAccessor(context)();
13                           ruid string:${portal_url}/resolveuid/"
14               tal:condition="fielddata">
15
16            <!-- <h5 tal:content="string:${widget/label}">References</h5> -->
17            <ul><tal:loop tal:repeat="data fielddata">
18                <li class="odd"
19                    tal:define="oddrow repeat/data/odd;"
20                    tal:attributes="class python:oddrow and 'odd' or 'even';"
21                    tal:condition="data/url">
22                  <a href="#"
23                     tal:attributes="href data/url"
24                     ><span tal:content="data/url_title"/></a>
25                </li></tal:loop>
26            </ul>
27          </div>
28
29    </metal:define>
30
31
32    <!-- EDIT -->
33    <metal:define define-macro="edit">
34      <div metal:use-macro="field_macro | here/datagridwidget/macros/edit">
35      </div>
36     
37    </metal:define>
38
39    <!-- SEARCH -->
40    <div metal:define-macro="search">
41        <div metal:use-macro="here/datagridwidget/macros/search">
42        </div>
43    </div>
44
45</body>
46
47</html>
48
Note: See TracBrowser for help on using the repository browser.