vm-bench/frontend/templates/polling.html
Claus Lohmar 7e1303a217 fix: auto-detect BIOS boot type + simplified reuse form
1. BIOS: provisioner now calls detect_efi() on the first disk when
   auto_detect_boot=true. Detects EFI partition via guestfish.
   Falls back to user's boot_type if detection inconclusive.

2. Reuse: 'Create Another VM' now shows an inline form asking only
   for VM Name and ID, reusing the same disk image, format, and
   boot settings from the completed job. No redirect needed.
2026-07-23 08:48:31 +00:00

53 lines
2.1 KiB
HTML

<div class="container" id="polling-container"
data-job-id="{{ job_id }}" data-vmid="{{ vmid }}"
data-source-filename="{{ source_filename }}" data-vm-name="{{ vm_name }}">
<div class="panel poll-panel">
<h2>Converting VM {{ vmid }}</h2>
<p class="dim">Job: <code>{{ job_id }}</code> &nbsp;|&nbsp; {{ vm_name }}</p>
<div id="status-badge" class="badge badge-queued">
<span class="spinner"></span> Queued
</div>
<div class="progress-bar">
<div class="progress-fill" id="conversion-fill" style="width:0%">0%</div>
</div>
<p id="status-message" class="dim">Waiting for backend...</p>
<p id="elapsed" class="dim">Elapsed: 0s</p>
<div id="error-block" class="error hidden"></div>
</div>
<!-- Reuse: ask whether to create another VM -->
<div id="reuse-section" class="panel hidden">
<h2>Conversion Complete</h2>
<p>Use the same source image to create another VM?</p>
<div class="btn-row">
<button id="btn-reuse-yes" class="btn">Yes — Create Another VM</button>
<button id="btn-reuse-no" class="btn btn-secondary">No — Clean Up &amp; Finish</button>
</div>
<div id="reuse-form-wrap" class="hidden" style="margin-top:1rem;">
<hr style="border-color:var(--border); margin-bottom:1rem;">
<form id="reuse-form" onsubmit="submitReuse(event)">
<div class="row">
<div class="form-group">
<label>VM Name *</label>
<input type="text" id="reuse-vmname" name="vm_name" required
placeholder="e.g. second-vm">
</div>
<div class="form-group">
<label>VM ID *</label>
<input type="number" id="reuse-vmid" name="vmid" required
min="21000" max="21100" placeholder="21051">
</div>
</div>
<p class="dim" style="font-size:0.8rem;">
Same disk image, format, and boot settings as the first VM.
</p>
<button type="submit" class="btn" style="margin-top:0.5rem;">Start Conversion</button>
</form>
<div id="reuse-submit-status" class="hidden" style="margin-top:1rem;"></div>
</div>
</div>
</div>