first commit
This commit is contained in:
64
templates/upload.html
Normal file
64
templates/upload.html
Normal file
@@ -0,0 +1,64 @@
|
||||
<!doctype html>
|
||||
<html lang="cs">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Generátor katalogu</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: Arial, sans-serif;
|
||||
max-width: 760px;
|
||||
margin: 40px auto;
|
||||
background: #f7f3ee;
|
||||
color: #222;
|
||||
}
|
||||
.box {
|
||||
background: white;
|
||||
padding: 28px;
|
||||
border-radius: 18px;
|
||||
box-shadow: 0 8px 30px rgba(0,0,0,.08);
|
||||
}
|
||||
label {
|
||||
display: block;
|
||||
margin-top: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
input {
|
||||
margin-top: 8px;
|
||||
width: 100%;
|
||||
}
|
||||
button {
|
||||
margin-top: 28px;
|
||||
padding: 14px 22px;
|
||||
border: 0;
|
||||
border-radius: 999px;
|
||||
background: #222;
|
||||
color: white;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.hint {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="box">
|
||||
<h1>Generátor katalogu</h1>
|
||||
<p class="hint">Nahraj CSV a fotky produktů. Názvy fotek musí odpovídat sloupci <code>image</code> v CSV.</p>
|
||||
|
||||
<form action="/generate" method="post" enctype="multipart/form-data">
|
||||
<label>CSV soubor</label>
|
||||
<input type="file" name="csv_file" accept=".csv" required>
|
||||
|
||||
<label>Fotky produktů</label>
|
||||
<input type="file" name="images" accept="image/*" multiple>
|
||||
|
||||
<label>ZIP s fotkami</label>
|
||||
<input type="file" name="images_zip" accept=".zip">
|
||||
|
||||
<button type="submit">Vygenerovat katalog PDF</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user