summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGábor Hojtsy <gabor@hojtsy.hu>2007-11-16 13:16:50 +0000
committerGábor Hojtsy <gabor@hojtsy.hu>2007-11-16 13:16:50 +0000
commitdb2c726a4a8a8dbb8a4feb8009060f2e99664e25 (patch)
tree5792ef1e2a33e790e9f5a4579e812eb8528d04d4 /modules
parentc5f767073efcf455bacd9b8c90634b76e9265e77 (diff)
downloadbrdo-db2c726a4a8a8dbb8a4feb8009060f2e99664e25.tar.gz
brdo-db2c726a4a8a8dbb8a4feb8009060f2e99664e25.tar.bz2
#192659 by quicksketch: center table headers for checkbox columns, where checkboxes are also centered
Diffstat (limited to 'modules')
-rw-r--r--modules/system/system.admin.inc9
-rw-r--r--modules/system/system.css3
-rw-r--r--modules/user/user.admin.inc4
3 files changed, 10 insertions, 6 deletions
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[] = '<strong>'. drupal_render($form['name'][$key]) .'</strong>';
$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;
}
diff --git a/modules/user/user.admin.inc b/modules/user/user.admin.inc
index 8fb427c24..34e3dafb2 100644
--- a/modules/user/user.admin.inc
+++ b/modules/user/user.admin.inc
@@ -592,7 +592,7 @@ function theme_user_admin_perm($form) {
$row[] = array('data' => drupal_render($form['permission'][$key]), 'class' => 'permission');
foreach (element_children($form['checkboxes']) as $rid) {
if (is_array($form['checkboxes'][$rid])) {
- $row[] = array('data' => drupal_render($form['checkboxes'][$rid][$key]), 'align' => 'center', 'title' => $roles[$rid] .' : '. t($key));
+ $row[] = array('data' => drupal_render($form['checkboxes'][$rid][$key]), 'class' => 'checkbox', 'title' => $roles[$rid] .' : '. t($key));
}
}
}
@@ -602,7 +602,7 @@ function theme_user_admin_perm($form) {
$header[] = (t('Permission'));
foreach (element_children($form['role_names']) as $rid) {
if (is_array($form['role_names'][$rid])) {
- $header[] = drupal_render($form['role_names'][$rid]);
+ $header[] = array('data' => drupal_render($form['role_names'][$rid]), 'class' => 'checkbox');
}
}
$output = theme('table', $header, $rows, array('id' => 'permissions'));