diff --git a/setup.sh b/setup.sh index 301f1ac..5194fda 100644 --- a/setup.sh +++ b/setup.sh @@ -863,6 +863,7 @@ def add_game(): notes=request.form.get('notes', ''), url=url, steam_appid=steam_appid, + platform=request.form.get('platform', 'pc'), redeem_date=datetime.strptime(request.form['redeem_date'], '%Y-%m-%d') if request.form['redeem_date'] else None, user_id=current_user.id ) @@ -1672,6 +1673,11 @@ cat <<'HTML_END' > templates/index.html {% extends "base.html" %} {% block content %} +
{% if games %}| {{ _('Cover') }} | {{ _('Name') }} | -{{ _('Key') }} | +{{ _('Key') }} | {{ _('Status') }} | {{ _('Created') }} | {{ _('Redeem by') }} | @@ -1712,7 +1718,7 @@ cat <<'HTML_END' > templates/index.html{{ game.name }} | -{{ game.steam_key }} | +{{ game.steam_key }} |
{% if game.status == 'nicht eingelöst' %}
{{ _('Not redeemed') }}
@@ -1840,22 +1846,34 @@ document.querySelectorAll('.generate-redeem').forEach(btn => {
+
{% else %}
{{ _('No games yet') }}
{% endif %}
@@ -2012,7 +2030,7 @@ cat <{{ _('Spiel bearbeiten') }}- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
-
+
+
+
+
@@ -2101,6 +2124,7 @@ cat <
+
@@ -2139,7 +2163,7 @@ cat <
@@ -2189,6 +2213,7 @@ cat < {{ _('Spiel bearbeiten') }}- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
-
+
+
+
+
@@ -92,6 +97,7 @@
+
@@ -130,7 +136,7 @@
@@ -180,6 +186,5 @@
});
});
+
{% endblock %}
-
-
diff --git a/steam-gift-manager/templates/index.html b/steam-gift-manager/templates/index.html
index faa450e..2b0c2e9 100644
--- a/steam-gift-manager/templates/index.html
+++ b/steam-gift-manager/templates/index.html
@@ -1,6 +1,11 @@
{% extends "base.html" %}
{% block content %}
+
{% if games %}
|
|---|