Compare commits
	
		
			No commits in common. "main" and "1.1.1" have entirely different histories.
		
	
	
		
	
		
					 3 changed files with 9 additions and 23 deletions
				
			
		
							
								
								
									
										16
									
								
								setup.sh
									
										
									
									
									
								
							
							
						
						
									
										16
									
								
								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
 | 
			
		||||
            )
 | 
			
		||||
| 
						 | 
				
			
			@ -2030,7 +2029,7 @@ cat <<HTML_END > templates/edit_game.html
 | 
			
		|||
<div class="card p-4 shadow-sm">
 | 
			
		||||
  <h2 class="mb-4">{{ _('Spiel bearbeiten') }}</h2>
 | 
			
		||||
 | 
			
		||||
  <!-- Flash-Messages -->
 | 
			
		||||
  <!-- Flash-Nachrichten -->
 | 
			
		||||
  {% with messages = get_flashed_messages(with_categories=true) %}
 | 
			
		||||
    {% if messages %}
 | 
			
		||||
      <div class="flash-messages mb-4">
 | 
			
		||||
| 
						 | 
				
			
			@ -2093,12 +2092,7 @@ cat <<HTML_END > templates/edit_game.html
 | 
			
		|||
      </div>
 | 
			
		||||
      <div class="col-md-6">
 | 
			
		||||
        <label class="form-label">{{ _('Steam Key') }} <span class="text-danger">*</span></label>
 | 
			
		||||
        <div class="input-group">
 | 
			
		||||
          <input type="text" name="steam_key" class="form-control" value="{{ game.steam_key }}" id="steam-key-input" required>
 | 
			
		||||
          <button type="button" class="btn btn-outline-secondary copy-btn" data-clipboard-target="#steam-key-input">
 | 
			
		||||
            {{ _('Copy') }}
 | 
			
		||||
          </button>
 | 
			
		||||
        </div>
 | 
			
		||||
        <input type="text" name="steam_key" class="form-control" value="{{ game.steam_key }}" required>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="col-md-6">
 | 
			
		||||
        <label for="game_appid" class="form-label">{{ _('Steam AppID') }}</label>
 | 
			
		||||
| 
						 | 
				
			
			@ -2123,8 +2117,7 @@ cat <<HTML_END > templates/edit_game.html
 | 
			
		|||
        <label for="game_notes" class="form-label">{{ _('Notes') }}</label>
 | 
			
		||||
        <textarea id="game_notes" name="notes" class="form-control" rows="3">{{ game.notes }}</textarea>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      
 | 
			
		||||
      <!-- Show External Data -->
 | 
			
		||||
      <div class="col-12">
 | 
			
		||||
        <div class="card mb-4">
 | 
			
		||||
| 
						 | 
				
			
			@ -2163,7 +2156,7 @@ cat <<HTML_END > templates/edit_game.html
 | 
			
		|||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
      <!-- Redeem-Links -->
 | 
			
		||||
      <!-- Einlöse-Links -->
 | 
			
		||||
      {% if game.status == 'geschenkt' %}
 | 
			
		||||
        <div class="col-12">
 | 
			
		||||
          <div class="card mb-3">
 | 
			
		||||
| 
						 | 
				
			
			@ -2213,7 +2206,6 @@ cat <<HTML_END > templates/edit_game.html
 | 
			
		|||
    });
 | 
			
		||||
  });
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
            )
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,7 +3,7 @@
 | 
			
		|||
<div class="card p-4 shadow-sm">
 | 
			
		||||
  <h2 class="mb-4">{{ _('Spiel bearbeiten') }}</h2>
 | 
			
		||||
 | 
			
		||||
  <!-- Flash-Messages -->
 | 
			
		||||
  <!-- Flash-Nachrichten -->
 | 
			
		||||
  {% with messages = get_flashed_messages(with_categories=true) %}
 | 
			
		||||
    {% if messages %}
 | 
			
		||||
      <div class="flash-messages mb-4">
 | 
			
		||||
| 
						 | 
				
			
			@ -66,12 +66,7 @@
 | 
			
		|||
      </div>
 | 
			
		||||
      <div class="col-md-6">
 | 
			
		||||
        <label class="form-label">{{ _('Steam Key') }} <span class="text-danger">*</span></label>
 | 
			
		||||
        <div class="input-group">
 | 
			
		||||
          <input type="text" name="steam_key" class="form-control" value="{{ game.steam_key }}" id="steam-key-input" required>
 | 
			
		||||
          <button type="button" class="btn btn-outline-secondary copy-btn" data-clipboard-target="#steam-key-input">
 | 
			
		||||
            {{ _('Copy') }}
 | 
			
		||||
          </button>
 | 
			
		||||
        </div>
 | 
			
		||||
        <input type="text" name="steam_key" class="form-control" value="{{ game.steam_key }}" required>
 | 
			
		||||
      </div>
 | 
			
		||||
      <div class="col-md-6">
 | 
			
		||||
        <label for="game_appid" class="form-label">{{ _('Steam AppID') }}</label>
 | 
			
		||||
| 
						 | 
				
			
			@ -97,7 +92,6 @@
 | 
			
		|||
        <textarea id="game_notes" name="notes" class="form-control" rows="3">{{ game.notes }}</textarea>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
      <!-- Show External Data -->
 | 
			
		||||
      <div class="col-12">
 | 
			
		||||
        <div class="card mb-4">
 | 
			
		||||
| 
						 | 
				
			
			@ -136,7 +130,7 @@
 | 
			
		|||
        </div>
 | 
			
		||||
      </div>
 | 
			
		||||
 | 
			
		||||
      <!-- Redeem-Links -->
 | 
			
		||||
      <!-- Einlöse-Links -->
 | 
			
		||||
      {% if game.status == 'geschenkt' %}
 | 
			
		||||
        <div class="col-12">
 | 
			
		||||
          <div class="card mb-3">
 | 
			
		||||
| 
						 | 
				
			
			@ -186,5 +180,6 @@
 | 
			
		|||
    });
 | 
			
		||||
  });
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue