copy key from edit_game.html
This commit is contained in:
parent
9ad102c020
commit
cb01f1ec60
2 changed files with 14 additions and 3 deletions
8
setup.sh
8
setup.sh
|
@ -2090,9 +2090,15 @@ cat <<HTML_END > templates/edit_game.html
|
|||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">{{ _('Steam Key') }} <span class="text-danger">*</span></label>
|
||||
<input type="text" name="steam_key" class="form-control" value="{{ game.steam_key }}" required>
|
||||
<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>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="game_appid" class="form-label">{{ _('Steam AppID') }}</label>
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<div class="card p-4 shadow-sm">
|
||||
<h2 class="mb-4">{{ _('Spiel bearbeiten') }}</h2>
|
||||
|
||||
<!-- Flash-Nachrichten -->
|
||||
<!-- Flash-Messages -->
|
||||
{% with messages = get_flashed_messages(with_categories=true) %}
|
||||
{% if messages %}
|
||||
<div class="flash-messages mb-4">
|
||||
|
@ -66,7 +66,12 @@
|
|||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label">{{ _('Steam Key') }} <span class="text-danger">*</span></label>
|
||||
<input type="text" name="steam_key" class="form-control" value="{{ game.steam_key }}" required>
|
||||
<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>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label for="game_appid" class="form-label">{{ _('Steam AppID') }}</label>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue