diff --git a/cp/app/Controllers/UsersController.php b/cp/app/Controllers/UsersController.php index eeb8f4b..9d79c83 100644 --- a/cp/app/Controllers/UsersController.php +++ b/cp/app/Controllers/UsersController.php @@ -9,10 +9,10 @@ use Psr\Container\ContainerInterface; class UsersController extends Controller { - public function view(Request $request, Response $response) + public function listUsers(Request $request, Response $response) { $userModel = new User($this->container->get('db')); $users = $userModel->getAllUsers(); - return view($response,'admin/users/index.twig', compact('users')); + return view($response,'admin/users/listUsers.twig', compact('users')); } } \ 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 7c4bb83..614b16e 100644 --- a/cp/resources/views/admin/hosts/viewHost.twig +++ b/cp/resources/views/admin/hosts/viewHost.twig @@ -27,22 +27,31 @@

{{ host.name }} {{ hostStatus.status }}{% if hostLinked is not null %} linked{% endif %}

-
IPv4
-
{% for ipv4 in hostIPv4 %} - {{ ipv4.addr }}{% if not loop.last %}, {% endif %} - {% endfor %} +
+ {% if hostIPv4 is empty %} + N/A + {% else %} + {% for ipv4 in hostIPv4 %} + {{ ipv4.addr }}{% if not loop.last %}, {% endif %} + {% endfor %} + {% endif %}
IPv6
-
{% for ipv6 in hostIPv6 %} - {{ ipv6.addr }}{% if not loop.last %}, {% endif %} - {% endfor %} +
+ {% if hostIPv6 is empty %} + N/A + {% else %} + {% for ipv6 in hostIPv6 %} + {{ ipv6.addr }}{% if not loop.last %}, {% endif %} + {% endfor %} + {% endif %}
diff --git a/cp/resources/views/admin/registrars/index.twig b/cp/resources/views/admin/registrars/index.twig index d0f5757..8afb7ea 100644 --- a/cp/resources/views/admin/registrars/index.twig +++ b/cp/resources/views/admin/registrars/index.twig @@ -36,6 +36,7 @@
+ {% include 'partials/flash.twig' %}
diff --git a/cp/resources/views/admin/registrars/updateRegistrar.twig b/cp/resources/views/admin/registrars/updateRegistrar.twig new file mode 100644 index 0000000..e6f70c8 --- /dev/null +++ b/cp/resources/views/admin/registrars/updateRegistrar.twig @@ -0,0 +1,562 @@ +{% extends "layouts/app.twig" %} + +{% block title %}{{ __('Update Registrar') }} {{ registrar.name }}{% endblock %} + +{% block content %} +
+ + + +
+
+
+ {% include 'partials/flash.twig' %} +
+ {{ csrf.field | raw }} + +
+
+
Registrar Details
+
+ +
+
+ + + The official name of the registrar. +
+
+ + + Unique identifier assigned by IANA. +
+
+ + + Primary contact email of the registrar. +
+
+ + + Registrar's official website URL. +
+
+ + +
+
+ + + Address of the registrar's WHOIS server. +
+
+ + + Address of the registrar's RDAP server. +
+
+ + + Email address for reporting abuse. +
+
+ + + Phone number for reporting abuse. +
+
+
+
+
+ + +
+
+
Financial Information
+
+ +
+
+ +
{{ registrar.accountBalance }}
+ Current balance in the registrar's account. +
+
+ + + Maximum credit limit for the registrar. +
+
+ + +
+
+ + + Credit threshold triggering alerts or actions. +
+
+ +
{{ registrar.thresholdType|slice(0, 1)|upper ~ registrar.thresholdType|slice(1) }}
+ Type of threshold: fixed value or percentage. +
+
+
+
+
+ + +
+
+
Registrar Contacts
+ + +
+ +
+
+
+ + +
+
+ {% for contact in contacts %} + {% if contact.type == 'owner' %} + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ {% endif %} + {% endfor %} +
+
+
+ + +
+
+
+ {% for contact in contacts %} + {% if contact.type == 'billing' %} + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ {% endif %} + {% endfor %} +
+
+
+ + +
+
+
+ {% for contact in contacts %} + {% if contact.type == 'abuse' %} + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ {% endif %} + {% endfor %} +
+
+
+
+
+
+ +
+ +
+
+
+
IP Whitelisting
+

+ Whitelist IP addresses for secure access. Up to 5 IP addresses (IPv4 or IPv6) can be added. +

+
+
+ {% for ip in whitelist %} +
+ + +
+ {% endfor %} + + {% if whitelist|length < 5 %} +
+ + +
+ {% endif %} +
+
+
+
+
+ + +
+
+
+
Registrar User
+

+ For an existing registrar user, you can view the current EPP username (also known as CLID) and panel access email. Additionally, you have the option to reset the passwords for EPP and panel access as needed. +

+
+ + + + + + + + + + + + + + + + + +
Username/CLIDLogin EmailPanel Password *EPP Password *
+ {{ registrar.clid }} + + {{ user.email ? user.email : 'N/A' }} + + + + +
+
+
+
+
+
+ + +
+
+
Operational Test and Evaluation (OTE)
+

+ Operational Test and Evaluation (OTE) assesses the functionality of EPP commands in a simulated environment, ensuring effective communication between the registrar's system and the registry. Below are key EPP commands and their test statuses: +

+
+ +
+
    +
  • + contact:create + Pending +
  • +
  • + domain:check + Pending +
  • +
  • + domain:info + Pending +
  • +
  • + domain:renew + Pending +
  • +
  • + domain:transfer + Pending +
  • +
+
+ + +
+
    +
  • + host:create + Pending +
  • +
  • + host:info + Pending +
  • +
  • + contact:update + Pending +
  • +
  • + domain:delete + Pending +
  • +
  • + poll:request + Pending +
  • +
+
+
+
+ +
+
+
+
+
+
+
+
+
    +
  • + Copyright © 2023 + Namingo. +
  • +
+
+
+
+ +
+ +{% endblock %} \ No newline at end of file diff --git a/cp/resources/views/admin/users/index.twig b/cp/resources/views/admin/users/listUsers.twig similarity index 98% rename from cp/resources/views/admin/users/index.twig rename to cp/resources/views/admin/users/listUsers.twig index 0e6bc23..f74800d 100644 --- a/cp/resources/views/admin/users/index.twig +++ b/cp/resources/views/admin/users/listUsers.twig @@ -1,6 +1,6 @@ {% extends "layouts/app.twig" %} -{% block title %}{{ __('Users') }}{% endblock %} +{% block title %}{{ __('List Users') }}{% endblock %} {% block content %}
diff --git a/cp/resources/views/layouts/app.twig b/cp/resources/views/layouts/app.twig index 99ed8eb..3237341 100644 --- a/cp/resources/views/layouts/app.twig +++ b/cp/resources/views/layouts/app.twig @@ -144,7 +144,7 @@
-
  • +
  • - + {{ __('List Users') }}
  • diff --git a/cp/resources/views/partials/js-registrars.twig b/cp/resources/views/partials/js-registrars.twig index ecd172e..2624105 100644 --- a/cp/resources/views/partials/js-registrars.twig +++ b/cp/resources/views/partials/js-registrars.twig @@ -4,14 +4,7 @@