diff --git a/cp/app/Controllers/HostsController.php b/cp/app/Controllers/HostsController.php index 1f609d6..6111624 100644 --- a/cp/app/Controllers/HostsController.php +++ b/cp/app/Controllers/HostsController.php @@ -329,13 +329,11 @@ class HostsController extends Controller if (!$internal_host) { $host = $db->selectRow('SELECT id, name, clid, crdate FROM host WHERE name = ?', [ $args ]); - + if ($host) { - return view($response,'admin/hosts/updateInternalHost.twig', [ - 'host' => $host, - 'currentUri' => $uri - ]); - + $this->container->get('flash')->addMessage('info', $host['name'].' is an external host, not managed by the registry. No action needed'); + return $response->withHeader('Location', '/hosts')->withStatus(302); + } else { // Host does not exist, redirect to the hosts view return $response->withHeader('Location', '/hosts')->withStatus(302); diff --git a/cp/resources/views/admin/contacts/createContact.twig b/cp/resources/views/admin/contacts/createContact.twig index 41ea908..5f832bf 100644 --- a/cp/resources/views/admin/contacts/createContact.twig +++ b/cp/resources/views/admin/contacts/createContact.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Create Contact') }} diff --git a/cp/resources/views/admin/contacts/listContacts.twig b/cp/resources/views/admin/contacts/listContacts.twig index ebc0e9f..e198e9e 100644 --- a/cp/resources/views/admin/contacts/listContacts.twig +++ b/cp/resources/views/admin/contacts/listContacts.twig @@ -9,9 +9,15 @@
- -
- {{ __('Overview') }} +
+

{{ __('Contacts') }} diff --git a/cp/resources/views/admin/contacts/updateContact.twig b/cp/resources/views/admin/contacts/updateContact.twig index 0e476c8..86fd917 100644 --- a/cp/resources/views/admin/contacts/updateContact.twig +++ b/cp/resources/views/admin/contacts/updateContact.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Update Contact') }} {{ contact.identifier }} diff --git a/cp/resources/views/admin/contacts/validateContact.twig b/cp/resources/views/admin/contacts/validateContact.twig index 6405939..c7684bf 100644 --- a/cp/resources/views/admin/contacts/validateContact.twig +++ b/cp/resources/views/admin/contacts/validateContact.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Contact Validation') }} diff --git a/cp/resources/views/admin/contacts/viewContact.twig b/cp/resources/views/admin/contacts/viewContact.twig index 55bec40..125015f 100644 --- a/cp/resources/views/admin/contacts/viewContact.twig +++ b/cp/resources/views/admin/contacts/viewContact.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Contact Details') }} diff --git a/cp/resources/views/admin/hosts/createHost.twig b/cp/resources/views/admin/hosts/createHost.twig index fcb1c44..12c5e98 100644 --- a/cp/resources/views/admin/hosts/createHost.twig +++ b/cp/resources/views/admin/hosts/createHost.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Create Host') }} diff --git a/cp/resources/views/admin/hosts/listHosts.twig b/cp/resources/views/admin/hosts/listHosts.twig index b65d28e..deb8668 100644 --- a/cp/resources/views/admin/hosts/listHosts.twig +++ b/cp/resources/views/admin/hosts/listHosts.twig @@ -9,9 +9,15 @@
- -
- {{ __('Overview') }} +
+

