summaryrefslogtreecommitdiffstatshomepage
path: root/scripts/minimaws/lib/htmltmpl.py
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2017-08-04 19:23:18 +1000
committer Vas Crabb <vas@vastheman.com>2017-08-04 19:23:18 +1000
commitb97e374cdbc7988e193f6377f2604f1d4b6264ea (patch)
tree24d9b899f6c086a4f0135e3ef96ffa3867da2799 /scripts/minimaws/lib/htmltmpl.py
parent3eb9ddfa1691ce147861a2648e34dc7478f8f3b8 (diff)
minimaws: expose system BIOS, better way of dropping tables
Diffstat (limited to 'scripts/minimaws/lib/htmltmpl.py')
-rw-r--r--scripts/minimaws/lib/htmltmpl.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/scripts/minimaws/lib/htmltmpl.py b/scripts/minimaws/lib/htmltmpl.py
index 815905a59bb..8dd219f0681 100644
--- a/scripts/minimaws/lib/htmltmpl.py
+++ b/scripts/minimaws/lib/htmltmpl.py
@@ -48,9 +48,18 @@ MACHINE_PROLOGUE = string.Template(
' <tr><th>Runnable:</th><td>${runnable}</td></tr>\n' \
' <tr><th>Source file:</th><td><a href="${sourcehref}">${sourcefile}</a></td></tr>\n')
-MACHINE_SLOTS_PLACEHOLDER = string.Template(
+MACHINE_OPTIONS_HEADING = string.Template(
'<h2>Options</h2>\n' \
- '<p id="para-cmd-preview"></p>\n' \
+ '<p id="para-cmd-preview"></p>\n')
+
+MACHINE_BIOS_PROLOGUE = string.Template(
+ '<h3>System BIOS</h3>' \
+ '<select id="select-system-bios" onchange="update_cmd_preview()">')
+
+MACHINE_BIOS_OPTION = string.Template(
+ ' <option value="${name}" data-isdefault="${isdefault}">${name} - ${description}</option>\n')
+
+MACHINE_SLOTS_PLACEHOLDER = string.Template(
'<h3>Slots</h3>\n' \
'<p id="para-slots-placeholder">Loading slot information&hellip;<p>\n' \
'<script>fetch_slots("${machine}");</script>\n')