annotate zpt/viewer/layer_text_gis.zpt @ 627:98fe8e168c01

fix bug with sslify in template.
author casties
date Mon, 15 Dec 2014 17:59:59 +0100
parents da7daa783df4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
525
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
4 <head>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
5 <!-- not used here
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
6 <metal:block metal:define-macro="html_head">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
7 </metal:block>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
8 -->
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
9 </head>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
10 <body>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
11 <!-- right-side options -->
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
12 <div class="col buttons">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
13 <!-- LAYER DISPLAY OPTION -->
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
14 <ul>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
15 <metal:block metal:define-macro="layer_select_li">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
16 <li tal:condition="python:docinfo.get('numPlaces',0)">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
17 <input type="checkbox" class="autosubmit" name="viewLayer" value="gis"
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
18 tal:attributes="checked python:'gis' in viewLayers" /> Places<br />
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
19 </li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
20 </metal:block>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
21 </ul>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
22 </div>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
23
526
3f375a048402 moved search and dict into separate layers.
casties
parents: 525
diff changeset
24 <metal:block metal:define-macro="options_box" tal:condition="python:'gis' in viewLayers">
525
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
25 <!--"BEGIN PLACES"-->
526
3f375a048402 moved search and dict into separate layers.
casties
parents: 525
diff changeset
26 <div class="options">
525
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
27 <tal:block
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
28 tal:define="
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
29 name docinfo/documentName;
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
30 places python:here.getPlacesOnPage(docinfo=docinfo, pn=pn);
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
31 pidlist python:','.join([p['id'] for p in places]);">
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
32 <h4>Places</h4>
543
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 526
diff changeset
33 Show all places
6cdc31e9ed8e fixed problem with dict-mode in default view.
casties
parents: 526
diff changeset
34 <ul class="list">
525
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
35 <li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
36 <a
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
37 tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?id=%s&format=gis'%(name,pidlist)"
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
38 target="_blank">on this page</a>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
39 </li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
40 <li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
41 <a
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
42 tal:attributes="href python:'http://mappit.mpiwg-berlin.mpg.de/db/RESTdb/db/mpdl/%s?format=gis'%(name)"
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
43 target="_blank">in whole document</a>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
44 </li>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
45 </ul>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
46 </tal:block>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
47 </div>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
48 <!--"END PLACES"-->
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
49 </metal:block>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
50
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
51 </body>
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
52
70c3ae5eac7c layers can have their own templates.
casties
parents:
diff changeset
53 </html>