Add responsive design (fix #2)
This commit is contained in:
@@ -56,25 +56,17 @@
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="padding: 0.5em 1em">ID</th>
|
||||
<th style="padding: 0.5em 1em">Username</th>
|
||||
<th style="padding: 0.5em 1em">Key</th>
|
||||
<th style="padding: 0.5em 1em">Postpaid_User ID</th>
|
||||
<th style="padding: 0.5em 1em">Money (€)</th>
|
||||
<th style="padding: 0.5em 1em">Activated</th>
|
||||
<th style="padding: 0.5em 1em">last drink</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for prepaid_user_i in prepaid_users_from_curr_user %}
|
||||
<tr{% if prepaid_user_i.money <= 0 %} style="background-color: rgba(179, 6, 44, 0.5)"{% endif %}>
|
||||
<td style="padding: 0.5em 1em">{{ prepaid_user_i.id }}</td>
|
||||
<td style="padding: 0.5em 1em">{{ prepaid_user_i.username }}</td>
|
||||
<td style="padding: 0.5em 1em">{{ prepaid_user_i.user_key }}</td>
|
||||
<td style="padding: 0.5em 1em">{{ prepaid_user_i.postpaid_user_id }}</td>
|
||||
<td style="padding: 0.5em 1em">{{ prepaid_user_i.money / 100 }}</td>
|
||||
<td style="padding: 0.5em 1em">{{ prepaid_user_i.activated }}</td>
|
||||
<td style="padding: 0.5em 1em">{{ prepaid_user_i.last_drink }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
{% extends "base.html" %} {% block title %}Startseite{% endblock %} {% block
|
||||
content %}
|
||||
<h2>Willkommen, {{ user.name }}!</h2>
|
||||
<p>Dies ist eine einfache geschützte Seite.</p>
|
||||
<p><strong>Aktueller Kontostand:</strong></p>
|
||||
{% if db_user.money > -5000 %}
|
||||
<div
|
||||
@@ -82,7 +81,7 @@ content %}
|
||||
<input type="hidden" name="drink_type" value="{{ drink }}">
|
||||
<button type="submit"
|
||||
style="display: flex; flex-direction: column; align-items: center; background-color: #00618F; color: #fff; border: none; border-radius: 8px; padding: 0.7em 1.2em; cursor: pointer; min-width: 120px;">
|
||||
<img src="static/drinks/{{ drink|lower|replace(' ', '_') }}.png" alt="{{ drink }}" style="width:48px; height:48px; object-fit:contain; margin-bottom:0.5em;">
|
||||
<img src="/static/drinks/{{ drink|lower|replace(' ', '_') }}.png" alt="{{ drink }}" style="width:48px; height:48px; object-fit:contain; margin-bottom:0.5em;">
|
||||
<span>{{ drink }}</span>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user