-
Notifications
You must be signed in to change notification settings - Fork 0
/
flask_findyourway_edit_connection.html
113 lines (111 loc) · 3.11 KB
/
flask_findyourway_edit_connection.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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<head>
<meta charset='utf-8'>
<title>FIND YOUR WAY - Connection editor</title>
<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;
}
.pHeader {
font-size: .9em;
font-weight: bold;
}
ul li {
list-style-type: none;
margin: 10px;
}
</style>
</head>
<body>
<div class="mainDiv">
<header>Edit/delete connection between two cities:</header>
<div class="content">
<form action="http://edi.iem.pw.edu.pl/pijaginw/findyourwayapp/connections" method="POST">
<p class="pHeader">Edit connection:</p>
<ul>
<li>
<label for='cityFrom'>Between: </label>
<select name="cityFrom">
{% for item in cities %}
<option value="{{ item['short'] }}">{{ item['name'] }}</option>
{% endfor %}
</select>
</li>
<li>
<label for='cityTo'>... and: </label>
<select name="cityTo">
{% for item in cities %}
<option value="{{ item['short'] }}">{{ item['name'] }}</option>
{% endfor %}
</select>
</li>
<li>
<label for='newValue'>New value: </label>
<input type='text' name='newValue' id='newValue' placeholder="new value"/>
</li>
<li><input type='submit' value='Edit connection'/></li>
</ul>
</form>
<form action="http://edi.iem.pw.edu.pl/pijaginw/findyourwayapp/connections_delete" method="POST">
<p class="pHeader">Delete connection:</p>
<ul>
<li>
<label for='cityFromDel'>Between: </label>
<select name="cityFromDel">
{% for item in cities %}
<option value="{{ item['short'] }}">{{ item['name'] }}</option>
{% endfor %}
</select>
</li>
<li>
<label for='cityToDel'>... and: </label>
<select name="cityToDel">
{% for item in cities %}
<option value="{{ item['short'] }}">{{ item['name'] }}</option>
{% endfor %}
</select>
</li>
<li><input type='submit' value='Delete connection'/></li>
</ul>
</form>
</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>