diff --git a/cp/app/Controllers/DomainsController.php b/cp/app/Controllers/DomainsController.php index 060f7f1..87991dd 100644 --- a/cp/app/Controllers/DomainsController.php +++ b/cp/app/Controllers/DomainsController.php @@ -1848,10 +1848,21 @@ class DomainsController extends Controller //} } - + public function listTransfers(Request $request, Response $response) { - return view($response,'admin/domains/listTransfers.twig'); + $db = $this->container->get('db'); + $result = $db->selectRow('SELECT registrar_id FROM registrar_users WHERE user_id = ?', [$_SESSION['auth_user_id']]); + + if ($_SESSION["auth_roles"] != 0) { + $clid = $result['registrar_id']; + } else { + $clid = 0; + } + + return view($response,'admin/domains/listTransfers.twig', [ + 'clid' => $clid + ]); } public function requestTransfer(Request $request, Response $response) diff --git a/cp/resources/views/admin/domains/listTransfers.twig b/cp/resources/views/admin/domains/listTransfers.twig index 037fde5..0e0f8a0 100644 --- a/cp/resources/views/admin/domains/listTransfers.twig +++ b/cp/resources/views/admin/domains/listTransfers.twig @@ -54,7 +54,7 @@
-
+
diff --git a/cp/resources/views/partials/js-domains.twig b/cp/resources/views/partials/js-domains.twig index 89938c2..4bcd289 100644 --- a/cp/resources/views/partials/js-domains.twig +++ b/cp/resources/views/partials/js-domains.twig @@ -20,14 +20,14 @@ var hasPendingRestore = rowData.rgpstatus ? rowData.rgpstatus.includes('pendingRestore') : false; // Common action button for all statuses - actionButtons += ` `; + actionButtons += ` `; if (hasPendingRestore) { - actionButtons += ``; + actionButtons += ``; } else if (hasPendingDelete) { - actionButtons += ``; + actionButtons += ``; } else { - actionButtons += ` `; + actionButtons += ` `; actionButtons += ``; } diff --git a/cp/resources/views/partials/js-transfers.twig b/cp/resources/views/partials/js-transfers.twig index 317f4aa..88c5369 100644 --- a/cp/resources/views/partials/js-transfers.twig +++ b/cp/resources/views/partials/js-transfers.twig @@ -5,27 +5,59 @@