54 lines
2.1 KiB
PHP
54 lines
2.1 KiB
PHP
<div class="d-flex justify-content-between align-items-center mb-3">
|
|
<div>
|
|
<h1 class="h3 mb-0">Статусы доски</h1>
|
|
<div class="text-muted small">
|
|
<?= htmlspecialchars((string)$board['name']) ?> (<?= htmlspecialchars((string)$board['code']) ?>)
|
|
</div>
|
|
</div>
|
|
|
|
<a href="/admin/boards/statuses/create?board_id=<?= (int)$board['id'] ?>" class="btn btn-primary">
|
|
+ Создать статус
|
|
</a>
|
|
</div>
|
|
|
|
<div class="card shadow-sm">
|
|
<div class="table-responsive">
|
|
<table class="table table-hover align-middle mb-0">
|
|
<thead class="table-light">
|
|
<tr>
|
|
<th>ID</th>
|
|
<th>Код</th>
|
|
<th>Название</th>
|
|
<th>Цвет</th>
|
|
<th>Порядок</th>
|
|
<th>Финальный</th>
|
|
<th>Активен</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php foreach ($statuses as $status): ?>
|
|
<tr>
|
|
<td><?= (int)$status['id'] ?></td>
|
|
<td><?= htmlspecialchars((string)$status['code']) ?></td>
|
|
<td><?= htmlspecialchars((string)$status['name']) ?></td>
|
|
<td><?= htmlspecialchars((string)$status['color']) ?></td>
|
|
<td><?= (int)$status['sort_order'] ?></td>
|
|
<td><?= (int)$status['is_done'] ? 'Да' : 'Нет' ?></td>
|
|
<td><?= (int)$status['is_active'] ? 'Да' : 'Нет' ?></td>
|
|
<td>
|
|
<a href="/admin/boards/statuses/edit?id=<?= (int)$status['id'] ?>" class="btn btn-sm btn-outline-primary">
|
|
Изменить
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
<?php if (empty($statuses)): ?>
|
|
<tr>
|
|
<td colspan="8" class="text-center text-muted py-4">Статусов пока нет</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|