добавил возможность администраторам создавать игроков, тренеров и судей вручную
This commit is contained in:
@@ -37,6 +37,9 @@
|
||||
<form method="get" action="/admin/db/referees" class="search-form">
|
||||
<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=referee" class="btn btn-primary">➕ Создать судью</a>
|
||||
{% endif %}
|
||||
<a href="/admin/db" class="btn btn-secondary">Назад</a>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user