From b3f078eaa5903099bd33a12cba16abc20a03a846 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 23 Jul 2014 15:46:37 -0400 Subject: [PATCH] add the word disabled after function if the monitor is not enabled. --- web/skins/classic/views/console.php | 2 +- web/skins/flat/views/console.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/web/skins/classic/views/console.php b/web/skins/classic/views/console.php index 8f1c34ae4..001d56e2d 100644 --- a/web/skins/classic/views/console.php +++ b/web/skins/classic/views/console.php @@ -302,7 +302,7 @@ foreach( $displayMonitors as $monitor ) $scale = max( reScale( SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_BASE ); ?> - '.$SLANG['Fn'.$monitor['Function']].'', canEdit( 'Monitors' ) ) ?> + '.$SLANG['Fn'.$monitor['Function']].( empty($monitor['Enabled']) ? ', disabled' : '' ) .'', canEdit( 'Monitors' ) ) ?> '.$monitor['Device'].' ('.$monitor['Channel'].')', canEdit( 'Monitors' ) ) ?> diff --git a/web/skins/flat/views/console.php b/web/skins/flat/views/console.php index 29aca44f9..27228444d 100644 --- a/web/skins/flat/views/console.php +++ b/web/skins/flat/views/console.php @@ -302,7 +302,7 @@ foreach( $displayMonitors as $monitor ) $scale = max( reScale( SCALE_BASE, $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE ), SCALE_BASE ); ?> - '.$monitor['Function'].'', canEdit( 'Monitors' ) ) ?> + '.$monitor['Function'].( empty($monitor['Enabled']) ? ', disabled' : '' ).'', canEdit( 'Monitors' ) ) ?> '.$monitor['Device'].' ('.$monitor['Channel'].')', canEdit( 'Monitors' ) ) ?>