feat: news/events pages, pagination, cookie banner, MONT→MONT rename, logo update, admin improvements, API endpoints, dynamic links by domain
This commit is contained in:
+12
-3
@@ -106,11 +106,20 @@
|
||||
<form method="post" class="admin-create">
|
||||
<input type="hidden" name="scope" value="{{ scope }}" />
|
||||
<input type="hidden" name="action" value="create_admin" />
|
||||
<input type="text" name="username" placeholder="Логин нового админа" required />
|
||||
<label><input type="checkbox" name="allow_infra" checked /> Инфраструктура</label>
|
||||
<label><input type="checkbox" name="allow_ib" checked /> ИБ</label>
|
||||
<input type="text" name="username" placeholder="Логин нового пользователя" required />
|
||||
<select name="new_role" id="newRoleSelect" style="padding:8px 10px;border-radius:8px;border:1px solid #ccd8f0;font-family:Manrope,sans-serif;font-size:13px;color:#1a3060;" onchange="toggleScopeFields(this.value)">
|
||||
<option value="admin">Администратор матрицы</option>
|
||||
<option value="news_editor">Редактор новостей</option>
|
||||
</select>
|
||||
<span id="scopeFields"><label><input type="checkbox" name="allow_infra" checked /> Инфраструктура</label>
|
||||
<label><input type="checkbox" name="allow_ib" checked /> ИБ</label></span>
|
||||
<button class="pri" type="submit">Создать</button>
|
||||
</form>
|
||||
<script>
|
||||
function toggleScopeFields(role) {
|
||||
document.getElementById('scopeFields').style.display = role === 'news_editor' ? 'none' : '';
|
||||
}
|
||||
</script>
|
||||
<div class="admin-users-list">
|
||||
{% for user in admin_users %}
|
||||
<form class="admin-user-item" method="post">
|
||||
|
||||
Reference in New Issue
Block a user