add unattend button
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -158,3 +158,4 @@ cython_debug/
|
||||
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
||||
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
||||
#.idea/
|
||||
users.db
|
||||
|
||||
17
.vscode/launch.json
vendored
Normal file
17
.vscode/launch.json
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Python: Current File",
|
||||
"type": "python",
|
||||
"request": "launch",
|
||||
"program": "${file}",
|
||||
"console": "integratedTerminal",
|
||||
"justMyCode": true,
|
||||
"args": ["--show_events"]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% block title %} Hallo, {{user["username"]}} {% endblock %}</h1>
|
||||
<h1>{% block title %} Hallo, {{user["username"]}} ({{user["email"]}}) {% endblock %}</h1>
|
||||
{% set ns = namespace(last_date='...') %}
|
||||
|
||||
{% for event in events %}
|
||||
@@ -12,6 +12,14 @@
|
||||
<h1>{{event["weekday"] + " " + event["start"]["date"] }}</h1>
|
||||
{% endif %}
|
||||
<h2>{{ event['subject'] }}</h2>
|
||||
|
||||
<a href="{{ url_for('attend', id=event['id']) }}">
|
||||
<span class="badge badge-warning">Teilnehmen</span>
|
||||
</a>
|
||||
<a href="{{ url_for('unattend', id=event['id']) }}">
|
||||
<span class="badge badge-warning">Abmelden</span>
|
||||
</a>
|
||||
|
||||
<span class="badge badge-primary">{{ event["start"]["time"] }}</span>
|
||||
<span class="badge badge-primary">{{ event["duration"] }}</span>
|
||||
{% for attendee in event["attendees"] %}
|
||||
|
||||
Reference in New Issue
Block a user