Last change
on this file since 2263 was
2263,
checked in by mylan, 14 years ago
|
Added setter/getter for the field with url validation
|
-
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/link"> |
---|
22 | <a href="#" |
---|
23 | tal:attributes="href data/link" |
---|
24 | ><span tal:content="data/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 | </metal:define> |
---|
37 | |
---|
38 | <!-- SEARCH --> |
---|
39 | <div metal:define-macro="search"> |
---|
40 | <div metal:use-macro="here/datagridwidget/macros/search"> |
---|
41 | </div> |
---|
42 | </div> |
---|
43 | |
---|
44 | </body> |
---|
45 | |
---|
46 | </html> |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.