Mercurial > hg > documentViewer
comparison zpt/layer_text_search.zpt @ 532:0b8bed1223ad
new layout and styles.
author | casties |
---|---|
date | Wed, 25 Jul 2012 21:28:31 +0200 |
parents | 3f375a048402 |
children | 4b43a57ad9b3 |
comparison
equal
deleted
inserted
replaced
531:ac232c293ad9 | 532:0b8bed1223ad |
---|---|
13 <!-- right-side options --> | 13 <!-- right-side options --> |
14 <div class="col buttons"> | 14 <div class="col buttons"> |
15 <!-- LAYER DISPLAY OPTION --> | 15 <!-- LAYER DISPLAY OPTION --> |
16 <ul> | 16 <ul> |
17 <metal:block metal:define-macro="layer_select_li"> | 17 <metal:block metal:define-macro="layer_select_li"> |
18 <li tal:condition="python:query"> | 18 <li tal:condition="python:query"><input type="checkbox" class="autosubmit" name="viewLayer" value="search" |
19 <input type="checkbox" class="autosubmit" name="viewLayer" value="search" | 19 tal:attributes="checked python:'search' in viewLayers" /> Search hits</li> |
20 tal:attributes="checked python:'search' in viewLayers" /> Search hits | |
21 </li> | |
22 </metal:block> | 20 </metal:block> |
23 </ul> | 21 </ul> |
24 </div> | 22 </div> |
25 | 23 |
26 <metal:block metal:define-macro="extra_column" tal:condition="python:'search' in viewLayers"> | 24 <metal:block metal:define-macro="extra_column" tal:condition="python:'search' in viewLayers"> |
45 <metal:block metal:define-macro="options_box"> | 43 <metal:block metal:define-macro="options_box"> |
46 <!--"BEGIN SEARCH"--> | 44 <!--"BEGIN SEARCH"--> |
47 <div class="options"> | 45 <div class="options"> |
48 <h4>Search</h4> | 46 <h4>Search</h4> |
49 <form tal:attributes="action viewerUrl"> | 47 <form tal:attributes="action viewerUrl"> |
50 <input type="hidden" | 48 <input type="hidden" tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewLayer':None})" |
51 tal:define="params python:here.getParams(params={'query':None,'queryType':None,'viewLayer':None})" | 49 tal:repeat="param params" tal:attributes="name param; value python:params[param]" /> |
52 tal:repeat="param params" | |
53 tal:attributes="name param; value python:params[param]" /> | |
54 <!-- make sure we have one viewLayer=search --> | 50 <!-- make sure we have one viewLayer=search --> |
55 <tal:block tal:repeat="vl viewLayers"> | 51 <tal:block tal:repeat="vl viewLayers"> |
56 <input type="hidden" name="viewLayer" tal:attributes="value vl" | 52 <input type="hidden" name="viewLayer" tal:attributes="value vl" tal:condition="python:vl != 'search'" /> |
57 tal:condition="python:vl != 'search'" /> | |
58 </tal:block> | 53 </tal:block> |
59 <input type="hidden" name="viewLayer" value="search" /> | 54 <input type="hidden" name="viewLayer" value="search" /> |
60 <!-- query text --> | 55 <!-- query text --> |
61 <input type="text" name="query" tal:attributes="value query" /> <input | 56 <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a |
62 type="submit" value="Search" /> <a | |
63 tal:attributes="href python:here.getLink('query',None)">Clear</a> | 57 tal:attributes="href python:here.getLink('query',None)">Clear</a> |
64 <ul> | 58 <ul> |
65 <li> | 59 <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" /> |
66 <input type="radio" name="queryType" value="fulltext" | 60 Exact</li> |
67 tal:attributes="checked python:queryType=='fulltext'" /> Exact | 61 <li><input type="radio" name="queryType" value="fulltextMorph" |
68 </li> | 62 tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms</li> |
69 <li> | 63 <li><input type="radio" name="queryType" value="ftIndex" tal:attributes="checked python:queryType=='ftIndex'" /> |
70 <input type="radio" name="queryType" value="fulltextMorph" | 64 Fulltext index</li> |
71 tal:attributes="checked python:queryType=='fulltextMorph'" /> All forms | 65 <li><input type="radio" name="queryType" value="ftIndexMorph" |
72 </li> | 66 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological index</li> |
73 <li> | |
74 <input type="radio" name="queryType" value="ftIndex" | |
75 tal:attributes="checked python:queryType=='ftIndex'" /> Fulltext index | |
76 </li> | |
77 <li> | |
78 <input type="radio" name="queryType" value="ftIndexMorph" | |
79 tal:attributes="checked python:queryType=='ftIndexMorph'" /> Morphological | |
80 index | |
81 </li> | |
82 </ul> | 67 </ul> |
83 </form> | 68 </form> |
84 </div> | 69 </div> |
85 <!--"END SEARCH"--> | 70 <!--"END SEARCH"--> |
86 </metal:block> | 71 </metal:block> |