63 lines
1.8 KiB
HTML
63 lines
1.8 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<script src="/static/htmx.min.js"></script>
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<img src="/static/meat.svg" class="logo logo-1">
|
|
<img src="/static/meet.svg" class="logo logo-2">
|
|
<h1> {{ meet.title }} </h1>
|
|
</header>
|
|
<div class="voteform">
|
|
<p id="hello">Hallo, {{ session.user.email }}!</p>
|
|
<p id="voters">
|
|
Bisher haben abgestimmt:
|
|
{% for voter in voters %}
|
|
{{ voter.email }}{% if not loop.last %},{% endif %}
|
|
{% endfor %}
|
|
</p>
|
|
|
|
<h2 id="h-day">
|
|
An welchem Tag?
|
|
<a href="/result/{{meet.id}}/date/matrix">[details]</a>
|
|
</h2>
|
|
<div>
|
|
<form id="v-day" hx-post="/vote/date" hx-trigger="change">
|
|
{% include "date_vote_form.html" %}
|
|
</form>
|
|
</div>
|
|
<div id="r-day" hx-get="/result/{{meet.id}}/date" hx-trigger="load">
|
|
</div>
|
|
|
|
<h2 id="h-time">
|
|
Zu welcher Zeit?
|
|
<a href="/result/{{meet.id}}/time/matrix">[details]</a>
|
|
</h2>
|
|
<div>
|
|
<form id="v-time" hx-post="/vote/time" hx-trigger="change">
|
|
{% include "time_vote_form.html" %}
|
|
</form>
|
|
</div>
|
|
<div id="r-time" hx-get="/result/{{meet.id}}/time" hx-trigger="load">
|
|
</div>
|
|
|
|
<h2 id="h-place">
|
|
An welchem Ort?
|
|
<a href="/result/{{meet.id}}/place/matrix">[details]</a>
|
|
</h2>
|
|
<div>
|
|
<form id="v-place" hx-post="/vote/place" hx-trigger="change">
|
|
{% include "place_vote_form.html" %}
|
|
</form>
|
|
</div>
|
|
<div id="r-place" hx-get="/result/{{meet.id}}/place" hx-trigger="load">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|