63
|
1 <tal:block tal:define="layer python:request.get('layer',None);">
|
|
2 <tal:block metal:use-macro="here/template/macros/module">
|
|
3
|
|
4
|
|
5 <tal:block metal:fill-slot="icon"> M </tal:block>
|
|
6 <tal:block metal:fill-slot="title"> Map </tal:block>
|
|
7
|
|
8
|
|
9 <tal:block metal:fill-slot="menu">
|
|
10 <ul id="account_menu">
|
|
11 <li>Save</li>
|
|
12 <li>Open</li>
|
|
13 </ul>
|
|
14 </tal:block>
|
|
15
|
|
16 <tal:block metal:fill-slot="content">
|
|
17 <!-- Subscreens: mapping setup, map -->
|
|
18 <div class="subscreen main">
|
|
19 <div class="map_box">[loading...]</div>
|
|
20
|
|
21 <div class="mapping_info">
|
|
22 <h3>Map</h3>
|
|
23 <table>
|
|
24 <tr>
|
|
25 <th>Map name</th>
|
|
26 <td><input type="text" class="map_name" tal:attributes="value string:${layer}_map1" /></td>
|
|
27 </tr>
|
|
28 </table>
|
|
29
|
|
30 <h3>Layers</h3>
|
|
31 <table width="100%" class="map_layer_table">
|
|
32 <tr class="map_layer_header">
|
|
33 <th>show</th>
|
|
34 <th>layer name</th>
|
|
35 </tr>
|
|
36 </table>
|
64
|
37 <p><input type="button" class="layer_add_button" value="Add layer" /></p>
|
|
38 <p><input type="button" class="map_update_button" value="Update map" /><br />
|
|
39 <input type="button" class="map_save_button" value="Save map" /></p>
|
|
40 </div>
|
|
41
|
|
42 </div>
|
|
43
|
63
|
44 <!-- template for info table -->
|
64
|
45 <table style="display:none">
|
63
|
46 <tbody class="layer_info_tmpl">
|
|
47 <tr class="layer_info">
|
|
48 <td><input type="checkbox" class="layer_display_${idx}" checked="${display}" /></td>
|
|
49 <td>${layer.name}</td>
|
|
50 <td><input type="button" class="layer_edit_${idx}" value="edit" /></td>
|
|
51 <td><input type="button" class="layer_delete_${idx}" value="del" /></td>
|
|
52 </tr>
|
|
53 </tbody>
|
|
54 </table>
|
64
|
55 <!-- Dialog for create table -->
|
|
56 <div class="dialog add_layer_select" title="Select Layer" style="display:none">
|
68
|
57 <form action="javascript:false;">
|
|
58 <p>Select layer to add to map:<br/>
|
65
|
59 <select size="5" name="add_layer_select" class="add_layer_select">
|
|
60 <option>[loading...]</option>
|
64
|
61 </select>
|
68
|
62 </p>
|
|
63 </form>
|
64
|
64 </div>
|
63
|
65
|
|
66 </tal:block>
|
|
67 </tal:block>
|
|
68 </tal:block> |