From d021ddebee50e5701a0a0ba7ebab3d073984d3eb Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Tue, 15 Jul 2014 10:46:13 +0200 Subject: [PATCH] Make contacts' view work like the downtimes' one fixes #6513 --- .../views/scripts/list/contacts.phtml | 55 ++++++------------- 1 file changed, 18 insertions(+), 37 deletions(-) diff --git a/modules/monitoring/application/views/scripts/list/contacts.phtml b/modules/monitoring/application/views/scripts/list/contacts.phtml index c2dfcd3ce..4d3ee0a55 100644 --- a/modules/monitoring/application/views/scripts/list/contacts.phtml +++ b/modules/monitoring/application/views/scripts/list/contacts.phtml @@ -2,53 +2,34 @@ $viewHelper = $this->getHelper('MonitoringState'); $contactHelper = $this->getHelper('ContactFlags'); ?> -
-
-

Contacts

-
-
- tabs->render($this); ?> -
-
-
- -
- -
-
- sortControl->render($this); ?> -
-
- -
- paginationControl($contacts, null, null, array('preserve' => $this->preserve)); ?> -
+
+ tabs ?> +
+ sortControl->render($this); ?>
+ paginationControl($contacts, null, null, array('preserve' => $this->preserve)); ?> +
- +
+
- - href('monitoring/show/contacts', array('contact' => $contact->contact_name)); ?> + foreach($contacts as $contact): + $periodLink = $this->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 ?> contact_name ?>contact_alias ?>contact_email ?>contact_pager ?>contactFlags($contact, 'service') ?>contactFlags($contact, 'host') ?>contact_notify_service_timeperiod ?>contact_notify_host_timeperiod ?>
- -
- paginationControl($contacts, null, null, array('preserve' => $this->preserve)); ?> -