Mercurial > hg > documentViewer
diff zpt/layer_text_gis.zpt @ 525:70c3ae5eac7c
layers can have their own templates.
first version of annotations layer.
author | casties |
---|---|
date | Thu, 05 Apr 2012 19:29:50 +0200 |
parents | |
children | 3f375a048402 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/zpt/layer_text_gis.zpt Thu Apr 05 19:29:50 2012 +0200 @@ -0,0 +1,52 @@ +<!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"> + <!--"BEGIN PLACES"--> + <div class="options" tal:condition="python:'gis' in viewLayers"> + <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> + <ul> + <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>