-
Notifications
You must be signed in to change notification settings - Fork 0
/
flask_findyourway_new_city.html
76 lines (73 loc) · 1.88 KB
/
flask_findyourway_new_city.html
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
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html>
<head>
<title>FIND YOUR WAY - Updated city</title>
<meta charset="utf-8" />
<link href='https://fonts.googleapis.com/css?family=Muli' rel='stylesheet' type='text/css'>
<style>
body {
font: 16px 'Muli', sans-serif;
background-color: white;
margin: 2%;
}
.mainDiv {
background-color: #ffe6cc;
border-radius: 10px;
padding: 2%;
width: 50%;
word-wrap: break-word;
overflow: auto;
}
header {
font-size: 1.3em;
margin-top: 5%;
margin-bottom: 2%;
}
.content {
width: 70%;
float: left;
}
.sideMenu {
margin-left: 70%;
margin-top: 1px;
width: 30%;
text-align: center;
}
.menuList li {
border-bottom: 2px solid #ffa84d;
margin-top: 5px;
}
ul li {
list-style-type: none;
margin: 10px;
}
.connectionsList li {
list-style-type: square;
}
</style>
</head>
<body>
<div class="mainDiv">
<div class="content">
<header>You have created a new city:</header>
<p>City ID: {{ cityID }}</p>
<p>Name: {{ name }}</p>
<p>Short: {{ short }}</p>
<p>Connections:</p>
<ul class="connectionsList">
{% for item in data['connections'] %}
<li>destination: {{ item['dest'] }}, distance: {{ item['dist'] }}km</li>
{% endfor %}
</ul>
</div>
<div class="sideMenu">
<ul class="menuList">
<li><p><a href="http://edi.iem.pw.edu.pl/pijaginw/findyourwayapp/">Find a path</a></p></li>
<li><p><a href="http://edi.iem.pw.edu.pl/pijaginw/findyourwayapp/cities">All cities</a></p></li>
<li><p><a href="http://edi.iem.pw.edu.pl/pijaginw/findyourwayapp/city">Add new city</a></p></li>
<li><p><a href="http://edi.iem.pw.edu.pl/pijaginw/findyourwayapp/connections">Edit/delete connection</a></p></li>
</ul>
</div>
</div>
</body>
</html>