{{ __('Hosts') }} diff --git a/cp/resources/views/admin/hosts/updateHost.twig b/cp/resources/views/admin/hosts/updateHost.twig index 85a1892..49d38f9 100644 --- a/cp/resources/views/admin/hosts/updateHost.twig +++ b/cp/resources/views/admin/hosts/updateHost.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Update Host') }} {{ host.name }} diff --git a/cp/resources/views/admin/hosts/updateInternalHost.twig b/cp/resources/views/admin/hosts/updateInternalHost.twig deleted file mode 100644 index b5b6bed..0000000 --- a/cp/resources/views/admin/hosts/updateInternalHost.twig +++ /dev/null @@ -1,44 +0,0 @@ -{% extends "layouts/app.twig" %} - -{% block title %}{{ __('Update Host') }} {{ host.name }}{% endblock %} - -{% block content %} -
- - - -
-
-
-
-
- -
-
-
-
- {% include 'partials/footer.twig' %} -
-{% endblock %} \ No newline at end of file diff --git a/cp/resources/views/admin/hosts/viewHost.twig b/cp/resources/views/admin/hosts/viewHost.twig index 7bd053a..651f94b 100644 --- a/cp/resources/views/admin/hosts/viewHost.twig +++ b/cp/resources/views/admin/hosts/viewHost.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Host Details') }} diff --git a/cp/resources/views/admin/registrars/create.twig b/cp/resources/views/admin/registrars/create.twig index 9c53f34..f1de881 100644 --- a/cp/resources/views/admin/registrars/create.twig +++ b/cp/resources/views/admin/registrars/create.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Create Registrar') }} diff --git a/cp/resources/views/admin/registrars/customPricing.twig b/cp/resources/views/admin/registrars/customPricing.twig index 3cd3345..e709d72 100644 --- a/cp/resources/views/admin/registrars/customPricing.twig +++ b/cp/resources/views/admin/registrars/customPricing.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Manage Custom Pricing') }} diff --git a/cp/resources/views/admin/registrars/index.twig b/cp/resources/views/admin/registrars/index.twig index 9b5f0b5..60d669a 100644 --- a/cp/resources/views/admin/registrars/index.twig +++ b/cp/resources/views/admin/registrars/index.twig @@ -9,9 +9,15 @@
- -
- {{ __('Overview') }} +
+

{{ __('Registrars') }} diff --git a/cp/resources/views/admin/registrars/notifyRegistrars.twig b/cp/resources/views/admin/registrars/notifyRegistrars.twig index 03f2eef..bb451f1 100644 --- a/cp/resources/views/admin/registrars/notifyRegistrars.twig +++ b/cp/resources/views/admin/registrars/notifyRegistrars.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Notify Registrars') }} diff --git a/cp/resources/views/admin/registrars/transferRegistrar.twig b/cp/resources/views/admin/registrars/transferRegistrar.twig index e2a7696..cfb2bf2 100644 --- a/cp/resources/views/admin/registrars/transferRegistrar.twig +++ b/cp/resources/views/admin/registrars/transferRegistrar.twig @@ -9,9 +9,21 @@
- -
- {{ __('Overview') }} +
+

{{ __('Registrar Transfer') }} diff --git a/cp/resources/views/admin/registrars/updateRegistrar.twig b/cp/resources/views/admin/registrars/updateRegistrar.twig index ac8a8fb..8cdac2a 100644 --- a/cp/resources/views/admin/registrars/updateRegistrar.twig +++ b/cp/resources/views/admin/registrars/updateRegistrar.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Update Registrar') }} {{ registrar.name }} @@ -36,7 +45,7 @@
- + {{ __('The official name of the registrar.') }}
@@ -46,7 +55,7 @@
- + {{ __('Primary contact email of the registrar.') }}
@@ -69,8 +78,8 @@ {{ __('Address of the registrar\'s RDAP server.') }}
- - + + {{ __('Email address for reporting abuse.') }}
@@ -91,7 +100,7 @@
- +
{{ __('Account Balance') }}
{{ registrar.currency }} {{ registrar.accountBalance }}
{{ __('Current balance in the registrar\'s account.') }}
@@ -125,7 +134,7 @@ {{ __('Choose the currency for all registrar transactions.') }}
- +
{{ __('Threshold Type') }}
{{ registrar.thresholdType|slice(0, 1)|upper ~ registrar.thresholdType|slice(1) }}
{{ __('Type of threshold: fixed value or percentage.') }}
@@ -134,12 +143,12 @@
- +
{{ __('Company Number') }}
{{ registrar.companyNumber|default('N/A') }}
{{ __('Official registration number provided by the relevant authority.') }}
- +
{{ __('VAT Number') }}
{{ registrar.vatNumber|default('N/A') }}
{{ __('VAT number for tax purposes, if registered for VAT.') }}
diff --git a/cp/resources/views/admin/registrars/updateRegistrarUser.twig b/cp/resources/views/admin/registrars/updateRegistrarUser.twig index 5e92a11..eb4f5a2 100644 --- a/cp/resources/views/admin/registrars/updateRegistrarUser.twig +++ b/cp/resources/views/admin/registrars/updateRegistrarUser.twig @@ -9,9 +9,15 @@
- -
- {{ __('Overview') }} +
+

