2017-05-28 15:41:02 -07:00
<!doctype html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" / >
< style >
textarea {
width: 100%;
height: 600px;
}
< / style >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" type = "text/css" / >
2017-05-28 16:38:17 -07:00
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.6/css/bootstrap-grid.min.css" type = "text/css" / >
2017-05-28 15:41:02 -07:00
< title > Kickstart Builder< / title >
2017-05-28 16:52:57 -07:00
< script type = "text/javascript" >
var fields_dirty = false;
< / script >
2017-05-28 15:41:02 -07:00
< / head >
< body >
< div class = "container" >
< h1 class = "display-4" > Ubuntu-Kickstart Builder< / h1 >
< p > Create bootable Ubuntu ISOs pre-configured with < a href = "https://help.ubuntu.com/16.04/installation-guide/i386/ch04s06.html" target = "_blank" > Kickstart< / a > .< / p >
< div class = "list-group" >
< span class = "list-group-item list-group-item-danger" > Warning, these default configs will format drives without prompting! < / span >
< / div >
< br / > < br / >
2017-05-28 18:52:32 -07:00
< form action = "/process" method = "post" enctype = "multipart/form-data" >
2017-05-28 16:38:17 -07:00
< div class = "row" >
< div class = "col" >
< fieldset class = "form-group" >
< legend > Base ISO:< / legend >
< select name = "base_image" class = "c-select" >
{% for iso in ISOS: %}
2017-05-28 16:57:48 -07:00
< option value = "{{ iso }}" { % if BASE_IMAGE = = iso % } selected { % endif % } > {{ iso }}< / option >
2017-05-28 16:38:17 -07:00
{% endfor %}
< / select >
< / fieldset >
< / div >
< div class = "col" >
< fieldset class = "form-group" >
< legend > Sample configs:< / legend >
< select name = "sample" class = "c-select" >
{% for sample in SAMPLES: %}
2017-05-28 16:57:48 -07:00
< option value = "{{ sample }}" { % if CURRENT_SAMPLE = = sample % } selected { % endif % } > {{ sample }}< / option >
2017-05-28 16:38:17 -07:00
{% endfor %}
< / select >
2017-05-28 16:52:57 -07:00
< input type = "submit" value = "Load" name = "action" class = "btn btn-warning" onclick = "if(fields_dirty){return confirm('Warning: loading a new template will abandon changes made below.')}; return true" >
2017-05-28 16:38:17 -07:00
< / fieldset >
< / div >
< / div >
2017-05-28 15:41:02 -07:00
< br / >
2017-05-28 16:52:43 -07:00
{% if SAMPLE_INFO %}
< div class = "alert alert-warning" role = "alert" >
< h4 class = "alert-heading" > Template information< / h4 >
< p style = "white-space: pre;" > {{ SAMPLE_INFO }}< / p >
< / div >
< br / >
{% endif %}
2017-05-28 15:41:02 -07:00
< fieldset class = "form-group" >
< legend > Menu Entries< / legend >
< p > Selectable options displayed on the boot menu.< / p >
2017-05-28 16:52:57 -07:00
< textarea class = "form-control" name = "menu_entries" onchange = "fields_dirty=true" > {{ MENU_ENTRIES }}< / textarea >
2017-05-28 15:41:02 -07:00
< / fieldset >
< br / >
< fieldset class = "form-group" >
< legend > Seed Content< / legend >
< p > Options to pass to the ubuntu installer. Install path: cdrom:/ks.cfg< / p >
2017-05-28 16:52:57 -07:00
< textarea class = "form-control" name = "seed_content" onchange = "fields_dirty=true" > {{ SEED_CONTENT }}< / textarea >
2017-05-28 15:41:02 -07:00
< / fieldset >
< br / >
< fieldset class = "form-group" >
< legend > Kickstart content< / legend >
< p > Higher-level Kickstart installation options.< / p >
2017-05-28 16:52:57 -07:00
< textarea class = "form-control" name = "kickstart" onchange = "fields_dirty=true" > {{ KS_CONTENT }}< / textarea >
2017-05-28 15:41:02 -07:00
< / fieldset >
< br / >
2017-05-28 18:52:32 -07:00
< fieldset class = "form-group" >
< legend > User data< / legend >
< p > Include an arbitrary file on outputted ISO. This file will be placed on the root of the disk.< / p >
< input type = "file" name = "userdata" onchange = "fields_dirty=true" / >
< / fieldset >
< br / >
2017-05-28 16:38:17 -07:00
< input type = "submit" value = "Build" name = "action" class = "btn btn-success" >
2017-05-28 18:52:32 -07:00
< br / >
< br / >
2017-05-28 15:41:02 -07:00
< / div >
< / form >
< / body >
< / html >