view zpt/viewer/layer_text_gis.zpt @ 594:da7daa783df4

rearranged viewer templates into folder.
author casties
date Fri, 16 Nov 2012 17:16:50 +0100
parents zpt/layer_text_gis.zpt@6cdc31e9ed8e
children
line wrap: on
line source

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!-- not used here
<metal:block metal:define-macro="html_head">
</metal:block>
-->
</head>
<body>
  <!-- right-side options -->
  <div class="col buttons">
    <!-- LAYER DISPLAY OPTION  -->
    <ul>
      <metal:block metal:define-macro="layer_select_li">
        <li tal:condition="python:docinfo.get('numPlaces',0)">
          <input type="checkbox" class="autosubmit" name="viewLayer" value="gis"
            tal:attributes="checked python:'gis' in viewLayers" /> Places<br />
        </li>
      </metal:block>
    </ul>
  </div>

  <metal:block metal:define-macro="options_box" tal:condition="python:'gis' in viewLayers">
    <!--"BEGIN PLACES"-->
    <div class="options">
      <tal:block
        tal:define="
            name docinfo/documentName;
            places python:here.getPlacesOnPage(docinfo=docinfo, pn=pn);
            pidlist python:','.join([p['id'] for p in places]);">
        <h4>Places</h4>
        Show all places
        <ul class="list">
          <li>
            <a
              tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?id=%s&format=gis'%(name,pidlist)"
              target="_blank">on this page</a>
          </li>
          <li>
            <a
              tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?format=gis'%(name)"
              target="_blank">in whole document</a>
          </li>
        </ul>
      </tal:block>
    </div>
    <!--"END PLACES"-->
  </metal:block>

</body>

</html>