forked from Ruderverein-Donau-Linz/rowt
initial push
This commit is contained in:
55
templates/base.html.tera
Normal file
55
templates/base.html.tera
Normal file
@ -0,0 +1,55 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<!-- Basic Page Needs
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta charset="utf-8">
|
||||
<title>Ro(wing)T(rips)</title>
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<!-- Mobile Specific Metas
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
|
||||
<!-- FONT
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link href="//fonts.googleapis.com/css?family=Raleway:400,300,600" rel="stylesheet" type="text/css">
|
||||
|
||||
<!-- CSS
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="stylesheet" href="/public/css/normalize.css">
|
||||
<link rel="stylesheet" href="/public/css/skeleton.css">
|
||||
<style>
|
||||
.button{
|
||||
font-size: 25px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Favicon
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<link rel="icon" type="image/png" href="images/favicon.png">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Primary Page Layout
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="column">
|
||||
{% block content %}
|
||||
|
||||
{% endblock content %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- End Document
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
52
templates/index.html.tera
Normal file
52
templates/index.html.tera
Normal file
@ -0,0 +1,52 @@
|
||||
{% extends "base" %}
|
||||
{% block content %}
|
||||
|
||||
{% for day in next_days %}
|
||||
{% set day_string = day | date(format="%Y-%m-%d") %}
|
||||
{{ day | date(format="%d.%m.%Y")}}
|
||||
<br />
|
||||
|
||||
{% if days[day_string] and days[day_string].planned_amount_cox > 0%}
|
||||
{% set day = days[day_string] %}
|
||||
Geplante Steuerpersonen: {{ day.planned_amount_cox}}<br />
|
||||
Geplante Abfahrtszeit: {{ day.planned_starting_time }}<br />
|
||||
{% if day.open_registration %}
|
||||
ANMELDEN
|
||||
{% else %}
|
||||
Anmeldung an diesem Tag leider nicht möglich (zB bei USI Kursen)
|
||||
{% endif %}
|
||||
{% else %}
|
||||
(Noch) keine Ausfahrt geplant
|
||||
<details>
|
||||
<summary class="button">+</summary>
|
||||
<form method="post" action="/day">
|
||||
<input type="hidden" name="_method" value="put" />
|
||||
<input type="hidden" name="day" value="{{ day | date(format="%Y-%m-%d") }}" />
|
||||
<div class="row">
|
||||
<div class="three columns">
|
||||
<label for="planned_amount_cox">Geplante Steuerpersonen</label>
|
||||
<input class="u-full-width" type="number" id="planned_amount_cox" name="planned_amount_cox">
|
||||
</div>
|
||||
<div class="three columns">
|
||||
<label for="planned_starting_time">Geplante Abfahrtszeit</label>
|
||||
<input class="u-full-width" type="time" id="planned_starting_time" name="planned_starting_time">
|
||||
</div>
|
||||
<div class="three columns">
|
||||
<label for="open_registration">Registrierung offen</label>
|
||||
<input class="u-full-width" type="checkbox" id="open_registration" name="open_registration" checked="true"/>
|
||||
</div>
|
||||
<div class="three columns">
|
||||
<input class="button-primary" type="submit" value="Hinzufügen">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
</details>
|
||||
{% endif %}
|
||||
|
||||
<hr />
|
||||
{% endfor %}
|
||||
|
||||
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user