mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-05 17:44:31 +02:00
Einstellungsseite hinzugefügt
This commit is contained in:
@ -51,6 +51,9 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/plays">Abspielliste</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/settings">Einstellungen</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
<!--<form class="form-inline my-2 my-lg-0">
|
||||
|
18
backend/app/templates/settings.html
Normal file
18
backend/app/templates/settings.html
Normal file
@ -0,0 +1,18 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block title %}Einstellungen{% endblock %}
|
||||
{% block content %}
|
||||
<form method="post">
|
||||
<p>
|
||||
<input type="number" id="entryquota" name="entryquota" min=1 value={{app.config['ENTRY_QUOTA']}}>
|
||||
<label for="entryquota">Maximale Anzahl an Einträgen pro Nutzer</label>
|
||||
</p>
|
||||
<p>
|
||||
<input type="number" id="maxqueue" name="maxqueue" min=1 value={{app.config['MAX_QUEUE']}}>
|
||||
<label for="maxqueue">Maximale Anzahl an Einträgen Insgesamt</label>
|
||||
</p>
|
||||
<input type="submit" value="Einstellungen anwenden">
|
||||
<input type="button" onclick="$.get('/writeSettings').done(()=>{alert('Einstellungen gespeichert')}).fail(()=>{alert('Fehler beim Speichern der Einstellungen')})" value="Einstellungen speichern"/>
|
||||
</form>
|
||||
{% endblock %}
|
||||
{% block extrajs %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user