From 689f84ab53a548c949a6b6e4f65195cb3a6a2b38 Mon Sep 17 00:00:00 2001
From: "Joseph.Rawlings"
Date: Wed, 17 Dec 2025 17:40:11 -0500
Subject: [PATCH] Refactor button components to use Proxmox UI library
- Updated button components across various views to utilize the new Proxmox UI button structure.
- Replaced instances of and with for consistency and improved styling.
- Adjusted button attributes and loading states to align with the new component design.
- Ensured that all button functionalities remain intact while enhancing the overall UI consistency.
---
.../Servers/Proxmox/views/backups.blade.php | 52 ++++++-----
.../Proxmox/views/backups/create.blade.php | 14 +--
.../Proxmox/views/boot-order.blade.php | 42 ++++-----
.../Proxmox/views/cloud-init.blade.php | 76 ++++++++--------
.../Proxmox/views/components/layout.blade.php | 48 +++++-----
.../Servers/Proxmox/views/display.blade.php | 10 +--
.../Servers/Proxmox/views/firewall.blade.php | 2 +-
.../Servers/Proxmox/views/network.blade.php | 88 +++++++++----------
.../Servers/Proxmox/views/overview.blade.php | 43 +++++----
.../Servers/Proxmox/views/reinstall.blade.php | 43 +++++----
.../Proxmox/views/statistics.blade.php | 24 ++---
.../Servers/Proxmox/views/subdomain.blade.php | 33 ++++---
.../Servers/Proxmox/views/system.blade.php | 20 ++---
13 files changed, 245 insertions(+), 250 deletions(-)
diff --git a/extensions/Servers/Proxmox/views/backups.blade.php b/extensions/Servers/Proxmox/views/backups.blade.php
index 7221df05d..e9b96a87f 100644
--- a/extensions/Servers/Proxmox/views/backups.blade.php
+++ b/extensions/Servers/Proxmox/views/backups.blade.php
@@ -57,14 +57,20 @@
| {{ date('Y-m-d H:i', $backup->ctime) }} |
-
-
+ volid }}')"
+ variant="secondary"
+ size="sm"
+ icon="ri-checkbox-circle-fill">
+ Restore
+
+
+ Delete
+
|
@@ -90,14 +96,13 @@
-
Cancel
-
-
-
- Restore
-
-
+
+ Cancel
+
+
+ Restore
+ Restoring...
+
@endif
@@ -113,14 +118,13 @@
-
Cancel
-
-
-
- Delete Backup
-
-
+
+ Cancel
+
+
+ Delete Backup
+ Deleting...
+
@endif
diff --git a/extensions/Servers/Proxmox/views/backups/create.blade.php b/extensions/Servers/Proxmox/views/backups/create.blade.php
index d6cfac11b..71ae26509 100644
--- a/extensions/Servers/Proxmox/views/backups/create.blade.php
+++ b/extensions/Servers/Proxmox/views/backups/create.blade.php
@@ -1,11 +1,11 @@
-
+ class="disabled:cursor-not-allowed" variant="primary">
Create Backup
-
+
@if($visible)
@@ -26,15 +26,15 @@
-
Cancel
-
Cancel
+
+ class="disabled:cursor-not-allowed" variant="primary">
Create backup
-
+
@endif
diff --git a/extensions/Servers/Proxmox/views/boot-order.blade.php b/extensions/Servers/Proxmox/views/boot-order.blade.php
index 40b751842..789982051 100644
--- a/extensions/Servers/Proxmox/views/boot-order.blade.php
+++ b/extensions/Servers/Proxmox/views/boot-order.blade.php
@@ -213,12 +213,12 @@
-
+ :disabled="count($cdDrives) >= 2" variant="primary">
Create CD/DVD-ROM Drive
-
+
@endif
@@ -320,22 +320,22 @@
-
+ :disabled="($currentIsos[$drive] ?? 'none') === ($selectedIsos[$drive] ?? 'none')" variant="primary">
Apply
Applying...
-
-
+
+ :disabled="!isset($currentIsos[$drive]) || $currentIsos[$drive] === 'none'" variant="danger">
Eject
Ejecting...
-
+
@@ -424,11 +424,11 @@
-
+ class="w-full sm:w-auto" variant="primary">
Request ISO
-
+
@@ -664,17 +664,17 @@
-
+
Refresh
-
+
-
+
Reset to current
-
+
-
+
Save boot order
-
+
-
+
Cancel
-
-
+
+
Done
-
+
@@ -298,15 +298,15 @@
-
+
Cancel
-
-
+
+
Save
-
-
+
+
Save & Apply
-
+
@@ -372,9 +372,9 @@
@endforelse
-
+
Add Key
-
+
Add as many keys as needed. The platform management key is always kept but never shown.
@@ -398,14 +398,14 @@
placeholder="ssh-ed25519 AAAA... user@host">
-
+
Cancel
-
-
+
+ @click="showAddKeyModal = false" variant="primary">
Add Key
-
+
@@ -566,12 +566,12 @@
Leave fields blank to remove static addressing. If both IPv4 fields are empty, cloud-init omits the IPv4 stanza.
-
+
Cancel
-
-
+
+
Save
-
+
@@ -671,12 +671,12 @@
Leave blank to use system default. Appended to short hostnames for resolution.
-
+
Cancel
-
-
+
+
Done
-
+
@@ -698,9 +698,9 @@
@endforelse
-
+
Add Nameserver
-
+
Entries are applied in order. Add one IPv4/IPv6 resolver per line.
@@ -787,14 +787,14 @@
-
+
Cancel
-
-
+
+ @click="showAddDnsModal = false" variant="primary">
Add Nameserver
-
+
@@ -874,17 +874,17 @@
-
+
Refresh
-
-
+
+
Reset
-
-
+
+
Apply & Regenerate
-
+
diff --git a/extensions/Servers/Proxmox/views/components/layout.blade.php b/extensions/Servers/Proxmox/views/components/layout.blade.php
index 5bae5e700..b5f2eaebc 100644
--- a/extensions/Servers/Proxmox/views/components/layout.blade.php
+++ b/extensions/Servers/Proxmox/views/components/layout.blade.php
@@ -1229,87 +1229,87 @@
-
+ :disabled="$vmStatus !== 'stopped'" variant="primary">
Start
-
+
-
+ :disabled="$vmStatus !== 'running'" variant="secondary">
Stop (ACPI)
-
+
-
+
Power Off
-
+
-
+ :disabled="$vmStatus !== 'stopped'" variant="primary">
Start
-
+
-
+ :disabled="$vmStatus !== 'running'" variant="secondary">
Stop (ACPI)
-
+
-
+ :disabled="$vmStatus !== 'running'" variant="danger">
Power Off
-
+
diff --git a/extensions/Servers/Proxmox/views/display.blade.php b/extensions/Servers/Proxmox/views/display.blade.php
index 589a75654..7b6f39ee4 100644
--- a/extensions/Servers/Proxmox/views/display.blade.php
+++ b/extensions/Servers/Proxmox/views/display.blade.php
@@ -204,16 +204,14 @@
-
-
+
Save Display Settings
Saving...
-
-
-
+
+
Refresh
Refreshing...
-
+
Changes are applied to the VM configuration immediately but require a restart to take effect.
diff --git a/extensions/Servers/Proxmox/views/firewall.blade.php b/extensions/Servers/Proxmox/views/firewall.blade.php
index 07cbc94d8..11e402e58 100644
--- a/extensions/Servers/Proxmox/views/firewall.blade.php
+++ b/extensions/Servers/Proxmox/views/firewall.blade.php
@@ -116,7 +116,7 @@
wire:click="toggleFirewall"
wire:loading.attr="disabled"
variant="danger"
- icon="ri-shield-off-line">
+ icon="ri-shield-cross-line">
Disable
Disabling...
diff --git a/extensions/Servers/Proxmox/views/network.blade.php b/extensions/Servers/Proxmox/views/network.blade.php
index abcb8ab86..f025fbfe5 100644
--- a/extensions/Servers/Proxmox/views/network.blade.php
+++ b/extensions/Servers/Proxmox/views/network.blade.php
@@ -280,26 +280,26 @@
-
+
Add Device
Adding...
-
-
+
+
Refresh Interfaces
Refreshing...
-
-
+
+
Save Interface Type
Saving...
-
+
VirtIO provides the best performance; legacy adapters (E1000, Realtek, PCnet, VMware) improve compatibility.
@@ -434,37 +434,37 @@
@if($isIpv6)
-
+ class="text-xs" variant="primary">
Ping
-
-
+
+ class="text-xs" variant="primary">
MTR
-
-
+
+ class="text-xs" variant="primary">
BGP
-
+
@else
-
+ class="text-xs" variant="primary">
Ping
-
-
+
+ class="text-xs" variant="primary">
MTR
-
-
+
+ class="text-xs" variant="primary">
BGP
-
+
@endif
@@ -724,37 +724,37 @@
@if($isIpv6)
-
+ class="text-xs" variant="primary">
Ping
-
-
+
+ class="text-xs" variant="primary">
MTR
-
-
+
+ class="text-xs" variant="primary">
BGP
-
+
@else
-
+ class="text-xs" variant="primary">
Ping
-
-
+
+ class="text-xs" variant="primary">
MTR
-
-
+
+ class="text-xs" variant="primary">
BGP
-
+
@endif
diff --git a/extensions/Servers/Proxmox/views/overview.blade.php b/extensions/Servers/Proxmox/views/overview.blade.php
index 65c5942a5..fe53487ef 100644
--- a/extensions/Servers/Proxmox/views/overview.blade.php
+++ b/extensions/Servers/Proxmox/views/overview.blade.php
@@ -429,15 +429,15 @@
-
+
Cancel
-
-
+
+
Save
-
-
+
+
Save & Apply
-
+
@@ -590,15 +590,15 @@
-
+
Cancel
-
-
+
+
Save
-
-
+
+
Save & Apply
-
+
@@ -847,7 +847,7 @@
No notes available to export.
- Close
+ Close
@@ -862,12 +862,11 @@
{{ $notesError }}
@endif
-
-
- Save
- Saving...
-
-
Cancel
+
+ Save
+ Saving...
+
+
Cancel
@else
@@ -883,9 +882,9 @@
@endif
-
- Edit
-
+
+ Edit
+
@endif
diff --git a/extensions/Servers/Proxmox/views/reinstall.blade.php b/extensions/Servers/Proxmox/views/reinstall.blade.php
index d8e9f0a0a..aed1ff37d 100644
--- a/extensions/Servers/Proxmox/views/reinstall.blade.php
+++ b/extensions/Servers/Proxmox/views/reinstall.blade.php
@@ -108,16 +108,17 @@
}
}">
@if($isProtected)
-
Reinstall
-
+
@else
-
+
Reinstall
-
+
@endif
@@ -231,34 +232,30 @@
-
Cancel
+
+ Cancel
+
@if($isProtected)
-
-
- Reinstall
-
+ title="Reinstall is disabled: This server is protected in Proxmox">
+
Reinstall
+
Reinstalling...
+
@else
-
-
- Reinstall
-
+ :title="!$os ? 'Please select an operating system' : (!$confirmReinstall ? 'Please confirm the reinstallation' : 'Reinstall server')">
+
Reinstall
+
Reinstalling...
+
@endif
diff --git a/extensions/Servers/Proxmox/views/statistics.blade.php b/extensions/Servers/Proxmox/views/statistics.blade.php
index b35e3acec..88a5d7d21 100644
--- a/extensions/Servers/Proxmox/views/statistics.blade.php
+++ b/extensions/Servers/Proxmox/views/statistics.blade.php
@@ -601,7 +601,7 @@
-
+
@@ -610,7 +610,7 @@
Creating...
-
+
@@ -3817,10 +3817,10 @@
This cannot be undone.
-
+
Cancel
-
-
+
+
Clear History
@@ -3828,7 +3828,7 @@
Clearing...
-
+
@@ -3874,9 +3874,9 @@
{{ $exportInfoMessage }}
-
+
Close
-
+
diff --git a/extensions/Servers/Proxmox/views/subdomain.blade.php b/extensions/Servers/Proxmox/views/subdomain.blade.php
index f78667994..84db9aa27 100644
--- a/extensions/Servers/Proxmox/views/subdomain.blade.php
+++ b/extensions/Servers/Proxmox/views/subdomain.blade.php
@@ -155,10 +155,9 @@
-
-
+
Create Subdomain
-
+
@if(count($this->availableIpsForSubdomain) === 0)
All available public IP addresses already have subdomains assigned.
@@ -255,10 +254,9 @@
@endif
-
-
+
Delete
-
+
@@ -314,12 +312,11 @@
- Cancel
-
-
+ Cancel
+
Create
Creating...
-
+
@@ -380,11 +377,11 @@
-
+
Add Record
Adding...
-
+
@@ -413,10 +410,10 @@
{{ $record['rdata'] ?? $record['ipAddress'] ?? '' }} |
{{ $record['ttl'] ?? 3600 }} |
-
+
-
+
|
@endforeach
@@ -447,12 +444,12 @@
- Cancel
-
+ Cancel
+
Delete
Deleting...
-
+
diff --git a/extensions/Servers/Proxmox/views/system.blade.php b/extensions/Servers/Proxmox/views/system.blade.php
index 6c7ac59c3..b3390cfca 100644
--- a/extensions/Servers/Proxmox/views/system.blade.php
+++ b/extensions/Servers/Proxmox/views/system.blade.php
@@ -416,10 +416,10 @@
Pre-enroll Secure Boot keys during EFI disk creation. Enables Secure Boot by default. Useful for UEFI guests requiring Secure Boot support.
-
+
Add EFI Disk
-
+
@endif
@@ -530,10 +530,10 @@
-
+
Add TPM Device
-
+
@endif
@@ -541,17 +541,17 @@
-
+
Refresh
-
-
+
+
Reset
-
-
+
+
Save Settings
-
+