34 lines
1.1 KiB
HTML
34 lines
1.1 KiB
HTML
{% 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 %}
|