comparison 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
comparison
equal deleted inserted replaced
524:1a20621f2555 525:70c3ae5eac7c
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <!-- not used here
6 <metal:block metal:define-macro="html_head">
7 </metal:block>
8 -->
9 </head>
10 <body>
11 <!-- right-side options -->
12 <div class="col buttons">
13 <!-- LAYER DISPLAY OPTION -->
14 <ul>
15 <metal:block metal:define-macro="layer_select_li">
16 <li tal:condition="python:docinfo.get('numPlaces',0)">
17 <input type="checkbox" class="autosubmit" name="viewLayer" value="gis"
18 tal:attributes="checked python:'gis' in viewLayers" /> Places<br />
19 </li>
20 </metal:block>
21 </ul>
22 </div>
23
24 <metal:block metal:define-macro="options_box">
25 <!--"BEGIN PLACES"-->
26 <div class="options" tal:condition="python:'gis' in viewLayers">
27 <tal:block
28 tal:define="
29 name docinfo/documentName;
30 places python:here.getPlacesOnPage(docinfo=docinfo, pn=pn);
31 pidlist python:','.join([p['id'] for p in places]);">
32 <h4>Places</h4>
33 <ul>
34 <li>
35 <a
36 tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?id=%s&format=gis'%(name,pidlist)"
37 target="_blank">on this page</a>
38 </li>
39 <li>
40 <a
41 tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?format=gis'%(name)"
42 target="_blank">in whole document</a>
43 </li>
44 </ul>
45 </tal:block>
46 </div>
47 <!--"END PLACES"-->
48 </metal:block>
49
50 </body>
51
52 </html>