20 lines
1.1 KiB
HTML
Executable File
20 lines
1.1 KiB
HTML
Executable File
{% load field_utils %}
|
|
|
|
<div class="text-center">
|
|
{% if user.current_checkin %}
|
|
<div id="checkin-timer" class="text-green mb-3" data-since="{{ user.current_checkin.begin_time|date:'r' }}">0h 0min 0s</div>
|
|
<div class="checkin-title mb-3"><i class="fas fa-circle text-green"></i> {{ user.first_name }} ist in der Werkstatt.</div>
|
|
<a class="btn btn-primary w-100" href="{% url 'toggle-checkin' user.id %}?next={{ request.path }}">{{ user.first_name }} auschecken</a>
|
|
{% else %}
|
|
<div class="checkin-title mb-3"><i class="fas fa-circle text-red"></i> {{ user.first_name }} ist zuhause.</div>
|
|
<form method="GET" action="{% url 'toggle-checkin' user.id %}">
|
|
<label for="plan-select" class="form-label">Tarif:</label>
|
|
<select class="form-select mt-2 mb-4" id="plan-select" name="plan">
|
|
<option value="basic" selected>BASIC</option>
|
|
<option value="plus">PLUS</option>
|
|
</select>
|
|
<input type="hidden" name="next" value="{{ request.path }}">
|
|
<button type="submit" class="btn btn-primary w-100">{{ user.first_name }} einchecken</button>
|
|
</form>
|
|
{% endif %}
|
|
</div> |