Reworked flow
This commit is contained in:
@ -3,11 +3,14 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Photo WebUI</title>
|
||||
|
||||
<!-- Link to your CSS in the package -->
|
||||
<link rel="stylesheet" href="{{ url_for('static', filename='style/style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Photo WebUI</h1>
|
||||
|
||||
<!-- Toolbar with refresh and save buttons -->
|
||||
<div class="toolbar">
|
||||
<button onclick="refreshGallery()">🔄 Refresh Gallery</button>
|
||||
<button onclick="refreshHero()">🔄 Refresh Hero</button>
|
||||
@ -19,7 +22,7 @@
|
||||
<h2>Gallery</h2>
|
||||
<label>
|
||||
Upload Image:
|
||||
<input type="file" id="upload-gallery" accept=".png,.jpg,.jpeg,.webp">
|
||||
<input type="file" id="upload-gallery" accept=".png,.jpg,.jpeg,.webp" multiple>
|
||||
</label>
|
||||
<div id="gallery"></div>
|
||||
</div>
|
||||
@ -29,10 +32,12 @@
|
||||
<h2>Hero</h2>
|
||||
<label>
|
||||
Upload Image:
|
||||
<input type="file" id="upload-hero" accept=".png,.jpg,.jpeg,.webp">
|
||||
<input type="file" id="upload-hero" accept=".png,.jpg,.jpeg,.webp" multiple>
|
||||
</label>
|
||||
<div id="hero"></div>
|
||||
</div>
|
||||
|
||||
<!-- JS files for rendering, uploading, and actions -->
|
||||
<script src="{{ url_for('static', filename='js/main.js') }}"></script>
|
||||
<script src="{{ url_for('static', filename='js/upload.js') }}"></script>
|
||||
</body>
|
||||
|
Reference in New Issue
Block a user