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
+33
View File
@@ -0,0 +1,33 @@
{% extends "base.html" %}
{% block title %}Resource allocated{% endblock %}
{% block content %}
<div class="page-header">
<h1>Resource успешно распределено!</h1>
</div>
<div class="alert alert-success">
<h4 class="alert-heading">Успех!</h4>
<p>Resource было успешно распределено.</p>
<hr>
<h5>Детали:</h5>
<ul>
<li>Resource ID: {{ resource_id }}</li>
<li>System: {{ allocation.system.name if allocation.system else 'N/A' }}</li>
<li>Guardian: {{ allocation.guardian.name if allocation.guardian else 'Общая часть' }}</li>
<li>Количество: <strong>{{ allocation.quantity }}</strong></li>
<li>Дата: {{ allocation.allocation_date.strftime('%Y-%m-%d') if allocation.allocation_date else 'N/A' }}</li>
</ul>
</div>
<div class="mt-4">
<a href="{{ url_for('resource_detail', resource_id=resource_id) }}" class="btn btn-primary">
К Resource
</a>
<a href="{{ url_for('resources_list') }}" class="btn btn-secondary">
К пулу ресурсов
</a>
</div>
{% endblock %}