-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathviewfactory.html
More file actions
68 lines (54 loc) · 1.63 KB
/
Copy pathviewfactory.html
File metadata and controls
68 lines (54 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<html>
<head>
{% include "styles.html" %}
<title>BeneTag</title>
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script type="text/javascript">
function initialize() {
{% if latitude and longitude %}
var latlng = new google.maps.LatLng({{latitude}}, {{longitude}});
var myOptions = {
zoom: 8,
center: latlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
};
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
document.getElementById("map_canvas").style.position="fixed";
var marker = new google.maps.Marker({
position: latlng,
map: map,
});
{% endif %}
}
</script>
</head>
<body onload="initialize()">
{% include "navbar.html" %}
<p id="productname">Factory : {{ name }}</p>
<p id="info">Address: {{address}}</p>
<hr id="separator-line">
<p id="section-heading">Products</p>
<div>
{% for product in products%}
{{index}}<a href="/mobilepage?id={{product.key}}">{{product.name}}</a> <br/>
{% endfor %}
</div>
<div>
<p>Producer: <a href="/viewproducer?id={{producer.key}}">{{producer.name}}</a></p>
</div>
<div>
<p>Workers:</p>
{% for worker in workers %}
<p><a href="/viewworker?id={{worker.key}}">{{worker.name}}</a></p>
{% endfor %}
</div>
<p id="section-heading">Products</p>
{% if latitude and longitude %}
<div id="map_canvas"></div>
{% endif %}
{% if can_edit %}
<p><a href="/editfactory?id={{id}}">Edit your factory profile</a></p>
{% endif %}
{% include "footer.html" %}
</body>
</html>