86 行
3.8 KiB
HTML
86 行
3.8 KiB
HTML
|
|
{% extends "base.html" %}
|
||
|
|
|
||
|
|
{% block title %}{{ project.name }} - Веб-приложение для оптимизации Adwizard{% endblock %}
|
||
|
|
|
||
|
|
{% block content %}
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-md-12">
|
||
|
|
<h2>Проект: {{ project.name }}</h2>
|
||
|
|
<div class="card mb-4">
|
||
|
|
<div class="card-body">
|
||
|
|
<h5 class="card-title">Информация о проекте</h5>
|
||
|
|
<table class="table table-borderless">
|
||
|
|
<tr>
|
||
|
|
<th width="200">ID проекта:</th>
|
||
|
|
<td>{{ project.id_project }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>Название:</th>
|
||
|
|
<td>{{ project.name }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>Версия:</th>
|
||
|
|
<td>{{ project.version }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>Статус:</th>
|
||
|
|
<td>
|
||
|
|
<span class="badge
|
||
|
|
{% if project.status == 'Queued' %}bg-warning
|
||
|
|
{% elif project.status == 'Process' %}bg-info
|
||
|
|
{% else %}bg-success{% endif %}">
|
||
|
|
{{ project.status }}
|
||
|
|
</span>
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>Описание:</th>
|
||
|
|
<td>{{ project.description if project.description else 'Нет описания' }}</td>
|
||
|
|
</tr>
|
||
|
|
<tr>
|
||
|
|
<th>Параметры:</th>
|
||
|
|
<td>{{ project.params if project.params else 'Нет параметров' }}</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="row">
|
||
|
|
<div class="col-md-12">
|
||
|
|
<h3>Этапы проекта</h3>
|
||
|
|
{% if stages %}
|
||
|
|
<div class="row">
|
||
|
|
{% for stage in stages %}
|
||
|
|
<div class="col-md-6 mb-3">
|
||
|
|
<div class="card">
|
||
|
|
<div class="card-body">
|
||
|
|
<h5 class="card-title">{{ stage.name }}</h5>
|
||
|
|
<p class="card-text">
|
||
|
|
<strong>Эксперт:</strong> {{ stage.expert or 'Не указан' }}<br>
|
||
|
|
<strong>Символ:</strong> {{ stage.symbol }}<br>
|
||
|
|
<strong>Таймфрейм:</strong> {{ stage.period }}<br>
|
||
|
|
<strong>Статус:</strong>
|
||
|
|
<span class="badge
|
||
|
|
{% if stage.status == 'Queued' %}bg-warning
|
||
|
|
{% elif stage.status == 'Process' %}bg-info
|
||
|
|
{% else %}bg-success{% endif %}">
|
||
|
|
{{ stage.status }}
|
||
|
|
</span><br>
|
||
|
|
<strong>Критерий оптимизации:</strong> {{ stage.optimization_criterion }}
|
||
|
|
</p>
|
||
|
|
<a href="{{ url_for('stage_detail', stage_id=stage.id_stage) }}" class="btn btn-sm btn-outline-primary">Детали этапа</a>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endfor %}
|
||
|
|
</div>
|
||
|
|
{% else %}
|
||
|
|
<div class="alert alert-info">
|
||
|
|
<p>У этого проекта пока нет этапов.</p>
|
||
|
|
</div>
|
||
|
|
{% endif %}
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
{% endblock %}
|