mirror of
https://github.com/calibrain/shelfmark.git
synced 2026-11-27 02:51:13 +00:00
Related to #34 This PR adds: - Additional column for checkboxes as the first column to select which books to download - Select/deselect all books - Button and modal to confirm download of selected books Maybe the checkbox column should be at the end of the table, next to actions?   
123 lines
6.4 KiB
HTML
123 lines
6.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="Calibre Web Book Downloader Application">
|
|
<meta name="theme-color" content="#333333">
|
|
<title>Calibre Web Book Downloader</title>
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
|
<!-- Add favicon -->
|
|
<link rel="icon" type="image/x-icon" href="{{ url_for('static', filename='favicon.ico') }}">
|
|
<!-- UIkit CSS -->
|
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/uikit@3.21.16/dist/css/uikit.min.css" />
|
|
|
|
<!-- UIkit JS -->
|
|
<script src="https://cdn.jsdelivr.net/npm/uikit@3.21.16/dist/js/uikit.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/uikit@3.21.16/dist/js/uikit-icons.min.js"></script>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<h1 class="uk-heading-medium" style="color: white;">Book Search & Download</h1>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="uk-container">
|
|
<!-- Search Section -->
|
|
<section class="uk-section-xxsmall uk-padding">
|
|
<div class="uk-container uk-width-expand">
|
|
<form class="uk-search uk-search-default uk-width-expand">
|
|
<input class="uk-search-input" type="search" placeholder="Search by ISBN, title, author..." aria-label="Search books" id="search-input">
|
|
<button class="uk-search-icon-flip" uk-search-icon id="search-button" type="button"></button>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
|
|
<!-- Results Section -->
|
|
<ul uk-accordion id="results-section-accordion">
|
|
<li id="search-accordion">
|
|
<a class="uk-accordion-title" href><h1 class="uk-heading-xsmall">Search Results</h1></a>
|
|
<div class="uk-accordion-content">
|
|
<div id="search-loading" class="uk-flex uk-flex-center" role="status" hidden>
|
|
<div uk-spinner="ratio: 2"></div>
|
|
<span>Loading...</span>
|
|
</div>
|
|
<div class="results-content">
|
|
<button class="uk-button uk-button-primary uk-margin-small" id="download-selected-button" disabled>Download Selected</button>
|
|
<div class="uk-overflow-auto">
|
|
<table id="results-table" class="uk-table uk-table-hover uk-table-divider" role="grid">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<input type="checkbox" id="select-all-checkbox" class="uk-checkbox" />
|
|
</th>
|
|
<th scope="col" data-sort="index"># <span class="sort-icon" uk-icon></span></th>
|
|
<th scope="col">Preview</th>
|
|
<th scope="col" data-sort="title">Title <span class="sort-icon" uk-icon></span></th>
|
|
<th scope="col" data-sort="author">Author <span class="sort-icon" uk-icon></span></th>
|
|
<th scope="col" data-sort="publisher">Publisher <span class="sort-icon" uk-icon></span></th>
|
|
<th scope="col" data-sort="year">Year <span class="sort-icon" uk-icon></span></th>
|
|
<th scope="col" data-sort="language">Language <span class="sort-icon" uk-icon></span></th>
|
|
<th scope="col" data-sort="format">Format <span class="sort-icon" uk-icon></span></th>
|
|
<th scope="col" data-sort="size">Size <span class="sort-icon" uk-icon></span></th>
|
|
<th scope="col">Actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- Search results will be injected here -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
|
|
<!-- Modal -->
|
|
<div class="modal-overlay" id="modal-overlay" role="dialog" aria-modal="true">
|
|
<div class="details-container" id="details-container">
|
|
<!-- Details will be dynamically injected here -->
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Status Section -->
|
|
<ul uk-accordion id="status-section">
|
|
<li id="search-accordion">
|
|
<a class="uk-accordion-title" href><h1 class="uk-heading-xsmall">Download Status</h1></a>
|
|
<div class="uk-accordion-content">
|
|
<div id="status-loading" class="uk-flex uk-flex-center" role="status" hidden>
|
|
<div uk-spinner="ratio: 2"></div>
|
|
<span>Loading...</span>
|
|
</div>
|
|
<div class="status-content">
|
|
<div class="uk-overflow-auto">
|
|
<table id="status-table" class="uk-table uk-table-hover uk-table-divider" role="grid">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Status</th>
|
|
<th scope="col">Book ID</th>
|
|
<th scope="col">Title</th>
|
|
<th scope="col">Preview</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<!-- Search results will be injected here -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</main>
|
|
|
|
<footer>
|
|
<h1 class="uk-heading-xxsmall" style="color: white;">Calibre Web Book Downloader</h1>
|
|
<a href="https://github.com/calibrain/calibre-web-automated-book-downloader" class="uk-icon-link" uk-icon="icon:github; ratio: 2"></a>
|
|
</footer>
|
|
|
|
<!-- Scripts -->
|
|
<script src="{{ url_for('static', filename='js/main.js') }}" defer></script>
|
|
</body>
|
|
</html> |