comparison 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
comparison
equal deleted inserted replaced
593:eb46138db658 594:da7daa783df4
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" tal:condition="python:'gis' in viewLayers">
25 <!--"BEGIN PLACES"-->
26 <div class="options">
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 Show all places
34 <ul class="list">
35 <li>
36 <a
37 tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?id=%s&format=gis'%(name,pidlist)"
38 target="_blank">on this page</a>
39 </li>
40 <li>
41 <a
42 tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?format=gis'%(name)"
43 target="_blank">in whole document</a>
44 </li>
45 </ul>
46 </tal:block>
47 </div>
48 <!--"END PLACES"-->
49 </metal:block>
50
51 </body>
52
53 </html>