From 2f610b70ac2d7101911a061cd9601866d6e44460 Mon Sep 17 00:00:00 2001 From: Marius Hein Date: Fri, 23 Aug 2013 10:58:58 +0200 Subject: [PATCH] Fix icon identifer and capitalization refs #4550 refs #4584 --- .../Config/Authentication/DbBackendForm.php | 2 +- .../views/helpers/MonitoringCommands.php | 2 +- .../views/scripts/list/downtimes.phtml | 35 +++++++++---------- .../views/scripts/list/notifications.phtml | 18 +++++----- .../scripts/show/components/downtime.phtml | 2 +- 5 files changed, 29 insertions(+), 30 deletions(-) diff --git a/application/forms/Config/Authentication/DbBackendForm.php b/application/forms/Config/Authentication/DbBackendForm.php index dd41c193e..3c09bccf6 100644 --- a/application/forms/Config/Authentication/DbBackendForm.php +++ b/application/forms/Config/Authentication/DbBackendForm.php @@ -93,7 +93,7 @@ class DbBackendForm extends BaseBackendForm ) ); - $this->setSubmitLabel('{{SAVE_ICON}} Save backend'); + $this->setSubmitLabel('{{SAVE_ICON}} Save Backend'); } /** diff --git a/modules/monitoring/application/views/helpers/MonitoringCommands.php b/modules/monitoring/application/views/helpers/MonitoringCommands.php index 58bc3cb55..0c35460b9 100644 --- a/modules/monitoring/application/views/helpers/MonitoringCommands.php +++ b/modules/monitoring/application/views/helpers/MonitoringCommands.php @@ -65,7 +65,7 @@ class Zend_View_Helper_MonitoringCommands extends Zend_View_Helper_Abstract $definition->shortDescription, $definition->longDescription, $definition->iconCls, - $definition->btnCls + ($definition->btnCls) ? $definition->btnCls : 'btn-default' ); if ($type === Meta::TYPE_FULL) { diff --git a/modules/monitoring/application/views/scripts/list/downtimes.phtml b/modules/monitoring/application/views/scripts/list/downtimes.phtml index 88e27d565..2b2191846 100644 --- a/modules/monitoring/application/views/scripts/list/downtimes.phtml +++ b/modules/monitoring/application/views/scripts/list/downtimes.phtml @@ -30,24 +30,24 @@ $downtimes = $downtimes->fetchAll(); $this->sort, array('class' => 'autosubmit'), array( - 'downtime_is_in_effect' => 'Is In Effect', - 'object_type' => 'Service/Host', - 'host_name' => 'Host Name', - 'service_description' => 'Service Name', - 'downtime_entry_time' => 'Entry Time', - 'downtime_author_name' => 'Author', - 'downtime_comment_data' => 'Comment', - 'downtime_scheduled_start_time' => 'Start', - 'downtime_scheduled_end_time' => 'End', - 'downtime_trigger_time' => 'Trigger Time', - 'downtime_internal_downtime_id' => 'Downtime ID', - 'downtime_duration' => 'Duration', - ) + 'downtime_is_in_effect' => 'Is In Effect', + 'object_type' => 'Service/Host', + 'host_name' => 'Host Name', + 'service_description' => 'Service Name', + 'downtime_entry_time' => 'Entry Time', + 'downtime_author_name' => 'Author', + 'downtime_comment_data' => 'Comment', + 'downtime_scheduled_start_time' => 'Start', + 'downtime_scheduled_end_time' => 'End', + 'downtime_trigger_time' => 'Trigger Time', + 'downtime_internal_downtime_id' => 'Downtime ID', + 'downtime_duration' => 'Duration', ) + ); ?> @@ -90,14 +90,13 @@ $downtimes = $downtimes->fetchAll(); downtime_is_in_effect == 0 ? 'False' : 'True'); ?> -
- +
object_type == 'service'): ?> - + {{SERVICE_ICON}} object_type == 'host'): ?> - + {{HOST_ICON}}
diff --git a/modules/monitoring/application/views/scripts/list/notifications.phtml b/modules/monitoring/application/views/scripts/list/notifications.phtml index b2db35046..9ee2feb5e 100644 --- a/modules/monitoring/application/views/scripts/list/notifications.phtml +++ b/modules/monitoring/application/views/scripts/list/notifications.phtml @@ -1,30 +1,30 @@ tabs->render($this); ?> getHelper('MonitoringProperties'); + $formatter = $this->getHelper('MonitoringProperties'); ?>
formSelect( 'sort', $this->sort, array( - 'class' => 'autosubmit' + 'class' => 'autosubmit' ), array( - 'notification_start_time' => 'Time' + 'notification_start_time' => 'Time' ) ); ?>
@@ -42,7 +42,7 @@ echo $this->paginationControl($notifications, null, null, array('preserve' => $t Type Time Contact - Notification command + Notification Command Information diff --git a/modules/monitoring/application/views/scripts/show/components/downtime.phtml b/modules/monitoring/application/views/scripts/show/components/downtime.phtml index 15f362f34..7d9783e56 100644 --- a/modules/monitoring/application/views/scripts/show/components/downtime.phtml +++ b/modules/monitoring/application/views/scripts/show/components/downtime.phtml @@ -21,7 +21,7 @@ $row[] = ''; $list[] = ''. implode('', $row). '';