Skip to content
Merged

hehe #47

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified BookStation/requirements.txt
Binary file not shown.
5 changes: 4 additions & 1 deletion BookStation/staff/templates/staff/books/change_book.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{% block content %}
<div class="container mx-auto px-4 py-8">
<nav class="text-sm text-gray-500 mb-6" aria-label="breadcrumb">
<ol class="list-none p-0 inline-flex space-x-2">
<ol class="list-none p-0 inline-flex items-center space-x-2">
<li class="flex items-center">
<a href="{% url 'view_list_book' %}" class="text-blue-600 hover:text-blue-800 transition duration-200 ease-in-out">
<i class="fas fa-book mr-1"></i>Sách
Expand Down Expand Up @@ -41,13 +41,16 @@ <h2 class="text-3xl font-bold text-gray-800 text-center mb-8">
{% endif %}
</label>

{# Hiển thị ảnh bìa hiện tại nếu có #}
{% if field.name == 'cover_image' and book.cover_image %}
<div class="mb-4">
<p class="text-sm text-gray-600 mb-2">Ảnh bìa hiện tại:</p>
<img src="{{ book.cover_image.url }}" alt="Ảnh bìa hiện tại của sách" class="w-40 h-auto rounded-lg shadow-md border border-gray-200">
</div>
{% endif %}

{# Render trường form #}
{# Nếu bạn đã định nghĩa widgets với class trong forms.py, chúng sẽ được áp dụng tự động #}
{{ field }}

{% if field.help_text %}
Expand Down
Loading