50 lines
2.4 KiB
HTML
50 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Autotest</title>
|
|
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='favicon.svg') }}" />
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" />
|
|
<script src="https://unpkg.com/lucide@latest"></script>
|
|
</head>
|
|
<body>
|
|
<div class="card" style="max-width: 780px; margin: 32px auto;">
|
|
<div class="card-header" style="justify-content: space-between;">
|
|
<span>Организация</span>
|
|
<form method="post" style="display:flex;align-items:center;gap:6px;">
|
|
<input type="password" name="token" placeholder="env: {{ env_token_masked }}" value="{{ '' if not has_user_token else '••••••••' }}" style="height:28px;width:200px;font-size:12px;border:1px solid var(--brand-gray);border-radius:4px;padding:0 6px;" />
|
|
<button type="submit" name="action" value="save" class="btn" style="height:28px;font-size:12px;padding:0 8px;">OK</button>
|
|
{% if has_user_token %}
|
|
<button type="submit" name="action" value="clear" class="btn btn-danger" style="height:28px;font-size:12px;padding:0 8px;">Выйти</button>
|
|
{% endif %}
|
|
</form>
|
|
</div>
|
|
<div class="card-body">
|
|
{% if organization %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Имя</th>
|
|
<th>instanceUid</th>
|
|
<th>Сервис</th>
|
|
<th>Статус</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td>{{ organization.displayName }}</td>
|
|
<td style="font-family: monospace; font-size: 12px;">{{ organization.instanceUid }}</td>
|
|
<td>{{ organization.svc }}</td>
|
|
<td><span class="badge badge-success">{{ organization.explainedStatus or "OK" }}</span></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p style="color: var(--muted);">{% if error %}Ошибка: {{ error }}{% else %}Введите токен{% endif %}</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
<script>lucide.createIcons();</script>
|
|
</body>
|
|
</html>
|