|
|
@@ -6,7 +6,7 @@
|
|
|
<html lang="de">
|
|
|
<head>
|
|
|
<meta charset="UTF-8">
|
|
|
- <meta http-equiv="refresh" content="120; URL=/current-week-shifts/" >
|
|
|
+ <meta http-equiv="refresh" content="120; URL=/public/" >
|
|
|
<title>Schichten der aktuellen Woche</title>
|
|
|
<link rel="icon" href="{% static 'favicon.png' %}">
|
|
|
{% bootstrap_css %}
|
|
|
@@ -20,7 +20,6 @@
|
|
|
.shift-none {
|
|
|
background-color: white !important;
|
|
|
text-align: center;
|
|
|
- cursor: pointer;
|
|
|
}
|
|
|
.shift-vacation {
|
|
|
background-color: blue !important;
|
|
|
@@ -81,7 +80,8 @@
|
|
|
<body>
|
|
|
<div class="buttons-container">
|
|
|
<a href="?start_date={{ previous_week }}" class="btn btn-primary">Eine Woche zurück</a>
|
|
|
- <a href="/current-week-shifts/" class="btn btn-primary">Aktuelle Woche</a>
|
|
|
+ <a href="/public/" class="btn btn-primary">Aktuelle Woche</a>
|
|
|
+ <a href="/login/" class="btn btn-secondary">Login</a>
|
|
|
<a href="?start_date={{ next_week }}" class="btn btn-primary">Eine Woche vorwärts</a>
|
|
|
</div>
|
|
|
<div class="container-fluid">
|
|
|
@@ -103,9 +103,9 @@
|
|
|
{% for day, date in days_with_dates %}
|
|
|
{% with event=events|get_item:forloop.counter0 %}
|
|
|
{% if event == None %}
|
|
|
- <td class="shift-none" onclick="window.location.href='{% url 'create_event' %}?date={{ date }}'"></td>
|
|
|
+ <td class="shift-none"></td>
|
|
|
{% else %}
|
|
|
- <td class="shift-none" onclick="window.location.href='{% url 'edit_event' pk=event.id %}'" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-html="true" title="Name: {{ event.name }}<br> Location: {{ event.location }}<br> CVD: {{ event.cvd }}<br> CVT: {{ event.cvt }}">
|
|
|
+ <td class="shift-none" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-html="true" title="Name: {{ event.name }}<br> Location: {{ event.location }}<br> CVD: {{ event.cvd }}<br> CVT: {{ event.cvt }}">
|
|
|
{% if event.name %}
|
|
|
{{ event.name }}
|
|
|
{% else %}
|
|
|
@@ -131,7 +131,7 @@
|
|
|
{% for day, date in days_with_dates %}
|
|
|
{% with shift=shifts|get_item:forloop.counter0 %}
|
|
|
{% if shift == None %}
|
|
|
- <td class="shift-none" onclick="window.location.href='{% url 'create_multiple_shifts' %}?date={{ date }}'">
|
|
|
+ <td class="shift-none">
|
|
|
F
|
|
|
</td>
|
|
|
{% else %}
|
|
|
@@ -145,7 +145,7 @@
|
|
|
{% else %}
|
|
|
shift-other
|
|
|
{% endif %}
|
|
|
- " onclick="window.location.href='{% url 'edit_shift' pk=shift.id %}'">
|
|
|
+ ">
|
|
|
{% if shift.start and shift.end %}
|
|
|
{{ shift.start|time:"H:i" }} - {{ shift.end|time:"H:i" }}
|
|
|
{% else %}
|