diff --git a/setup.sh b/setup.sh index 5194fda..301f1ac 100644 --- a/setup.sh +++ b/setup.sh @@ -863,7 +863,6 @@ 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 ) @@ -1673,11 +1672,6 @@ cat <<'HTML_END' > templates/index.html {% extends "base.html" %} {% block content %} -
- - {{ _('Add New Game') }} - -
{% if games %}
@@ -1685,7 +1679,7 @@ cat <<'HTML_END' > templates/index.html - + @@ -1718,7 +1712,7 @@ cat <<'HTML_END' > templates/index.html - +
{{ _('Cover') }} {{ _('Name') }}{{ _('Key') }}{{ _('Key') }} {{ _('Status') }} {{ _('Created') }} {{ _('Redeem by') }} {{ game.name }}{{ game.steam_key }}{{ game.steam_key }} {% if game.status == 'nicht eingelöst' %} {{ _('Not redeemed') }} @@ -1846,34 +1840,22 @@ document.querySelectorAll('.generate-redeem').forEach(btn => { - {% else %}
{{ _('No games yet') }}
{% endif %} @@ -2030,7 +2012,7 @@ cat < templates/edit_game.html

{{ _('Spiel bearbeiten') }}

- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
@@ -2093,12 +2075,7 @@ cat < templates/edit_game.html
-
- - -
+
@@ -2124,7 +2101,6 @@ cat < templates/edit_game.html
-
@@ -2163,7 +2139,7 @@ cat < templates/edit_game.html
- + {% if game.status == 'geschenkt' %}
@@ -2213,7 +2189,6 @@ cat < templates/edit_game.html }); }); - {% endblock %} diff --git a/steam-gift-manager/app.py b/steam-gift-manager/app.py index 18614b0..a866da5 100644 --- a/steam-gift-manager/app.py +++ b/steam-gift-manager/app.py @@ -682,7 +682,6 @@ 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 ) diff --git a/steam-gift-manager/templates/edit_game.html b/steam-gift-manager/templates/edit_game.html index 8e28040..e33e108 100644 --- a/steam-gift-manager/templates/edit_game.html +++ b/steam-gift-manager/templates/edit_game.html @@ -3,7 +3,7 @@

{{ _('Spiel bearbeiten') }}

- + {% with messages = get_flashed_messages(with_categories=true) %} {% if messages %}
@@ -66,12 +66,7 @@
-
- - -
+
@@ -97,7 +92,6 @@
-
@@ -136,7 +130,7 @@
- + {% if game.status == 'geschenkt' %}
@@ -186,5 +180,6 @@ }); }); - {% endblock %} + + diff --git a/steam-gift-manager/templates/index.html b/steam-gift-manager/templates/index.html index 2b0c2e9..faa450e 100644 --- a/steam-gift-manager/templates/index.html +++ b/steam-gift-manager/templates/index.html @@ -1,11 +1,6 @@ {% extends "base.html" %} {% block content %} - {% if games %}
@@ -13,7 +8,7 @@ - + @@ -46,7 +41,7 @@ - +
{{ _('Cover') }} {{ _('Name') }}{{ _('Key') }}{{ _('Key') }} {{ _('Status') }} {{ _('Created') }} {{ _('Redeem by') }} {{ game.name }}{{ game.steam_key }}{{ game.steam_key }} {% if game.status == 'nicht eingelöst' %} {{ _('Not redeemed') }} @@ -174,30 +169,19 @@ document.querySelectorAll('.generate-redeem').forEach(btn => { @@ -205,3 +189,4 @@ document.addEventListener('DOMContentLoaded', function() {
{{ _('No games yet') }}
{% endif %} {% endblock %} +