Files
specs/app/templates/resources/allocated.html
2026-10-07 19:57:07 +00:00

34 lines
1.1 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% 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 %}