From db2c726a4a8a8dbb8a4feb8009060f2e99664e25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Fri, 16 Nov 2007 13:16:50 +0000 Subject: #192659 by quicksketch: center table headers for checkbox columns, where checkboxes are also centered --- modules/system/system.admin.inc | 9 +++++---- modules/system/system.css | 3 +++ 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'modules/system') diff --git a/modules/system/system.admin.inc b/modules/system/system.admin.inc index aca310a24..887bd92ba 100644 --- a/modules/system/system.admin.inc +++ b/modules/system/system.admin.inc @@ -1899,9 +1899,10 @@ function theme_system_modules($form) { } // Individual table headers. - $header = array(t('Enabled')); + $header = array(); + $header[] = array('data' => t('Enabled'), 'class' => 'checkbox'); if (module_exists('throttle')) { - $header[] = t('Throttle'); + $header[] = array('data' => t('Throttle'), 'class' => 'checkbox'); } $header[] = t('Name'); $header[] = t('Version'); @@ -1941,9 +1942,9 @@ function theme_system_modules($form) { else { $status = drupal_render($form['status'][$key]); } - $row[] = array('data' => $status, 'align' => 'center'); + $row[] = array('data' => $status, 'class' => 'checkbox'); if (module_exists('throttle')) { - $row[] = array('data' => drupal_render($form['throttle'][$key]), 'align' => 'center'); + $row[] = array('data' => drupal_render($form['throttle'][$key]), 'class' => 'checkbox'); } $row[] = ''. drupal_render($form['name'][$key]) .''; $row[] = drupal_render($form['version'][$key]); diff --git a/modules/system/system.css b/modules/system/system.css index 172fc29a8..7333c470f 100644 --- a/modules/system/system.css +++ b/modules/system/system.css @@ -23,6 +23,9 @@ tr.drag-previous { td.active { background-color: #ddd; } +td.checkbox, th.checkbox { + text-align: center; +} tbody { border-top: 1px solid #ccc; } -- cgit v1.2.3