[DRAFT] first skin, add local font DejaVu Sans
This commit is contained in:
@ -13,10 +13,6 @@
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<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">
|
||||
@ -34,27 +30,32 @@
|
||||
</head>
|
||||
<body>
|
||||
|
||||
|
||||
{% if user %}
|
||||
<div class="bg-gray p-1 mb-3">
|
||||
<div class="container content-center-end">
|
||||
{% if user.is_admin %}
|
||||
<a class="button button-primary mb-0 font-base light" href="/user">USER</a>
|
||||
{% endif %}
|
||||
<a class="button button-primary mb-0 font-base light" href="/logout">LOGOUT</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<!-- Primary Page Layout
|
||||
–––––––––––––––––––––––––––––––––––––––––––––––––– -->
|
||||
<div class="container">
|
||||
{% if user %}
|
||||
{% if user.is_admin %}
|
||||
<a href="/user">USER</a>
|
||||
{% endif %}
|
||||
<a href="/logout">LOGOUT</a>
|
||||
{% endif %}
|
||||
|
||||
{% if flash %}
|
||||
{% if flash.0 == "success" %}
|
||||
<div class="row">
|
||||
<div class="one-column" style="padding: 15px; background-color: #2b8c68; margin-bottom: 1.6em;">
|
||||
<div class="one-column p-1 text-white bg-green mb-3 light text-center">
|
||||
{{ flash.1 }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if flash.0 == "error" %}
|
||||
<div class="row">
|
||||
<div class="one-column" style="padding: 15px; background-color: #ff6961; margin-bottom: 1.6em;">
|
||||
<div class="one-column p-1 text-white bg-red mb-3 light text-center">
|
||||
{{ flash.1 }}
|
||||
</div>
|
||||
</div>
|
||||
|
@ -1,15 +1,15 @@
|
||||
{% extends "base" %}
|
||||
{% block content %}
|
||||
|
||||
<h1 class="bold">Ausfahrten</h1>
|
||||
{% for day_with_trip in data %}
|
||||
{% set day = day_with_trip.day %}
|
||||
{% set day_string = day.day | date(format="%Y-%m-%d") %}
|
||||
{% set trips = day_with_trip.trips %}
|
||||
<h1>{{ day.day | date(format="%d.%m.%Y")}}</h1>
|
||||
<br />
|
||||
<div class="bg-gray p-3 mb-1">
|
||||
<strong class="block">{{ day.day | date(format="%d.%m.%Y")}}</strong>
|
||||
|
||||
|
||||
{% if day.planned_amount_cox > 0%}
|
||||
{% if day.planned_amount_cox > 0%}
|
||||
|
||||
{% set cox = trips | filter(attribute="user.is_cox", value=true) %}
|
||||
{% set amount_cox = cox | length %}
|
||||
@ -91,7 +91,7 @@
|
||||
</form>
|
||||
</details>
|
||||
{% endif %}
|
||||
<hr />
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
@ -1,16 +1,18 @@
|
||||
{% extends "base" %}
|
||||
{% block content %}
|
||||
|
||||
<form action="/name" method="post">
|
||||
<input type="hidden" name="_method" value="put" />
|
||||
<div class="content-center-all full-height">
|
||||
<form action="/name" method="post" class="p-3 bg-gray">
|
||||
<input type="hidden" name="_method" value="put" />
|
||||
|
||||
<label for="name">Bitte deinen Namen eingeben</label>
|
||||
<input type="text" id="name" name="name"/>
|
||||
<label for="name">Bitte deinen Namen eingeben</label>
|
||||
<input type="text" class="w-full" id="name" name="name"/>
|
||||
|
||||
<label for="pw">(Optional) Passwort eingeben</label>
|
||||
<input type="password" id="pw" name="pw"/>
|
||||
<label for="pw">(Optional) Passwort eingeben</label>
|
||||
<input type="password" class="w-full" id="pw" name="pw"/>
|
||||
|
||||
<input type="submit" value="Weiter"/>
|
||||
</form>
|
||||
<input type="submit" class="button button-primary mb-0 d-block w-full b" value="Weiter"/>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
|
Reference in New Issue
Block a user