Add modules: api, operations, routes with org display

This commit is contained in:
2026-07-23 11:28:11 +04:00
parent 5c16e75b0a
commit 51f4508c1d
6 changed files with 86 additions and 9 deletions
+27 -3
View File
@@ -3,14 +3,38 @@
<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: 400px; margin: 48px auto;">
<div class="card-header">Autotest</div>
<div class="card" style="max-width: 780px; margin: 32px auto;">
<div class="card-header">Организация</div>
<div class="card-body">
<p>OK</p>
{% 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>