{{ __('Update Registrar') }} {{ registrar.name }} @@ -36,7 +42,7 @@
- + {{ __('The official name of the registrar.') }}
@@ -46,7 +52,7 @@
- + {{ __('Primary contact email of the registrar.') }}
@@ -69,8 +75,8 @@ {{ __('Address of the registrar\'s RDAP server.') }}
- - + + {{ __('Email address for reporting abuse.') }}
@@ -91,12 +97,12 @@
- +
{{ __('Account Balance') }}
{{ registrar.currency }} {{ registrar.accountBalance }}
{{ __('Current balance in the registrar\'s account.') }}
- +
{{ __('Credit Limit') }}
{{ registrar.currency }} {{ registrar.creditLimit }}
{{ __('Maximum credit limit for the registrar.') }}
@@ -105,12 +111,12 @@
- +
{{ __('Credit Threshold') }}
{{ registrar.currency }} {{ registrar.creditThreshold }}
{{ __('Credit threshold triggering alerts or actions.') }}
- +
{{ __('Threshold Type') }}
{{ registrar.thresholdType|slice(0, 1)|upper ~ registrar.thresholdType|slice(1) }}
{{ __('Type of threshold: fixed value or percentage.') }}
@@ -119,12 +125,12 @@
- +
{{ __('Company Number') }}
{{ registrar.companyNumber|default('N/A') }}
{{ __('Official registration number provided by the relevant authority.') }}
- +
{{ __('VAT Number') }}
{{ registrar.vatNumber|default('N/A') }}
{{ __('VAT number for tax purposes, if registered for VAT.') }}
diff --git a/cp/resources/views/admin/registrars/viewRegistrar.twig b/cp/resources/views/admin/registrars/viewRegistrar.twig index 8d53c12..16e0e8a 100644 --- a/cp/resources/views/admin/registrars/viewRegistrar.twig +++ b/cp/resources/views/admin/registrars/viewRegistrar.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Registrar Details') }} diff --git a/cp/resources/views/admin/users/createUser.twig b/cp/resources/views/admin/users/createUser.twig index 9b7eadb..379708e 100644 --- a/cp/resources/views/admin/users/createUser.twig +++ b/cp/resources/views/admin/users/createUser.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Create New User') }} diff --git a/cp/resources/views/admin/users/listUsers.twig b/cp/resources/views/admin/users/listUsers.twig index ae52211..c59a339 100644 --- a/cp/resources/views/admin/users/listUsers.twig +++ b/cp/resources/views/admin/users/listUsers.twig @@ -9,9 +9,15 @@
- -
- {{ __('Overview') }} +
+

{{ __('List Users') }} diff --git a/cp/resources/views/admin/users/updateUser.twig b/cp/resources/views/admin/users/updateUser.twig index 90fa1d1..84ee65f 100644 --- a/cp/resources/views/admin/users/updateUser.twig +++ b/cp/resources/views/admin/users/updateUser.twig @@ -9,9 +9,18 @@
- -
- {{ __('Overview') }} +
+

{{ __('Update User') }}