diff --git a/cp/app/Controllers/ContactsController.php b/cp/app/Controllers/ContactsController.php index 487a924..20d2344 100644 --- a/cp/app/Controllers/ContactsController.php +++ b/cp/app/Controllers/ContactsController.php @@ -390,7 +390,7 @@ class ContactsController extends Controller return $response->withHeader('Location', '/contacts')->withStatus(302); } - $contact = $db->selectRow('SELECT id, identifier, voice, fax, email, nin, nin_type, crdate, clid, disclose_voice, disclose_fax, disclose_email FROM contact WHERE identifier = ?', + $contact = $db->selectRow('SELECT id, identifier, voice, fax, email, nin, nin_type, crdate, lastupdate, clid, disclose_voice, disclose_fax, disclose_email FROM contact WHERE identifier = ?', [ $args ]); if ($contact) { diff --git a/cp/resources/views/admin/contacts/viewContact.twig b/cp/resources/views/admin/contacts/viewContact.twig index 7d1a2c4..74add3b 100644 --- a/cp/resources/views/admin/contacts/viewContact.twig +++ b/cp/resources/views/admin/contacts/viewContact.twig @@ -51,10 +51,28 @@
{{ __('Phone') }}
{{ contact.voice }} {% if contact.disclose_voice == '1' %}{{ __('Visible in Public') }}{% else %}{{ __('Hidden from Public') }}{% endif %}
+
+
{{ __('Fax') }}
+
{{ contact.fax|default('N/A') }}
+
+
+
{{ __('NIN') }}
+
{{ contact.nin|default('N/A') }} {% if contact.nin_type == 'business' %}{{ __('Business') }}{% endif %}
+
{{ __('Creation Date') }}
{{ contact.crdate }}
+
+
{{ __('Last Updated') }}
+
{{ contact.lastupdate }}
+
+
+
{{ __('Auth Info') }}
+
+ {{ contactAuth.authinfo }} +
+
{{ __('Registrar') }}
{{ registrars.name }}
@@ -244,4 +262,21 @@
{% include 'partials/footer.twig' %} + + {% endblock %} \ No newline at end of file