products/CPSonFive.old

changeset 15:abd953717dc8

CPS33 support
author lregebro
date Thu, 21 Jul 2005 16:13:16 +0000
parents 7f76a3a981f8
children 19c253055dc9
files form/documentnavigation_popup.pt
diffstat 1 files changed, 37 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/form/documentnavigation_popup.pt
     1.2 +++ b/form/documentnavigation_popup.pt
     1.3 @@ -5,9 +5,14 @@
     1.4                doc here/document|nothing;
     1.5                res python:here.getCalendarNavigation(finder='cps',
     1.6                  root_uid=root_uid, current_uid=doc, REQUEST=request);
     1.7 -              type string:folder;">
     1.8 +              type string:folder;
     1.9 +	      navlibskin nocall:here/navigation_lib|nothing;
    1.10 +	      isCPS32 python:navlibskin is not None;
    1.11 +	      ">
    1.12  
    1.13 -  <metal:block use-macro="here/navigation_lib/macros/select_navigation">
    1.14 +<tal:block condition="isCPS32">
    1.15 +  <metal:block
    1.16 +    use-macro="here/navigation_lib/macros/select_navigation">
    1.17      <metal:block fill-slot="action">
    1.18  
    1.19   <script type="text/javascript"
    1.20 @@ -31,6 +36,36 @@
    1.21      onclick="updateParent();" i18n:attributes="value">
    1.22      </metal:block>
    1.23    </metal:block>
    1.24 +</tal:block>
    1.25 +
    1.26 +<tal:block condition="not:isCPS32">
    1.27 +  <metal:block
    1.28 +    use-macro="here/navigation_lib_select_navigation/macros/select_navigation">
    1.29 +    <metal:block fill-slot="action">
    1.30 +
    1.31 + <script type="text/javascript"
    1.32 +  tal:content='structure string:
    1.33 +  <!--
    1.34 +function updateParent() {
    1.35 +  form = document.getElementById("navigation_form");
    1.36 +  uid = form.elements.uid;
    1.37 +  for (i=0; i<uid.length; i++) {
    1.38 +    if (uid[i].checked) {
    1.39 +      parentinput = opener.document.getElementById("${request/form/input_id}");
    1.40 +      parentinput.value = uid[i].value;
    1.41 +      self.close();
    1.42 +      break;
    1.43 +    }
    1.44 +  }
    1.45 +}
    1.46 +  -->' />
    1.47 +
    1.48 +   <input type="submit" class="standalone" value="button_update"
    1.49 +    onclick="updateParent();" i18n:attributes="value">
    1.50 +    </metal:block>
    1.51 +  </metal:block>
    1.52 +</tal:block>
    1.53 +
    1.54  </metal:block>
    1.55  </metal:block>
    1.56  </tal:block>