könnte so klappen #32
14 changed files with 204 additions and 187 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -11,3 +11,4 @@ flask_session/
|
||||||
/test/flask_session/
|
/test/flask_session/
|
||||||
/Website/__pycache__/
|
/Website/__pycache__/
|
||||||
/Website/.pytest_cache/
|
/Website/.pytest_cache/
|
||||||
|
/.idea
|
|
@ -1,6 +1,5 @@
|
||||||
<!DOCTYPE html>
|
{% extends "base.html" %}
|
||||||
<html lang="en">
|
{% block customscript %}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
var socket = io();
|
var socket = io();
|
||||||
var user = {{ user }}
|
var user = {{ user }}
|
||||||
|
@ -23,4 +22,4 @@
|
||||||
window.location="http://matekasse.server.c3h/"
|
window.location="http://matekasse.server.c3h/"
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</html>
|
{% endblock %}
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
<!DOCTYPE html>
|
{% extends "base.html" %}
|
||||||
<html lang="en">
|
{% block title %}
|
||||||
<title>add user</title>
|
add user
|
||||||
<p><a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a></p>
|
{% endblock %}
|
||||||
<p>
|
{% block content %}
|
||||||
<form action="/adduser/user" method="post"><input name="username" type="search" placeholder="Username"><button>Add user</button></form>
|
<form action="/adduser/user" method="post"><input name="username" type="search" placeholder="Username">
|
||||||
|
<button>Add user</button>
|
||||||
|
</form>
|
||||||
</p>
|
</p>
|
||||||
</html>
|
{% endblock %}
|
||||||
|
|
|
@ -1,13 +1,20 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>
|
<title>{% block title %}{% endblock %}</title>
|
||||||
{% block title %} {% endblock %} - FlaskApp
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js"
|
||||||
</title>
|
integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA=="
|
||||||
|
crossorigin="anonymous"
|
||||||
|
></script>
|
||||||
|
<link rel="shortcut icon" type="Logo/png" href="ccc_logo.png"/>
|
||||||
|
{% block customscript %}{% endblock %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav>
|
<nav>
|
||||||
<p><a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a></p>
|
<p><a href="/">index page</a>
|
||||||
|
| <a href="/list">user and tag list</a>
|
||||||
|
| <a href="/documentation">Documentation</a>
|
||||||
|
</p>
|
||||||
</nav>
|
</nav>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="conntent">
|
<div class="conntent">
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<!DOCTYPE html>
|
{% extends "base.html" %}
|
||||||
<html lang="en">
|
{% block customscript %}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
var socket = io();
|
var socket = io();
|
||||||
var change = {{change}}
|
var change = {{change}}
|
||||||
|
@ -23,4 +22,4 @@
|
||||||
window.location="http://matekasse.server.c3h/"
|
window.location="http://matekasse.server.c3h/"
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</html>
|
{% endblock %}
|
|
@ -1,5 +1,5 @@
|
||||||
<html>
|
{% extends "base.html" %}
|
||||||
<script src="/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
|
{% block customscript %}
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
if (confirm("{message}") == true) {
|
if (confirm("{message}") == true) {
|
||||||
fetch("{{destination}}", {
|
fetch("{{destination}}", {
|
||||||
|
@ -9,9 +9,8 @@
|
||||||
"Content-type": "application/json; charset=UTF-8"
|
"Content-type": "application/json; charset=UTF-8"
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
window.location = "/list"
|
window.location = "/list"
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</html>
|
{% endblock %}
|
||||||
|
|
|
@ -1,16 +1,11 @@
|
||||||
<html>
|
{% extends "base.html" %}
|
||||||
|
{% block title %}
|
||||||
<head>
|
Documentation
|
||||||
<title>Documentation</title>
|
{% endblock %}
|
||||||
|
{% block customscript %}
|
||||||
<link rel="stylesheet" type="text/css" href="documentation.css">
|
<link rel="stylesheet" type="text/css" href="documentation.css">
|
||||||
<link rel="shortcut icon" type="Logo/png" href="ccc_logo.png"/>
|
{% endblock %}
|
||||||
</head>
|
{% block content %}
|
||||||
|
|
||||||
<body>
|
|
||||||
<div id="Infos">
|
|
||||||
<p> <a href="/">index page</a> | <a href="/list">user and tag list</a></p>
|
|
||||||
<p><a href="https://hannover.ccc.de/gitlab/anton/matekasse">https://hannover.ccc.de/gitlab/anton/matekasse</a></p>
|
|
||||||
</div>
|
|
||||||
<h1 class="header"> <u>Documentation</u> </h1>
|
<h1 class="header"> <u>Documentation</u> </h1>
|
||||||
|
|
||||||
<p> </p>
|
<p> </p>
|
||||||
|
@ -46,6 +41,4 @@
|
||||||
<p>638: Wrong Input</p>
|
<p>638: Wrong Input</p>
|
||||||
<P>418: I'm a teapot</P>
|
<P>418: I'm a teapot</P>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
{% endblock %}
|
||||||
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
<!DOCTYPE html>
|
{% extends "base.html" %}
|
||||||
<html lang="en">
|
{% block title %}Error{% endblock %}
|
||||||
<title>Error</title>
|
{% block customscript %}
|
||||||
<p><a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a></p>
|
<p><a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a></p>
|
||||||
<p>
|
<p>
|
||||||
Error: {{error_code}}
|
Error: {{error_code}}
|
||||||
</p>
|
</p>
|
||||||
</html>
|
{% endblock %}
|
|
@ -1,11 +1,12 @@
|
||||||
<html>
|
{% extends "base.html" %}
|
||||||
|
{% block customscript %}
|
||||||
|
<script type="text/javascript" charset="utf-8">
|
||||||
|
window.location="/list"
|
||||||
|
</script>
|
||||||
|
{% endblock %}
|
||||||
|
{% block content %}
|
||||||
<a href="/list">user and tag list</a>
|
<a href="/list">user and tag list</a>
|
||||||
<p>The creator of this website accepts no liability for any linguistic or technical errors!</p>
|
<p>The creator of this website accepts no liability for any linguistic or technical errors!</p>
|
||||||
<br style="line-height: 500%;"></br>
|
<br style="line-height: 500%;"></br>
|
||||||
<a href="/documentation">Doumentation</a>
|
<a href="/documentation">Doumentation</a>
|
||||||
<script src="/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous">
|
{% endblock %}
|
||||||
</script>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
|
||||||
window.location="/list"
|
|
||||||
</script>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -1,16 +1,22 @@
|
||||||
<!DOCTYPE html>
|
{% extends "base.html" %}
|
||||||
<html lang="en-150">
|
{% block title %}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
|
Strichliste
|
||||||
|
{% endblock %}
|
||||||
|
{% block customscript %}
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
var socket = io();
|
var socket = io();
|
||||||
socket.on("update", function () {
|
socket.on("update", function () {
|
||||||
window.location = "http://matekasse.server.c3h/list"
|
window.location = "http://matekasse.server.c3h/list"
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<title>Strichliste</title>
|
{% endblock %}
|
||||||
<p><a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a></p>
|
{% block content %}
|
||||||
<form action="/list/user" method="get"><input name="user" type="search" placeholder="Search for user"><button>Search</button></form>
|
<form action="/list/user" method="get"><input name="user" type="search" placeholder="Search for user">
|
||||||
<form action="/adduser" method="post"><button type="submit">Add User</button></form>
|
<button>Search</button>
|
||||||
|
</form>
|
||||||
|
<form action="/adduser" method="post">
|
||||||
|
<button type="submit">Add User</button>
|
||||||
|
</form>
|
||||||
<br></br>
|
<br></br>
|
||||||
{% for i in users %}
|
{% for i in users %}
|
||||||
<form action="/change" method="post" style="display: inline;">
|
<form action="/change" method="post" style="display: inline;">
|
||||||
|
@ -26,4 +32,4 @@
|
||||||
</form>
|
</form>
|
||||||
<br style="line-height: 50%;"></br>
|
<br style="line-height: 50%;"></br>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</html>
|
{% endblock %}
|
||||||
|
|
|
@ -1,8 +1,12 @@
|
||||||
<html>
|
{% extends "base.html" %}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
|
{% block title %}
|
||||||
|
{% endblock %}
|
||||||
|
{% block content %}
|
||||||
|
<p>redirekting</p>
|
||||||
|
<a href="/list">destination</a>
|
||||||
|
{% endblock %}
|
||||||
|
{% block customscript %}
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
window.location = "/list";
|
window.location = "/list";
|
||||||
</script>
|
</script>
|
||||||
<p>redirekting</p>
|
{% endblock %}
|
||||||
<a href="/list">destination</a>
|
|
||||||
</html>
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
<!DOCTYPE html>
|
{% extends "base.html" %}
|
||||||
<html lang="en">
|
{% block customscript %}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
var socket = io();
|
var socket = io();
|
||||||
var user = {{ user }}
|
var user = {{ user }}
|
||||||
|
@ -23,4 +22,4 @@
|
||||||
window.location="http://matekasse.server.c3h/"
|
window.location="http://matekasse.server.c3h/"
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</html>
|
{% endblock %}
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
<html>
|
{% extends "base.html" %}
|
||||||
<title>remove user</title>
|
{% block title %}
|
||||||
|
remove user
|
||||||
|
{% endblock %}
|
||||||
|
{% block content %}
|
||||||
<p>
|
<p>
|
||||||
<p>
|
|
||||||
<a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a>
|
|
||||||
</p>
|
|
||||||
<p>Deleted user {{user_name|safe}}</p>
|
<p>Deleted user {{user_name|safe}}</p>
|
||||||
<a href="/list">return to the tags and user list</a>
|
<a href="/list">return to the tags and user list</a>
|
||||||
</p>
|
</p>
|
||||||
|
{% endblock %}
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
<!DOCTYPE html>
|
{% extends "base.html" %}
|
||||||
<html lang="en-150">
|
{% block customscript %}
|
||||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/4.0.1/socket.io.js" integrity="sha512-q/dWJ3kcmjBLU4Qc47E4A9kTB4m3wuTY7vkFJDTZKjTs8jhyGQnaUrxa0Ytd0ssMZhbNua9hE+E7Qv1j+DyZwA==" crossorigin="anonymous"></script>
|
|
||||||
<script type="text/javascript" charset="utf-8">
|
<script type="text/javascript" charset="utf-8">
|
||||||
var socket = io();
|
var socket = io();
|
||||||
socket.on("update", function(){ window.location="/list/user?id={{user[0]}}"});
|
socket.on("update", function () {
|
||||||
|
window.location = "/list/user?id={{user[0]}}"
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
<title>{{user[1]|safe}}</title>
|
{% endblock %}
|
||||||
<p><a href="/list">user and tag list</a> | <a href="/documentation">Documentation</a></p>
|
{% block title %}
|
||||||
|
{{user[1]|safe}}
|
||||||
|
{% endblock %}
|
||||||
|
{% block content %}
|
||||||
<p> {{user[1]|safe}} : {{user[2]/100}}€ <p>
|
<p> {{user[1]|safe}} : {{user[2]/100}}€ <p>
|
||||||
<form action="/addtag" method="post">
|
<form action="/addtag" method="post">
|
||||||
<input name="id" type="hidden" value="{{user[0]}}">
|
<input name="id" type="hidden" value="{{user[0]}}">
|
||||||
|
@ -35,5 +39,7 @@
|
||||||
</p>
|
</p>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<br></br>
|
<br></br>
|
||||||
<form action="/removeuser" method="post"><input name="id" type="hidden" value="{{user[0]}}"><button type="submit">Remove User</button></form>
|
<form action="/removeuser" method="post"><input name="id" type="hidden" value="{{user[0]}}">
|
||||||
</html>
|
<button type="submit">Remove User</button>
|
||||||
|
</form>
|
||||||
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue