ImportSongs: Implement Google Drive beta testing
Instances that wish to enable Google Drive support should first enable it to only a small subset of users (100 maximum) to allow the OAuth screen to be verified by Google without hitting the user limit. Minimum level in the config can be set to enable beta testing of this feature and then disabled by setting it to None. - Add user level assignment screen to the administration panel - Add privacy policy and links to it in various places - Add switch accounts link near the Google Drive picker
This commit is contained in:
21
templates/admin_users.html
Normal file
21
templates/admin_users.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends 'admin.html' %}
|
||||
{% block content %}
|
||||
<h1>Users</h1>
|
||||
{% for message in get_flashed_messages() %}
|
||||
<div class="message">{{ message }}</div>
|
||||
{% endfor %}
|
||||
<div class="song-form">
|
||||
<form method="post">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
|
||||
<div class="form-field">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" id="username" name="username" value="{{username}}" required>
|
||||
<label for="level">Level</label>
|
||||
<input type="number" id="level" name="level" min="0" max="{{max_level}}" value="{{level}}" required>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="save-song">Save</button>
|
||||
</form>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user