{{define "proctype-input"}} {{template "select" .}}
{{end}} {{define "cores-input"}}

Cores

{{end}} {{define "memory-input"}}

MiB

{{end}} {{define "swap-input"}}

MiB

{{end}} {{define "volumes"}} {{range $k,$v := .Volumes}} {{if eq $v.Type "rootfs"}} {{ template "volume-rootfs" Map "Name" $k "Volume" $v "InstanceType" $.InstanceType}} {{else if eq $v.Type "mp"}} {{ template "volume-mp" Map "Name" $k "Volume" $v "InstanceType" $.InstanceType}} {{else if eq $v.Type "ide"}} {{ template "volume-ide" Map "Name" $k "Volume" $v "InstanceType" $.InstanceType}} {{else if or (eq $v.Type "scsi") (eq $v.Type "sata")}} {{ template "volume-scsi" Map "Name" $k "Volume" $v "InstanceType" $.InstanceType}} {{else if eq $v.Type "unused"}} {{ template "volume-unused" Map "Name" $k "Volume" $v "InstanceType" $.InstanceType}} {{else}} {{end}} {{end}} {{end}} {{define "volumes-add-disk"}} {{end}} {{define "volumes-add-cd"}} {{end}} {{define "volume-rootfs"}}

{{.Name}}

{{.Volume.File}}

{{template "volume-action-move" .}} {{template "volume-action-resize" .}} {{template "volume-action-none" .}} {{template "volume-action-none" .}}
{{end}} {{define "volume-mp"}}

{{.Name}}

{{.Volume.File}}

{{template "volume-action-move" .}} {{template "volume-action-resize" .}} {{template "volume-action-detach" .}} {{template "volume-action-delete-inactive" .}}
{{end}} {{define "volume-ide"}}

{{.Name}}

{{.Volume.File}}

{{template "volume-action-none" .}} {{template "volume-action-none" .}} {{template "volume-action-none" .}} {{template "volume-action-delete" .}}
{{end}} {{define "volume-scsi"}}

{{.Name}}

{{.Volume.File}}

{{template "volume-action-move" .}} {{template "volume-action-resize" .}} {{template "volume-action-detach" .}} {{template "volume-action-delete-inactive" .}}
{{end}} {{define "volume-unused"}}

{{.Name}}

{{.Volume.File}}

{{template "volume-action-move-inactive" .}} {{template "volume-action-resize-inactive" .}} {{template "volume-action-attach" .}} {{template "volume-action-delete" .}}
{{end}} {{define "volume-action-move"}} {{end}} {{define "volume-action-move-inactive"}} {{end}} {{define "volume-action-resize"}} {{end}} {{define "volume-action-resize-inactive"}} {{end}} {{define "volume-action-delete"}} {{end}} {{define "volume-action-delete-inactive"}} {{end}} {{define "volume-action-attach"}} {{end}} {{define "volume-action-detach"}} {{end}} {{define "volume-action-none"}} {{end}} {{define "nets"}} {{range $k,$v := .}} {{template "net" $v}} {{end}} {{end}} {{define "nets-add-net"}} {{end}} {{define "net"}}

{{.Net_ID}}

{{.Value}}

{{end}} {{define "devices"}} {{range $k,$v := .}} {{template "device" $v}} {{end}} {{end}} {{define "devices-add-device"}} {{end}} {{define "device"}}

{{.Device_ID}}

{{.Device_Name}}

{{end}} {{define "boot"}} {{template "boot-container" Map "ID" "enabled" "Name" "Enabled" "Targets" .Enabled}}
{{template "boot-container" Map "ID" "disabled" "Name" "Disabled" "Targets" .Disabled}} {{end}} {{define "boot-container"}} {{end}} {{define "boot-target"}} {{if .volume_id}}

{{.volume_id}}

{{.file}}

{{else if .net_id}}

{{.net_id}}

{{.value}}

{{else}} {{end}} {{end}}