From 1c074c9807ca69b2c29be5d22040deacb9ade42f Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Wed, 30 Sep 2015 12:49:46 +0200 Subject: [PATCH] monitoring: Style config overview refs #5543 --- .../views/scripts/config/index.phtml | 190 ++++++++++-------- 1 file changed, 106 insertions(+), 84 deletions(-) diff --git a/modules/monitoring/application/views/scripts/config/index.phtml b/modules/monitoring/application/views/scripts/config/index.phtml index 3ce261840..2748864d0 100644 --- a/modules/monitoring/application/views/scripts/config/index.phtml +++ b/modules/monitoring/application/views/scripts/config/index.phtml @@ -1,94 +1,116 @@
- -

translate('Monitoring Backends') ?>

+
-

- - icon('plus'); ?> translate('Create New Monitoring Backend'); ?> - -

- +
+

translate('Monitoring Backends') ?>

+ qlink( + $this->translate('Create A New Monitoring Backend') , + 'monitoring/config/createbackend', + null, + array( + 'class' => 'button action-link', + 'icon' => 'plus', + 'title' => $this->translate('Create a new monitoring backend') + ) + ) ?> +
+ + + + + + + + backendsConfig as $backendName => $config): ?> + + + + + + +
translate('Monitoring Backend') ?>
+ qlink( + $backendName, + 'monitoring/config/editbackend', + array('backend-name' => $backendName), + array( + 'icon' => 'edit', + 'title' => sprintf($this->translate('Edit monitoring backend %s'), $backendName) + ) + ) ?> + (translate('Type: %s'), + $this->escape($config->type === 'ido' ? 'IDO' : ucfirst($config->type)) + ) ?>) + + + qlink( + '', + 'monitoring/config/removebackend', + array('backend-name' => $backendName), + array( + 'class' => 'action-link', + 'icon' => 'cancel', + 'title' => sprintf($this->translate('Remove monitoring backend %s'), $backendName) + ) + ) ?> +
+
+
+

translate('Command Transports') ?>

+ qlink( + $this->translate('Create A New Command Transport') , + 'monitoring/config/createtransport', + null, + array( + 'class' => 'button action-link', + 'icon' => 'plus', + 'title' => $this->translate('Create a new command transport') + ) + ) ?> + - - - - - backendsConfig as $backendName => $config): ?> - - - - - - -
translate('Monitoring Backend'); ?>translate('Remove'); ?>
- qlink( - $backendName, - 'monitoring/config/editbackend', - array('backend-name' => $backendName), - array( - 'icon' => 'edit', - 'title' => sprintf($this->translate('Edit monitoring backend %s'), $backendName) - ) - ); ?> - (translate('Type: %s'), - $this->escape($config->type === 'ido' ? 'IDO' : ucfirst($config->type)) - ); ?>) - - qlink( - '', - 'monitoring/config/removebackend', - array('backend-name' => $backendName), - array( - 'icon' => 'trash', - 'title' => sprintf($this->translate('Remove monitoring backend %s'), $backendName) - ) - ); ?> -
-

translate('Command Transports') ?>

-

- - icon('plus'); ?> translate('Create New Transport'); ?> - -

- - - - + + + + transportConfig as $transportName => $config): ?> - - - - - + + + + + -
translate('Transport'); ?>translate('Remove'); ?>
translate('Transport') ?>
- qlink( - $transportName, - 'monitoring/config/edittransport', - array('transport' => $transportName), - array( - 'icon' => 'edit', - 'title' => sprintf($this->translate('Edit command transport %s'), $transportName) - ) - ); ?> - (translate('Type: %s'), - $config->host !== null ? $this->translate('Remote') : $this->translate('Local') - ); ?>) - - qlink( - '', - 'monitoring/config/removetransport', - array('transport' => $transportName), - array( - 'icon' => 'trash', - 'title' => sprintf($this->translate('Remove command transport %s'), $transportName) - ) - ); ?> -
+ qlink( + $transportName, + 'monitoring/config/edittransport', + array('transport' => $transportName), + array( + 'icon' => 'edit', + 'title' => sprintf($this->translate('Edit command transport %s'), $transportName) + ) + ); ?> + (translate('Type: %s'), + $config->host !== null ? $this->translate('Remote') : $this->translate('Local') + ) ?>) + + + qlink( + '', + 'monitoring/config/removetransport', + array('transport' => $transportName), + array( + 'class' => 'action-link', + 'icon' => 'cancel', + 'title' => sprintf($this->translate('Remove command transport %s'), $transportName) + ) + ); ?> +
+ +