basic dynamic menu generation
This commit is contained in:
6
app/templates/formatting.ipxe.j2
Normal file
6
app/templates/formatting.ipxe.j2
Normal file
@@ -0,0 +1,6 @@
|
||||
#!ipxe
|
||||
|
||||
console --picture {{ request.url_root }}ipxe/bg.png --left 32 --right 32 --top 32 --bottom 48
|
||||
|
||||
{% block menu %}
|
||||
{% endblock %}
|
||||
21
app/templates/main.ipxe.j2
Normal file
21
app/templates/main.ipxe.j2
Normal file
@@ -0,0 +1,21 @@
|
||||
{% extends 'formatting.ipxe.j2' %}
|
||||
{% block menu%}
|
||||
dhcp
|
||||
echo MAIN MENU
|
||||
|
||||
cpuid --ext 29 && set bits 64 || set bits 32
|
||||
cpuid --ext 29 && set arch x86_64 || set arch x86
|
||||
|
||||
:main
|
||||
menu BootBox @ {{ request.url_root }}
|
||||
{% for mt in ('install', 'utilities') %}
|
||||
item --gap -- == {{ mt.upper() }} ==
|
||||
{% for os in db.getMenu(mt) %}
|
||||
item --key {{ os['shortcut'] }} {{ os['name'] }} ({{ os['shortcut'] }}) {{ os['desc'] }}
|
||||
{%- endfor %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
shell
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user