products/CPSonFive.old

changeset 37:a5d1abd38b3d

Now uses all available trees.
author lregebro
date Wed, 03 May 2006 11:18:43 +0000
parents e76aea76e6b0
children d0b991b4f48b
files form/documentnavigation_popup.pt
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/form/documentnavigation_popup.pt
     1.2 +++ b/form/documentnavigation_popup.pt
     1.3 @@ -1,7 +1,8 @@
     1.4  <tal:block define="emptybody python:1">
     1.5  <metal:block use-macro="here/main_template/macros/master">
     1.6  <metal:block fill-slot="body"
     1.7 -  tal:define="root_uid string:sections;
     1.8 +  tal:define="roots ttool/objectIds;
     1.9 +	      root_uid request/form/root_uid|string:sections;
    1.10                doc here/document|nothing;
    1.11                res python:here.getCalendarNavigation(finder='cps',
    1.12                  root_uid=root_uid, current_uid=doc, REQUEST=request);
    1.13 @@ -10,6 +11,14 @@
    1.14  	      isCPS32 python:navlibskin is not None;
    1.15  	      ">
    1.16  
    1.17 +<span style="border:1px;border-style:solid;padding:3px" tal:repeat="root roots">
    1.18 +<a tal:condition="python:root_uid != root"
    1.19 +   tal:attributes="href string:${request/URL}?root_uid=${root}&input_id=${request/form/input_id}" 
    1.20 +   tal:content="root" i18n:translate="" />
    1.21 +<span tal:condition="python:root_uid == root"
    1.22 +   tal:content="root" i18n:translate="" />      
    1.23 +</span>
    1.24 +<h1 tal:content="root_uid" i18n:translate="" />
    1.25  <tal:block condition="isCPS32">
    1.26    <metal:block
    1.27      use-macro="here/navigation_lib/macros/select_navigation">