Fix framerate field visibility
This commit is contained in:
parent
57a6651394
commit
5b789f4674
1 changed files with 11 additions and 11 deletions
|
|
@ -166,7 +166,7 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>
|
<label>
|
||||||
Person ID:
|
Person ID:
|
||||||
<input type="text" name="person_id" required>
|
<input type="text" name="person_id" value="{{ request.form.person_id or '' }}" required>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -175,13 +175,13 @@
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>
|
<label>
|
||||||
From Date:
|
From Date:
|
||||||
<input type="date" name="date_from">
|
<input type="date" name="date_from" value="{{ request.form.date_from or '' }}">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label>
|
<label>
|
||||||
To Date:
|
To Date:
|
||||||
<input type="date" name="date_to">
|
<input type="date" name="date_to" value="{{ request.form.date_to or '' }}">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -216,14 +216,14 @@
|
||||||
<div class="section-header">Video Output</div>
|
<div class="section-header">Video Output</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="checkbox-container">
|
<div class="checkbox-container">
|
||||||
<input type="checkbox" id="do_not_compile_video" name="do_not_compile_video">
|
<input type="checkbox" id="do_not_compile_video" name="do_not_compile_video" {% if request.form.do_not_compile_video %}checked{% endif %}>
|
||||||
<label for="do_not_compile_video">Do not compile images into a video</label>
|
<label for="do_not_compile_video">Do not compile images into a video</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group" id="framerateGroup" style="display:none;">
|
<div class="form-group" id="framerateGroup" style="display:{% if request.form.do_not_compile_video %}none{% else %}block{% endif %};">
|
||||||
<label>
|
<label>
|
||||||
Frames per second:
|
Frames per second:
|
||||||
<input type="number" name="framerate" value="15" min="1">
|
<input type="number" name="framerate" value="{{ request.form.framerate or 15 }}" min="1">
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
@ -246,6 +246,11 @@
|
||||||
// Check connection status when page loads
|
// Check connection status when page loads
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
checkConnectionStatus();
|
checkConnectionStatus();
|
||||||
|
|
||||||
|
// Toggle framerate field visibility based on checkbox
|
||||||
|
document.getElementById('do_not_compile_video').addEventListener('change', function() {
|
||||||
|
document.getElementById('framerateGroup').style.display = this.checked ? 'none' : 'block';
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
function checkConnectionStatus() {
|
function checkConnectionStatus() {
|
||||||
|
|
@ -274,11 +279,6 @@
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Toggle framerate field visibility based on checkbox
|
|
||||||
document.getElementById('do_not_compile_video').addEventListener('change', function() {
|
|
||||||
document.getElementById('framerateGroup').style.display = this.checked ? 'none' : 'block';
|
|
||||||
});
|
|
||||||
|
|
||||||
// Cancel button
|
// Cancel button
|
||||||
document.getElementById('cancelButton').addEventListener('click', function() {
|
document.getElementById('cancelButton').addEventListener('click', function() {
|
||||||
fetch('/cancel', {
|
fetch('/cancel', {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue