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