Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.17 KB | None | 0 0
  1.           <tal:multi tal:condition="multiVal"
  2.                     tal:define="targets python:[(here.reference_catalog.lookupObject(u),u) for u in uids if u]">
  3.             <div style="float: left">
  4. <!-- This should be enabled if we can remove it when an item is inserted.
  5.              <p class="discreet"
  6.                 tal:condition="not: targets">No items currently selected</p>
  7. -->
  8.               <ul class="visualNoMarker"
  9.                  tal:attributes="id string:${fieldName};">
  10.                 <li tal:repeat="set targets">
  11.                   <label tal:define="title    python: set[0].title_or_id();
  12.                                     obj_path python: '/'.join(set[0].getPhysicalPath());">
  13.                     <input type="checkbox"
  14.                           tal:attributes="name string:${fieldName}:list;
  15.                                           value python:set[1];"
  16.                           checked="checked" />
  17.                     <tal:block replace="python: show_path and '%s (%s)' % (title, obj_path.replace(portal_path, '')) or title" />
  18.                   </label>
  19.                 </li>
  20.               </ul>
  21.               </div>
  22.           </tal:multi>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement