feat: upgrade Bootstrap to v5.3

This commit is contained in:
relikd
2023-06-18 19:04:46 +02:00
parent 28b8c08580
commit 47daa1171a
18 changed files with 72 additions and 93 deletions

View File

@@ -1,7 +1,7 @@
{% if object.note %}
<div class="alert alert-warning d-flex">
<span><i class="far fa-message"></i></span>
<span class="raw-text ml-2">{{ object.note }}</span>
<span class="raw-text ms-2">{{ object.note }}</span>
</div>
{% endif %}
{% if object.agreed_to_terms_of_service is False %}

View File

@@ -4,19 +4,17 @@
{% 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 btn-block" href="{% url 'toggle-checkin' user.id %}?next={{ request.path }}">{{ user.first_name }} auschecken</a>
<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 %}">
<div class="form-group">
<label for="plan-select">Tarif:</label>
<select class="custom-select mb-2" 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 }}">
</div>
<button type="submit" class="btn btn-primary btn-block">{{ user.first_name }} einchecken</button>
<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>