mirror of
https://github.com/The-Network-Crew/Proxmox-VE-for-WHMCS.git
synced 2026-04-02 02:28:18 +00:00
Guest Plan & PVE GUI button formatting
This commit is contained in:
@@ -40,6 +40,7 @@ function pvewhmcs_MetaData() {
|
||||
return array(
|
||||
'DisplayName' => 'Proxmox VE',
|
||||
'APIVersion' => '1.1',
|
||||
'RequiresServer' => 'true',
|
||||
);
|
||||
}
|
||||
|
||||
@@ -55,10 +56,8 @@ function pvewhmcs_AdminLink(array $params) {
|
||||
}
|
||||
|
||||
$url = 'https://' . $host . ':8006';
|
||||
$text = htmlspecialchars($host, ENT_QUOTES, 'UTF-8');
|
||||
|
||||
return '<form action="' . htmlspecialchars($url, ENT_QUOTES, 'UTF-8') . '" method="get" target="_blank">
|
||||
<input type="submit" value="' . $text . '" class="btn btn-sm btn-default" />
|
||||
<input type="submit" value="Log in to PVE" class="btn btn-sm btn-default" />
|
||||
</form>';
|
||||
}
|
||||
|
||||
@@ -69,12 +68,12 @@ function pvewhmcs_ConfigOptions() {
|
||||
|
||||
// Retrieve Plans
|
||||
foreach (Capsule::table('mod_pvewhmcs_plans')->get() as $plan) {
|
||||
$plans[$plan->id]=$plan->vmtype.' : '.$plan->title ;
|
||||
$plans[$plan->id] = '(' . $plan->vmtype . ') ' . $plan->title ;
|
||||
}
|
||||
|
||||
// Retrieve IP Pools
|
||||
foreach (Capsule::table('mod_pvewhmcs_ip_pools')->get() as $ippool) {
|
||||
$ippools[$ippool->id]=$ippool->title ;
|
||||
$ippools[$ippool->id] = $ippool->title ;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user