Changeset 540:4b43a57ad9b3 in documentViewer for zpt/layer_text_search.zpt


Ignore:
Timestamp:
Aug 16, 2012, 5:09:49 PM (12 years ago)
Author:
casties
Branch:
default
Message:

more nicer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/layer_text_search.zpt

    r532 r540  
    1717      <metal:block metal:define-macro="layer_select_li">
    1818        <li tal:condition="python:query"><input type="checkbox" class="autosubmit" name="viewLayer" value="search"
    19           tal:attributes="checked python:'search' in viewLayers" /> Search hits</li>
     19          tal:attributes="checked python:'search' in viewLayers" /> Search results</li>
    2020      </metal:block>
    2121    </ul>
     
    2525    <!-- right-side search results -->
    2626    <div class="col results" tal:condition="query">
    27       <!--"BEGIN SEARCH RESULTS"  -->
    28       <div class="options">
     27      <div class="result">
    2928        <h4>Search results</h4>
    3029        <div
     
    3332          <div class="ruler" tal:define="startParam string:resultStart">
    3433            <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler" />
     34          </div>
     35          <div class="query">
     36            Searching "<span tal:content="query" />" (<span tal:content="queryType" />)
    3537          </div>
    3638          <div class="content"
     
    4244
    4345  <metal:block metal:define-macro="options_box">
    44     <!--"BEGIN SEARCH"-->
     46    <!-- search options -->
    4547    <div class="options">
    4648      <h4>Search</h4>
     
    5557        <!-- query text -->
    5658        <input type="text" name="query" tal:attributes="value query" /> <br /> <input type="submit" value="Search" /> <a
    57           tal:attributes="href python:here.getLink('query',None)">Clear</a>
     59          tal:condition="query" tal:attributes="href python:here.getLink('query',None)">Clear</a>
    5860        <ul>
    5961          <li><input type="radio" name="queryType" value="fulltext" tal:attributes="checked python:queryType=='fulltext'" />
     
    6870      </form>
    6971    </div>
    70     <!--"END SEARCH"-->
     72    <!-- end search options-->
    7173  </metal:block>
    7274
Note: See TracChangeset for help on using the changeset viewer.