many fixes in design and add shirt story type for creation book

This commit is contained in:
2026-05-01 20:51:42 +03:00
parent 9294399517
commit ce6fffaa57
24 changed files with 1167 additions and 735 deletions
+14 -3
View File
@@ -69,12 +69,20 @@ include 'views/layouts/header.php';
<div class="col-12">
<?php endif; ?>
<div class="d-flex justify-content-between align-items-start mb-2">
<h3 class="h4">
<h3 class="h4 mb-0">
<?php if ($book['sort_order_in_series']): ?>
<small class="text-muted">Книга <?= $book['sort_order_in_series'] ?></small><br>
<?php endif; ?>
<?php if (!empty($book['is_short_story'])): ?>
<i class="bi bi-file-text text-success me-1"></i>
<?php else: ?>
<i class="bi bi-book text-primary me-1"></i>
<?php endif; ?>
<?= e($book['title']) ?>
</h3>
<?php if (!empty($book['is_short_story'])): ?>
<span class="text-success">(рассказ)</span>
<?php endif; ?>
</div>
<?php if ($book['genre']): ?>
@@ -96,8 +104,11 @@ include 'views/layouts/header.php';
$book_stats = $book_model->getBookStats($book['id'], true);
?>
<small class="text-muted">
Глав: <?= $book_stats['chapter_count'] ?? 0 ?> |
Слов: <?= $book_stats['total_words'] ?? 0 ?>
<?php if (!empty($book_stats['is_short_story'])): ?>
<?= number_format($book_stats['total_words'] ?? 0) ?> слов
<?php else: ?>
Глав: <?= $book_stats['chapter_count'] ?? 0 ?> | <?= number_format($book_stats['total_words'] ?? 0) ?> слов
<?php endif; ?>
</small>
</div>
</div>