Changeset 511:551ca1641a5e in documentViewer for zpt/common_template.zpt


Ignore:
Timestamp:
Feb 28, 2012, 5:21:59 PM (12 years ago)
Author:
casties
Branch:
elementtree
Message:

more cleanup.
search really works now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/common_template.zpt

    r505 r511  
    5555  <!-- toc ruler with previous/next toc page buttons -->
    5656  <metal:block metal:define-macro="toc_ruler">
    57     <form class="autosubmit" tal:attributes="action viewerUrl">
    58       <input type="hidden" tal:define="params python:here.getParams('start', None)" tal:repeat="param params"
     57    <form class="autosubmit" tal:attributes="action viewerUrl" tal:define="startParam startParam | string:start">
     58      <input type="hidden" tal:define="params python:here.getParams(startParam, None)" tal:repeat="param params"
    5959        tal:attributes="name param; value python:params[param]" /> <a tal:condition="batch/prevStart"
    60         tal:attributes="href python:here.getLink('start',batch['prevStart'])">&lt;</a> <span tal:condition="not:batch/prevStart">&lt;</span>
    61       <select class="autosubmit" name="start">
     60        tal:attributes="href python:here.getLink(startParam,batch['prevStart'])">&lt;</a> <span tal:condition="not:batch/prevStart">&lt;</span>
     61      <select class="autosubmit" tal:attributes="name startParam">
    6262        <option tal:repeat="grp batch/batches" tal:attributes="selected python:(start==grp['start']); value grp/start"
    6363          tal:content="string:${grp/start} - ${grp/end}" />
    6464      </select> <input type="submit" value="Go" /> <a tal:condition="batch/nextStart"
    65         tal:attributes="href python:here.getLink('start',batch['nextStart'])">&gt;</a> <span tal:condition="not:batch/nextStart">&gt;</span>
     65        tal:attributes="href python:here.getLink(startParam,batch['nextStart'])">&gt;</a> <span tal:condition="not:batch/nextStart">&gt;</span>
    6666    </form>
    6767  </metal:block>
Note: See TracChangeset for help on using the changeset viewer.