877 lines
30 KiB
HTML
877 lines
30 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="ru">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
<title>Управление внешними идентификаторами</title>
|
||
<style>
|
||
* {
|
||
margin: 0;
|
||
padding: 0;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
body {
|
||
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
||
background-color: #f5f5f5;
|
||
color: #333;
|
||
line-height: 1.6;
|
||
}
|
||
|
||
.container {
|
||
max-width: 1400px;
|
||
margin: 0 auto;
|
||
padding: 20px;
|
||
}
|
||
|
||
header {
|
||
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
||
color: white;
|
||
padding: 30px 0;
|
||
margin-bottom: 30px;
|
||
border-radius: 10px;
|
||
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.header-content {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 0 20px;
|
||
}
|
||
|
||
h1 {
|
||
font-size: 2.5rem;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.subtitle {
|
||
font-size: 1.1rem;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.user-info {
|
||
background: rgba(255, 255, 255, 0.1);
|
||
padding: 15px 20px;
|
||
border-radius: 8px;
|
||
text-align: right;
|
||
}
|
||
|
||
.user-name {
|
||
font-weight: bold;
|
||
font-size: 1.2rem;
|
||
}
|
||
|
||
.user-role {
|
||
font-size: 0.9rem;
|
||
opacity: 0.8;
|
||
}
|
||
|
||
.logout-btn {
|
||
background: #ff4757;
|
||
color: white;
|
||
border: none;
|
||
padding: 8px 16px;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
margin-top: 10px;
|
||
transition: background 0.3s;
|
||
}
|
||
|
||
.logout-btn:hover {
|
||
background: #ff3742;
|
||
}
|
||
|
||
.tabs {
|
||
display: flex;
|
||
background: white;
|
||
border-radius: 8px;
|
||
overflow: hidden;
|
||
margin-bottom: 20px;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.tab {
|
||
flex: 1;
|
||
padding: 15px 20px;
|
||
text-align: center;
|
||
cursor: pointer;
|
||
transition: all 0.3s;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.tab:hover {
|
||
background: #f8f9fa;
|
||
}
|
||
|
||
.tab.active {
|
||
background: #667eea;
|
||
color: white;
|
||
}
|
||
|
||
.tab-content {
|
||
display: none;
|
||
background: white;
|
||
padding: 30px;
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
.tab-content.active {
|
||
display: block;
|
||
animation: fadeIn 0.3s;
|
||
}
|
||
|
||
@keyframes fadeIn {
|
||
from { opacity: 0; }
|
||
to { opacity: 1; }
|
||
}
|
||
|
||
.controls {
|
||
display: flex;
|
||
gap: 10px;
|
||
margin-bottom: 20px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.search-box {
|
||
flex: 1;
|
||
min-width: 300px;
|
||
padding: 10px 15px;
|
||
border: 2px solid #e0e0e0;
|
||
border-radius: 8px;
|
||
font-size: 1rem;
|
||
transition: border-color 0.3s;
|
||
}
|
||
|
||
.search-box:focus {
|
||
outline: none;
|
||
border-color: #667eea;
|
||
}
|
||
|
||
.btn {
|
||
padding: 10px 20px;
|
||
border: none;
|
||
border-radius: 8px;
|
||
cursor: pointer;
|
||
font-weight: 500;
|
||
transition: all 0.3s;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.btn-primary {
|
||
background: #667eea;
|
||
color: white;
|
||
}
|
||
|
||
.btn-primary:hover {
|
||
background: #5a67d8;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.btn-success {
|
||
background: #48bb78;
|
||
color: white;
|
||
}
|
||
|
||
.btn-success:hover {
|
||
background: #38a169;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.btn-danger {
|
||
background: #f56565;
|
||
color: white;
|
||
}
|
||
|
||
.btn-danger:hover {
|
||
background: #e53e3e;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.btn-secondary {
|
||
background: #a0aec0;
|
||
color: white;
|
||
}
|
||
|
||
.btn-secondary:hover {
|
||
background: #718096;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.btn-small {
|
||
padding: 5px 10px;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
.filter-group {
|
||
display: flex;
|
||
gap: 10px;
|
||
align-items: center;
|
||
}
|
||
|
||
.select {
|
||
padding: 10px 15px;
|
||
border: 2px solid #e0e0e0;
|
||
border-radius: 8px;
|
||
background: white;
|
||
font-size: 1rem;
|
||
min-width: 150px;
|
||
}
|
||
|
||
.table-container {
|
||
overflow-x: auto;
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||
}
|
||
|
||
table {
|
||
width: 100%;
|
||
border-collapse: collapse;
|
||
background: white;
|
||
}
|
||
|
||
th {
|
||
background: #f8f9fa;
|
||
padding: 15px;
|
||
text-align: left;
|
||
font-weight: 600;
|
||
color: #4a5568;
|
||
border-bottom: 2px solid #e2e8f0;
|
||
}
|
||
|
||
td {
|
||
padding: 15px;
|
||
border-bottom: 1px solid #e2e8f0;
|
||
vertical-align: top;
|
||
}
|
||
|
||
tr:hover {
|
||
background: #f8fafc;
|
||
}
|
||
|
||
.badge {
|
||
display: inline-block;
|
||
padding: 4px 8px;
|
||
border-radius: 4px;
|
||
font-size: 0.85rem;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.badge-sberbank {
|
||
background: #1c8b3f;
|
||
color: white;
|
||
}
|
||
|
||
.badge-yandex {
|
||
background: #fc3f1d;
|
||
color: white;
|
||
}
|
||
|
||
.badge-ldap {
|
||
background: #4c6ef5;
|
||
color: white;
|
||
}
|
||
|
||
.badge-other {
|
||
background: #868e96;
|
||
color: white;
|
||
}
|
||
|
||
.status-active {
|
||
color: #48bb78;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.status-inactive {
|
||
color: #f56565;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.actions {
|
||
display: flex;
|
||
gap: 5px;
|
||
}
|
||
|
||
.modal {
|
||
display: none;
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
width: 100%;
|
||
height: 100%;
|
||
background: rgba(0, 0, 0, 0.5);
|
||
z-index: 1000;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.modal.active {
|
||
display: flex;
|
||
}
|
||
|
||
.modal-content {
|
||
background: white;
|
||
border-radius: 10px;
|
||
width: 90%;
|
||
max-width: 800px;
|
||
max-height: 90vh;
|
||
overflow-y: auto;
|
||
animation: modalSlideIn 0.3s;
|
||
}
|
||
|
||
@keyframes modalSlideIn {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(-50px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.modal-header {
|
||
padding: 20px;
|
||
background: #667eea;
|
||
color: white;
|
||
border-radius: 10px 10px 0 0;
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.modal-body {
|
||
padding: 20px;
|
||
}
|
||
|
||
.close-modal {
|
||
background: none;
|
||
border: none;
|
||
color: white;
|
||
font-size: 1.5rem;
|
||
cursor: pointer;
|
||
padding: 5px;
|
||
}
|
||
|
||
.form-group {
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.form-group label {
|
||
display: block;
|
||
margin-bottom: 8px;
|
||
font-weight: 500;
|
||
color: #4a5568;
|
||
}
|
||
|
||
.form-control {
|
||
width: 100%;
|
||
padding: 12px 15px;
|
||
border: 2px solid #e0e0e0;
|
||
border-radius: 8px;
|
||
font-size: 1rem;
|
||
transition: border-color 0.3s;
|
||
}
|
||
|
||
.form-control:focus {
|
||
outline: none;
|
||
border-color: #667eea;
|
||
}
|
||
|
||
.form-row {
|
||
display: flex;
|
||
gap: 20px;
|
||
margin-bottom: 20px;
|
||
}
|
||
|
||
.form-row .form-group {
|
||
flex: 1;
|
||
}
|
||
|
||
.json-editor {
|
||
font-family: 'Courier New', monospace;
|
||
min-height: 100px;
|
||
resize: vertical;
|
||
}
|
||
|
||
.pagination {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-top: 20px;
|
||
padding: 20px;
|
||
}
|
||
|
||
.page-btn {
|
||
padding: 8px 15px;
|
||
border: 1px solid #e0e0e0;
|
||
background: white;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
transition: all 0.3s;
|
||
}
|
||
|
||
.page-btn:hover:not(:disabled) {
|
||
background: #667eea;
|
||
color: white;
|
||
border-color: #667eea;
|
||
}
|
||
|
||
.page-btn:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.stats-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
|
||
gap: 20px;
|
||
margin-bottom: 30px;
|
||
}
|
||
|
||
.stat-card {
|
||
background: white;
|
||
padding: 20px;
|
||
border-radius: 8px;
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
||
text-align: center;
|
||
}
|
||
|
||
.stat-value {
|
||
font-size: 2.5rem;
|
||
font-weight: bold;
|
||
color: #667eea;
|
||
margin: 10px 0;
|
||
}
|
||
|
||
.stat-label {
|
||
color: #718096;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
.loading {
|
||
text-align: center;
|
||
padding: 40px;
|
||
color: #718096;
|
||
}
|
||
|
||
.no-data {
|
||
text-align: center;
|
||
padding: 40px;
|
||
color: #a0aec0;
|
||
}
|
||
|
||
.error {
|
||
background: #fed7d7;
|
||
color: #9b2c2c;
|
||
padding: 15px;
|
||
border-radius: 8px;
|
||
margin-bottom: 20px;
|
||
border-left: 4px solid #fc8181;
|
||
}
|
||
|
||
.success {
|
||
background: #c6f6d5;
|
||
color: #276749;
|
||
padding: 15px;
|
||
border-radius: 8px;
|
||
margin-bottom: 20px;
|
||
border-left: 4px solid #68d391;
|
||
}
|
||
|
||
.metadata-preview {
|
||
max-width: 300px;
|
||
max-height: 100px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.metadata-full {
|
||
max-height: 200px;
|
||
overflow-y: auto;
|
||
background: #f8f9fa;
|
||
padding: 10px;
|
||
border-radius: 4px;
|
||
font-family: 'Courier New', monospace;
|
||
font-size: 0.9rem;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.header-content {
|
||
flex-direction: column;
|
||
text-align: center;
|
||
gap: 20px;
|
||
}
|
||
|
||
.user-info {
|
||
text-align: center;
|
||
}
|
||
|
||
.controls {
|
||
flex-direction: column;
|
||
}
|
||
|
||
.search-box {
|
||
min-width: 100%;
|
||
}
|
||
|
||
.form-row {
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
}
|
||
|
||
.stats-grid {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
}
|
||
</style>
|
||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
||
</head>
|
||
<body>
|
||
<div class="container">
|
||
<header>
|
||
<div class="header-content">
|
||
<div>
|
||
<h1><i class="fas fa-id-card"></i> Внешние идентификаторы</h1>
|
||
<p class="subtitle">Управление идентификаторами пользователей в сторонних системах</p>
|
||
</div>
|
||
<div class="user-info">
|
||
<div class="user-name" id="userName">Загрузка...</div>
|
||
<div class="user-role" id="userRole"></div>
|
||
<button class="logout-btn" onclick="logout()">
|
||
<i class="fas fa-sign-out-alt"></i> Выйти
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</header>
|
||
|
||
<div class="tabs">
|
||
<div class="tab active" data-tab="groups">
|
||
<i class="fas fa-users"></i> Группы идентификаторов
|
||
</div>
|
||
<div class="tab" data-tab="idusers">
|
||
<i class="fas fa-id-card"></i> Идентификаторы пользователей
|
||
</div>
|
||
<div class="tab" data-tab="stats">
|
||
<i class="fas fa-chart-bar"></i> Статистика
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Вкладка Группы -->
|
||
<div id="tab-groups" class="tab-content active">
|
||
<div class="controls">
|
||
<input type="text" class="search-box" id="groupSearch" placeholder="Поиск по названию или описанию...">
|
||
<div class="filter-group">
|
||
<select class="select" id="groupServiceTypeFilter">
|
||
<option value="">Все типы сервисов</option>
|
||
<option value="sberbank">Сбербанк</option>
|
||
<option value="yandex">Яндекс</option>
|
||
<option value="ldap">LDAP</option>
|
||
<option value="other">Прочие</option>
|
||
</select>
|
||
<select class="select" id="groupStatusFilter">
|
||
<option value="">Все статусы</option>
|
||
<option value="true">Активные</option>
|
||
<option value="false">Неактивные</option>
|
||
</select>
|
||
</div>
|
||
<button class="btn btn-primary" onclick="showAddGroupModal()">
|
||
<i class="fas fa-plus"></i> Добавить группу
|
||
</button>
|
||
<button class="btn btn-secondary" onclick="loadGroups()">
|
||
<i class="fas fa-sync-alt"></i> Обновить
|
||
</button>
|
||
</div>
|
||
|
||
<div class="table-container">
|
||
<table id="groupsTable">
|
||
<thead>
|
||
<tr>
|
||
<th width="50">ID</th>
|
||
<th>Название</th>
|
||
<th>Тип сервиса</th>
|
||
<th>Описание</th>
|
||
<th>Статус</th>
|
||
<th>Создано</th>
|
||
<th>Обновлено</th>
|
||
<th width="150">Действия</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody id="groupsTableBody">
|
||
<!-- Данные будут загружены через JavaScript -->
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="pagination" id="groupsPagination">
|
||
<!-- Пагинация будет добавлена через JavaScript -->
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Вкладка Идентификаторы пользователей -->
|
||
<div id="tab-idusers" class="tab-content">
|
||
<div class="controls">
|
||
<input type="text" class="search-box" id="iduserSearch" placeholder="Поиск по ID, логину или имени...">
|
||
<div class="filter-group">
|
||
<select class="select" id="iduserServiceTypeFilter">
|
||
<option value="">Все типы сервисов</option>
|
||
<option value="sberbank">Сбербанк</option>
|
||
<option value="yandex">Яндекс</option>
|
||
<option value="ldap">LDAP</option>
|
||
<option value="other">Прочие</option>
|
||
</select>
|
||
<select class="select" id="iduserGroupFilter">
|
||
<option value="">Все группы</option>
|
||
<!-- Опции будут заполнены через JavaScript -->
|
||
</select>
|
||
<select class="select" id="iduserStatusFilter">
|
||
<option value="">Все статусы</option>
|
||
<option value="true">Активные</option>
|
||
<option value="false">Неактивные</option>
|
||
</select>
|
||
</div>
|
||
<button class="btn btn-primary" onclick="showAddIdUserModal()">
|
||
<i class="fas fa-plus"></i> Добавить идентификатор
|
||
</button>
|
||
<button class="btn btn-secondary" onclick="loadIdUsers()">
|
||
<i class="fas fa-sync-alt"></i> Обновить
|
||
</button>
|
||
</div>
|
||
|
||
<div class="table-container">
|
||
<table id="idusersTable">
|
||
<thead>
|
||
<tr>
|
||
<th width="50">ID</th>
|
||
<th>Пользователь</th>
|
||
<th>Тип сервиса</th>
|
||
<th>Внешний ID</th>
|
||
<th>Логин LDAP</th>
|
||
<th>Группа LDAP</th>
|
||
<th>Группа</th>
|
||
<th>Метаданные</th>
|
||
<th>Статус</th>
|
||
<th>Создано</th>
|
||
<th width="150">Действия</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody id="idusersTableBody">
|
||
<!-- Данные будут загружены через JavaScript -->
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
|
||
<div class="pagination" id="idusersPagination">
|
||
<!-- Пагинация будет добавлена через JavaScript -->
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Вкладка Статистика -->
|
||
<div id="tab-stats" class="tab-content">
|
||
<div class="controls">
|
||
<button class="btn btn-secondary" onclick="loadStats()">
|
||
<i class="fas fa-sync-alt"></i> Обновить статистику
|
||
</button>
|
||
</div>
|
||
|
||
<div id="statsContent">
|
||
<div class="stats-grid" id="statsGrid">
|
||
<!-- Статистика будет загружена через JavaScript -->
|
||
</div>
|
||
|
||
<div class="table-container">
|
||
<table>
|
||
<thead>
|
||
<tr>
|
||
<th>Тип сервиса</th>
|
||
<th>Всего идентификаторов</th>
|
||
<th>Активных</th>
|
||
<th>Уникальных пользователей</th>
|
||
<th>Доля</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody id="statsTableBody">
|
||
<!-- Статистика по типам сервисов -->
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Модальное окно для создания/редактирования группы -->
|
||
<div id="groupModal" class="modal">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h2 id="groupModalTitle">Добавить группу</h2>
|
||
<button class="close-modal" onclick="closeGroupModal()">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div id="groupMessage"></div>
|
||
<form id="groupForm" onsubmit="saveGroup(event)">
|
||
<input type="hidden" id="groupId">
|
||
|
||
<div class="form-row">
|
||
<div class="form-group">
|
||
<label for="groupName">Название группы *</label>
|
||
<input type="text" id="groupName" class="form-control" required>
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="groupServiceType">Тип сервиса *</label>
|
||
<select id="groupServiceType" class="form-control" required>
|
||
<option value="">Выберите тип</option>
|
||
<option value="sberbank">Сбербанк</option>
|
||
<option value="yandex">Яндекс</option>
|
||
<option value="ldap">LDAP</option>
|
||
<option value="other">Прочие</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="groupDescription">Описание</label>
|
||
<textarea id="groupDescription" class="form-control" rows="3"></textarea>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label>
|
||
<input type="checkbox" id="groupIsActive" checked>
|
||
Активная группа
|
||
</label>
|
||
</div>
|
||
|
||
<div class="form-group" style="text-align: right; margin-top: 30px;">
|
||
<button type="button" class="btn btn-secondary" onclick="closeGroupModal()">
|
||
Отмена
|
||
</button>
|
||
<button type="submit" class="btn btn-success">
|
||
<i class="fas fa-save"></i> Сохранить
|
||
</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Модальное окно для создания/редактирования идентификатора -->
|
||
<div id="iduserModal" class="modal">
|
||
<div class="modal-content">
|
||
<div class="modal-header">
|
||
<h2 id="iduserModalTitle">Добавить идентификатор</h2>
|
||
<button class="close-modal" onclick="closeIdUserModal()">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<div id="iduserMessage"></div>
|
||
<form id="iduserForm" onsubmit="saveIdUser(event)">
|
||
<input type="hidden" id="iduserId">
|
||
|
||
<div class="form-row">
|
||
<div class="form-group">
|
||
<label for="iduserUserId">Пользователь *</label>
|
||
<select id="iduserUserId" class="form-control" required>
|
||
<option value="">Выберите пользователя</option>
|
||
</select>
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="iduserServiceType">Тип сервиса *</label>
|
||
<select id="iduserServiceType" class="form-control" required onchange="updateGroupOptions()">
|
||
<option value="">Выберите тип</option>
|
||
<option value="sberbank">Сбербанк</option>
|
||
<option value="yandex">Яндекс</option>
|
||
<option value="ldap">LDAP</option>
|
||
<option value="other">Прочие</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-row">
|
||
<div class="form-group">
|
||
<label for="iduserExternalId">Внешний ID *</label>
|
||
<input type="text" id="iduserExternalId" class="form-control" required>
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="iduserLogin">Логин LDAP</label>
|
||
<input type="text" id="iduserLogin" class="form-control">
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-row">
|
||
<div class="form-group">
|
||
<label for="iduserLdapGroup">Группа LDAP</label>
|
||
<input type="text" id="iduserLdapGroup" class="form-control">
|
||
</div>
|
||
<div class="form-group">
|
||
<label for="iduserGroupId">Группа идентификаторов</label>
|
||
<select id="iduserGroupId" class="form-control">
|
||
<option value="">Без группы</option>
|
||
</select>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label for="iduserMetadata">Метаданные (JSON)</label>
|
||
<textarea id="iduserMetadata" class="form-control json-editor" rows="6" placeholder='{"department": "Отдел", "position": "Должность"}'></textarea>
|
||
<small>Дополнительные данные в формате JSON</small>
|
||
</div>
|
||
|
||
<div class="form-group">
|
||
<label>
|
||
<input type="checkbox" id="iduserIsActive" checked>
|
||
Активный идентификатор
|
||
</label>
|
||
</div>
|
||
|
||
<div class="form-group" style="text-align: right; margin-top: 30px;">
|
||
<button type="button" class="btn btn-secondary" onclick="closeIdUserModal()">
|
||
Отмена
|
||
</button>
|
||
<button type="submit" class="btn btn-success">
|
||
<i class="fas fa-save"></i> Сохранить
|
||
</button>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Модальное окно подтверждения удаления -->
|
||
<div id="confirmModal" class="modal">
|
||
<div class="modal-content" style="max-width: 500px;">
|
||
<div class="modal-header">
|
||
<h2 id="confirmModalTitle">Подтверждение</h2>
|
||
<button class="close-modal" onclick="closeConfirmModal()">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<p id="confirmMessage">Вы уверены, что хотите удалить эту запись?</p>
|
||
<div style="text-align: right; margin-top: 30px;">
|
||
<button type="button" class="btn btn-secondary" onclick="closeConfirmModal()">
|
||
Отмена
|
||
</button>
|
||
<button type="button" class="btn btn-danger" onclick="confirmDelete()">
|
||
<i class="fas fa-trash"></i> Удалить
|
||
</button>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
|
||
<!-- Модальное окно просмотра метаданных -->
|
||
<div id="metadataModal" class="modal">
|
||
<div class="modal-content" style="max-width: 700px;">
|
||
<div class="modal-header">
|
||
<h2>Метаданные</h2>
|
||
<button class="close-modal" onclick="closeMetadataModal()">×</button>
|
||
</div>
|
||
<div class="modal-body">
|
||
<pre id="metadataContent" class="metadata-full"></pre>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script src="doc.js"></script>
|
||
</body>
|
||
</html> |