SanctuaryCommander/blueprints/upload_slideshow/upload_slideshow.html

46 lines
2.2 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>Video Commander</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
<link rel="stylesheet" type="text/css" href="../static/style.css">
<script src="../static/script.js"></script>
<script>
function prepUpload() {
uploadFiles('submit', 'fileToUpload', 'progressContainer', 'progress', '/upload/slideshow', {
'name': document.getElementById('buttonName').value
})
}
</script>
</head>
<body>
<div class="container">
<h1 class="text-center">Upload a Slideshow of Photos</h1>
<hr>
<div class="alert alert-info text-center" role="alert">
Upload a slideshow of photos, you'll be able to order the photos on the next screen
</div>
<form>
<div id="progressContainer" class="progress" role="progressbar", aria-label="Upload Progress" aria-valuemin="0"
aria-valuemin="0", aria-valuemax="100" >
<div id="progress" class="progress-bar" style="width: 0%;">0%</div>
</div>
<div class="form-group">
<label for="fileToUpload">File to Upload</label>
<input type="file" class="form-control" name="file" id="fileToUpload" multiple/>
</div>
<div class="form-group">
<label for="buttonName">Button Name</label>
<input type="text" class="form-control" name="buttonName" id="buttonName" />
</div>
<div class="form-group">
<label for="photoTime">How long to show each photo?</label>
<input type="number" class="form-control" name="photoTime" id="photoTime" />
</div>
<button id="submit" class="btn btn-primary form-control" onclick="prepUpload()">Submit</button>
</form>
</div>
</body>
</html>