update menus VM

This commit is contained in:
MacRimi 2025-05-07 22:08:37 +02:00
parent 1149ce8ad8
commit fc0fbf6e9c
3 changed files with 13 additions and 13 deletions

View File

@ -78,7 +78,7 @@ function start_vm_configuration() {
while true; do
OS_TYPE=$(dialog --backtitle "ProxMenux" \
--title "$(translate "Select System Type")" \
--menu "\n$(translate "Choose the type of virtual system to install:")" 18 70 8 \
--menu "\n$(translate "Choose the type of virtual system to install:")" 18 70 10 \
1 "$(translate "Create") VM System NAS" \
2 "$(translate "Create") VM System Windows" \
3 "$(translate "Create") VM System Linux" \

View File

@ -102,18 +102,18 @@ function select_linux_iso_official() {
INDEX=0
for entry in "${DISTROS[@]}"; do
IFS='|' read -r NAME TYPE SOURCE URL <<< "$entry"
LINE=$(printf "%-40s │ %-10s │ %s" "$NAME" "$TYPE" "$SOURCE")
LINE=$(printf "%-30s │ %-10s │ %s" "$NAME" "$TYPE" "$SOURCE")
MENU_OPTIONS+=("$INDEX" "$LINE")
URLS[$INDEX]="$entry"
((INDEX++))
done
HEADER="%-42s │ %-10s │ %s"
HEADER_TEXT=$(printf "$HEADER" "Distribution" "Type" "Source")
HEADER_TEXT=$(printf "$HEADER" " Distribution" "Type" "Source")
CHOICE=$(dialog --backtitle "ProxMenux" \
--title "$(translate "Official Linux Distributions")" \
--menu "$(translate "Select the Linux distribution to install:")\n\n$HEADER_TEXT" 20 90 12 \
--menu "$(translate "Select the Linux distribution to install:")\n\n$HEADER_TEXT" 20 80 12 \
"${MENU_OPTIONS[@]}" \
3>&1 1>&2 2>&3)
@ -149,7 +149,7 @@ function select_linux_cloudinit() {
local script_selection
script_selection=$(dialog --backtitle "ProxMenux" --title "$(translate "Cloud-Init Automated Installers")" \
--menu "$(translate "Select a pre-configured Linux VM script to execute:")" 20 78 10 \
--menu "\n$(translate "Select a pre-configured Linux VM script to execute:")" 20 78 10 \
"${CLOUDINIT_OPTIONS[@]}" 3>&1 1>&2 2>&3)
[[ $? -ne 0 ]] && return
@ -228,7 +228,7 @@ function select_linux_other_scripts() {
local choice
choice=$(dialog --backtitle "ProxMenux" \
--title "$(translate "Other Prebuilt Linux VMs")" \
--menu "$(translate "Select one of the ready-to-run Linux VMs:")" 18 78 10 \
--menu "\n$(translate "Select one of the ready-to-run Linux VMs:")" 18 78 10 \
"${OTHER_OPTIONS[@]}" 3>&1 1>&2 2>&3)
[[ $? -ne 0 ]] && return

View File

@ -31,7 +31,7 @@ function select_windows_iso() {
--backtitle "ProxMenux" \
--title "Opciones de instalación de Windows" \
--menu "\nSeleccione el tipo de instalación de Windows:\n\n$header" \
20 70 10 \
18 70 10 \
1 "$(printf '%-34s│ %s' 'Instalar con ISO UUP Dump' 'UUP Dump ISO creator')" \
2 "$(printf '%-34s│ %s' 'Instalar con ISO personal' 'Almacenamiento local')" \
3 "Volver al menú principal" \
@ -45,7 +45,7 @@ function select_windows_iso() {
--backtitle "ProxMenux" \
--title "$(translate "Windows Installation Options")" \
--menu "\n$(translate "Select the type of Windows installation:")\n\n$header" \
16 70 10 \
18 70 10 \
1 "$(printf '%-35s│ %s' "$desc1" "UUP Dump creator")" \
2 "$(printf '%-35s│ %s' "$desc2" "Local Storage")" \
3 "$back" \