Mercurial > hg > documentViewer
comparison zpt/toc_thumbs.zpt @ 482:7ca8ac7db06e elementtree
more new template stuff. more batching methods in documentViewer.
author | casties |
---|---|
date | Tue, 16 Aug 2011 18:27:08 +0200 |
parents | 0a0f7f570f90 |
children | ec3d848fe9e8 |
comparison
equal
deleted
inserted
replaced
481:0a0f7f570f90 | 482:7ca8ac7db06e |
---|---|
36 tal:attributes="name param; value python:params[param]" /> | 36 tal:attributes="name param; value python:params[param]" /> |
37 <a tal:condition="left" tal:attributes="href python:here.getLink('start',left)"><</a> | 37 <a tal:condition="left" tal:attributes="href python:here.getLink('start',left)"><</a> |
38 <span tal:condition="not:left"><</span> | 38 <span tal:condition="not:left"><</span> |
39 <select class="autosubmit" name="start" | 39 <select class="autosubmit" name="start" |
40 tal:define="ofs python:test(pageinfo['pageZero'],0,1)"> | 40 tal:define="ofs python:test(pageinfo['pageZero'],0,1)"> |
41 <tal:block tal:repeat="grp python:range(numgroups)"> | 41 <tal:block > |
42 <option tal:define="idx python:max(grp*grpsize+ofs,1)" | 42 <option tal:repeat="grp pageBatch/batches" |
43 tal:attributes="selected python:start==idx; value idx;" | 43 tal:attributes="selected python:start==grp['start']; value grp/start;" |
44 tal:content="python:'%s - %s'%(idx,min((grp+1)*grpsize+ofs-1,numPages))" /> | 44 tal:content="string:${grp/start} - ${grp/end}" /> |
45 </tal:block> | 45 </tal:block> |
46 </select> | 46 </select> |
47 <input type="submit" value="Go" /> | 47 <input type="submit" value="Go" /> |
48 <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">></a> | 48 <a tal:condition="right" tal:attributes="href python:here.getLink('start',right)">></a> |
49 <span tal:condition="not:right">></span> | 49 <span tal:condition="not:right">></span> |