mirror of
https://github.com/Rainyy21/Front-end-Design-Project.git
synced 2026-10-11 00:30:23 -04:00
20 lines
970 B
HTML
20 lines
970 B
HTML
<div class="card">
|
|
<img src="{{ url_for('static', filename='covers/' + item.image_path) }}" alt="Cover">
|
|
<div class="content">
|
|
<span class="badge {{ 'show-badge' if item.type == 'Show' else 'book-badge' }}">
|
|
{{ item.type }}
|
|
</span>
|
|
<h3 style="margin: 10px 0 5px 0;">{{ item.title }}</h3>
|
|
<span class="genre-list">🏷️ {{ item.genre_list }}</span>
|
|
|
|
<p><strong>{{ item.author if item.type == 'Book' else item.network }}</strong></p>
|
|
|
|
<div style="display: flex; justify-content: space-between; align-items: center; margin-top: 10px;">
|
|
<small>Released: {{ item.release_year }}</small>
|
|
<form action="{{ url_for('delete_media', media_id = item.id)}}" method = "POST" onsubmit = "return confirm('Are you sure?');">
|
|
<button type = "submit" class = "delete_button" id = "button" >🗑️</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|