feat: add YAML settings management and admin settings page, add default_playlist_users
This commit is contained in:
20
templates/admin/settings.html
Normal file
20
templates/admin/settings.html
Normal file
@@ -0,0 +1,20 @@
|
||||
{% extends "admin.html" %}
|
||||
|
||||
{% block admin_content %}
|
||||
<h2>Settings</h2>
|
||||
<form action="/admin/settings/save" method="post">
|
||||
<div class="mb-3">
|
||||
<h3>Default Playlist Users</h3>
|
||||
<div id="defaultPlaylistUsers">
|
||||
{% for user in jellyfin_users %}
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="default_playlist_users" value="{{ user.Id }}" id="user-{{ user.Id }}"
|
||||
{% if user.Id in config['runtime_settings']['default_playlist_users'] %}checked{% endif %}>
|
||||
<label class="form-check-label" for="user-{{ user.Id }}">{{ user.Name }}</label>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary">Save Settings</button>
|
||||
</form>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user