Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <tal:multi tal:condition="multiVal"
- tal:define="targets python:[(here.reference_catalog.lookupObject(u),u) for u in uids if u]">
- <div style="float: left">
- <!-- This should be enabled if we can remove it when an item is inserted.
- <p class="discreet"
- tal:condition="not: targets">No items currently selected</p>
- -->
- <ul class="visualNoMarker"
- tal:attributes="id string:${fieldName};">
- <li tal:repeat="set targets">
- <label tal:define="title python: set[0].title_or_id();
- obj_path python: '/'.join(set[0].getPhysicalPath());">
- <input type="checkbox"
- tal:attributes="name string:${fieldName}:list;
- value python:set[1];"
- checked="checked" />
- <tal:block replace="python: show_path and '%s (%s)' % (title, obj_path.replace(portal_path, '')) or title" />
- </label>
- </li>
- </ul>
- </div>
- </tal:multi>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement