mirror of
https://github.com/unraid/webgui.git
synced 2026-04-28 22:09:24 -05:00
Handle installing v1 templates
This commit is contained in:
@@ -166,7 +166,7 @@ function xmlToVar($xml) {
|
||||
'Default' => xml_decode($port->HostPort),
|
||||
'Value' => xml_decode($port->HostPort),
|
||||
'Mode' => xml_decode($port->Protocol) ? xml_decode($port->Protocol) : "tcp",
|
||||
'Description' => ($out['Network'] == 'bridge') ? 'Container Port: '.xml_decode($port->ContainerPort) : 'n/a',
|
||||
'Description' => '',
|
||||
'Type' => 'Port',
|
||||
'Display' => 'always',
|
||||
'Required' => 'true',
|
||||
@@ -185,7 +185,7 @@ function xmlToVar($xml) {
|
||||
'Default' => xml_decode($vol->HostDir),
|
||||
'Value' => xml_decode($vol->HostDir),
|
||||
'Mode' => xml_decode($vol->Mode) ? xml_decode($vol->Mode) : "rw",
|
||||
'Description' => 'Container Path: '.xml_decode($vol->ContainerDir),
|
||||
'Description' => '',
|
||||
'Type' => 'Path',
|
||||
'Display' => 'always',
|
||||
'Required' => 'true',
|
||||
@@ -204,7 +204,7 @@ function xmlToVar($xml) {
|
||||
'Default' => xml_decode($varitem->Value),
|
||||
'Value' => xml_decode($varitem->Value),
|
||||
'Mode' => '',
|
||||
'Description' => 'Container Variable: '.xml_decode($varitem->Name),
|
||||
'Description' => '',
|
||||
'Type' => 'Variable',
|
||||
'Display' => 'always',
|
||||
'Required' => 'false',
|
||||
@@ -223,7 +223,7 @@ function xmlToVar($xml) {
|
||||
'Default' => xml_decode($varitem->Value),
|
||||
'Value' => xml_decode($varitem->Value),
|
||||
'Mode' => '',
|
||||
'Description' => 'Container Label: '.xml_decode($varitem->Name),
|
||||
'Description' => '',
|
||||
'Type' => 'Label',
|
||||
'Display' => 'always',
|
||||
'Required' => 'false',
|
||||
|
||||
Reference in New Issue
Block a user