добавил возможность администраторам создавать игроков, тренеров и судей вручную
This commit is contained in:
@@ -190,6 +190,9 @@
|
||||
<input type="hidden" name="direction" value="{{ direction }}">
|
||||
<input type="text" name="q" value="{{ q }}" placeholder="Поиск по ФИО, external_id или команде">
|
||||
<button type="submit" class="btn btn-primary">Найти</button>
|
||||
{% if request.state.current_user and request.state.current_user.role == "admin" %}
|
||||
<a href="/admin/db/create?entity=player" class="btn btn-primary">➕ Создать игрока</a>
|
||||
{% endif %}
|
||||
<a href="/admin/db" class="btn btn-secondary">Назад</a>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user