Initial commit

This commit is contained in:
Alex
2026-10-07 19:57:07 +00:00
commit 6e6035c789
131 changed files with 23101 additions and 0 deletions
+75
View File
@@ -0,0 +1,75 @@
{% extends "base.html" %}
{% block title %}{{ guardian.name }} - Guardian{% endblock %}
{% block content %}
<div class="page-header">
<h1>Guardian: {{ guardian.name }}</h1>
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ url_for('home') }}">Главная</a></li>
<li class="breadcrumb-item"><a href="{{ url_for('systems_list') }}">Системы</a></li>
<li class="breadcrumb-item"><a href="{{ url_for('system_detail', system_id=guardian.system_id) }}">{{ guardian.system.name if guardian.system else 'N/A' }}</a></li>
<li class="breadcrumb-item active">{{ guardian.name }}</li>
</ol>
</nav>
<p class="text-muted">
<strong>System:</strong> {{ guardian.system.name if guardian.system else 'N/A' }}<br>
<strong>Serial:</strong> {{ guardian.serial_number if guardian.serial_number else 'N/A' }}<br>
<strong>Location:</strong> {{ guardian.location if guardian.location else 'N/A' }}
</p>
</div>
<div class="alert alert-info">
<strong>Структура Guardian:</strong>
<pre class="mb-0" style="background: #e9ecef; padding: 10px;">Guardian {{ guardian.name }}
├── Core: 1
└── Modules: {{ modules|length }}
{% for m in modules %}
- {{ m.module.name }} × {{ m.quantity }}
{% endfor %}</pre>
</div>
<div class="section-title">Core</div>
{% if core %}
<div class="stat-card">
<div class="stat-value">{{ core.quantity }}</div>
<div class="stat-label">Количество Core (только 1 допускается)</div>
</div>
{% else %}
<div class="alert alert-warning">Core отсутствует! Guardian должен иметь ровно один Core.</div>
{% endif %}
<div class="section-title">Модули</div>
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>Модуль</th>
<th>Количество</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for m in modules %}
<tr>
<td><strong>{{ m.module.name }}</strong></td>
<td>{{ m.quantity }}</td>
<td>{{ m.module.description if m.module.description else 'N/A' }}</td>
</tr>
{% else %}
<tr>
<td colspan="3" class="text-center">Модули отсутствуют</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="mt-4">
<a href="{{ url_for('system_detail', system_id=guardian.system_id) }}" class="btn btn-secondary">
К System
</a>
</div>
{% endblock %}