From 4c415aac5caa26effafa82aaa92a91625b30c1f8 Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Tue, 15 Jul 2014 16:16:11 +0200 Subject: [PATCH] Make contacts' view look more like contactgroups' view --- .../views/scripts/list/contacts.phtml | 50 +++++++++++-------- 1 file changed, 28 insertions(+), 22 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/contacts.phtml b/modules/monitoring/application/views/scripts/list/contacts.phtml index 4d3ee0a55..0eb56f37c 100644 --- a/modules/monitoring/application/views/scripts/list/contacts.phtml +++ b/modules/monitoring/application/views/scripts/list/contacts.phtml @@ -5,31 +5,37 @@ $contactHelper = $this->getHelper('ContactFlags');
tabs ?>
- sortControl->render($this); ?> + sortControl->render($this); ?>
- paginationControl($contacts, null, null, array('preserve' => $this->preserve)); ?> + paginationControl($contacts, null, null, array('preserve' => $this->preserve)); ?>
- - + href('monitoring/show/contacts', array('contact' => $contact->contact_name)); ?> +
+ + contact_name ?> (contact_alias ?>) href('monitoring/show/contacts', array('contact' => $contact->contact_name)); ?> -
- - - - - - - - - - - -
contact_name ?>contact_alias ?>contact_email ?>contact_pager ?>contactFlags($contact, 'service') ?>contactFlags($contact, 'host') ?>contact_notify_service_timeperiod ?>contact_notify_host_timeperiod ?>
+ foreach (array( + $contact->contact_email => 'eMail: %1$s', + $contact->contact_pager => 'Pager: %s', + $contact->contact_notify_service_timeperiod => 'Service notification period: %s', + $contact->contact_notify_host_timeperiod => 'Host notification period: %s' + ) as $value => $format): + if ($value): ?> +
+ +
+
+