-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit_tags.py
executable file
·51 lines (47 loc) · 1.36 KB
/
edit_tags.py
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
from bottle import route, request, get, post
from index import header0, account_mgmt, list_tags, footer
def get_edit_tags():
"""Returns edit tags page/index content."""
return_data = ''
top = '''<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Tasti</title>
<link rel="stylesheet" type="text/css" href="main.css" />'''
top += '''<script type="text/javascript">
function toggle(aId) {
var collection = document.getElementById(aId).getElementsByTagName("input");
for (var x=0; x<collection.length; x++) {
if (collection[x].type.toLowerCase() == "checkbox") {
if (collection[x].checked) {
collection[x].checked = false;
}
else {collection[x].checked = true}
}
}
}
</script>
</head>
<body><div id="wrapper"><div id="header">'''
return_data += top
return_data += header0()
return_data += '''</div>
<div id="faux">
<div id="leftcolumn">'''
return_data += account_mgmt()
return_data += '''<div class="clear"></div>
</div>
<div id="rightcolumn">
'''
return_data += list_tags()
return_data += '''<div class="clear"></div>
</div>
</div>
<div id="footer">'''
return_data += footer()
bottom = '''</div>
</div>
</body>
</html>'''
return_data += bottom
return return_data