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
+61
View File
@@ -0,0 +1,61 @@
{% extends "base.html" %}
{% block title %}Specs UI - Главная{% endblock %}
{% block content %}
<div class="page-header">
<h1>Система учета спецификаций</h1>
<p class="text-muted">Версия 1.0 - Прототип UI для визуальной проверки предметной модели</p>
</div>
<div class="row">
<div class="col-md-12">
<div class="alert alert-info">
<strong>Навигация:</strong> Используйте меню сверху для перехода между разделами.
Откройте <a href="{{ url_for('projects_list') }}">проекты</a> или <a href="{{ url_for('systems_list') }}">системы</a> для начала работы.
</div>
</div>
</div>
<div class="section-title">Проекты</div>
{% if projects %}
<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>ID</th>
<th>Название</th>
<th>Заказчиков</th>
<th>Систем</th>
<th>Всего получено</th>
<th>Распределено</th>
<th>Свободно</th>
<th>Действие</th>
</tr>
</thead>
<tbody>
{% for project in projects %}
<tr>
<td>{{ project.id }}</td>
<td><a href="{{ url_for('project_detail', project_id=project.id) }}">{{ project.name }}</a></td>
<td>{{ project.customers|length }}</td>
<td>{{ stats.get(project.id, {}).get('systems_count', 0) }}</td>
<td>{{ stats.get(project.id, {}).get('total_received', 0) }}</td>
<td>{{ stats.get(project.id, {}).get('total_allocated', 0) }}</td>
<td>{{ stats.get(project.id, {}).get('total_remaining', 0) }}</td>
<td>
<a href="{{ url_for('project_detail', project_id=project.id) }}" class="btn btn-sm btn-primary">
Открыть
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<div class="alert alert-warning">Нет проектов. <a href="{{ url_for('seed_demo_data') }}">Создать демо-данные</a>.</div>
{% endif %}
{% endblock %}