]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing the auth plugins visual. to use the flexible table properly.
authorstronk7 <stronk7>
Thu, 22 Feb 2007 23:01:47 +0000 (23:01 +0000)
committerstronk7 <stronk7>
Thu, 22 Feb 2007 23:01:47 +0000 (23:01 +0000)
Merged from MOODLE_18_STABLE

admin/auth.php
theme/standard/styles_layout.css

index 7dbd38230170b7f37d2021e2bc38b0b652d973f1..8e0c9ec65952a99588564c8eb64d08c477e541f2 100644 (file)
@@ -166,15 +166,10 @@ foreach ($authsavailable as $auth) {
 // build the display table
 $table = new flexible_table('auth_admin_table');
 $table->define_columns(array('name', 'enable', 'order', 'settings'));
-$table->column_style('enable', 'text-align', 'center');
-$table->column_style('order', 'text-align', 'center');
-$table->column_style('settings', 'text-align', 'center');
 $table->define_headers(array($txt->name, $txt->enable, $txt->updown, $txt->settings));
 $table->define_baseurl("{$CFG->wwwroot}/{$CFG->admin}/auth.php");
 $table->set_attribute('id', 'blocks');
-$table->set_attribute('class', 'generaltable generalbox');
-$table->set_attribute('style', 'margin:auto;');
-$table->set_attribute('cellpadding', '5');
+$table->set_attribute('class', 'generaltable generalbox boxaligncenter boxwidthwide');
 $table->setup();
 
 //add always enabled plugins first
@@ -247,7 +242,7 @@ if ($status !== '') {
 
 print_simple_box(get_string('configauthenticationplugins', 'admin'), 'center', '700');
 
-print_table($table);
+$table->print_html();
 
 ////////////////////////////////////////////////////////////////////////////////
 
index 4a89da9bc8cf9844c02e53e34b89c7cffb820dd1..c6518dea25009be2ba225c0665eab5fe8eb909fb 100644 (file)
@@ -689,7 +689,8 @@ body#admin-index .c1 {
 
 body#admin-blocks table.generaltable th,
 body#admin-filters table.generaltable th,
-body#admin-modules table.generaltable th
+body#admin-modules table.generaltable th,
+body#admin-auth table.generaltable th
 {
   white-space: nowrap;
 }
@@ -705,7 +706,9 @@ body#admin-blocks table.generaltable td.cell,
 body#admin-filters table.generaltable th,
 body#admin-filters table.generaltable td.cell,
 body#admin-modules table.generaltable th,
-body#admin-modules table.generaltable td.cell
+body#admin-modules table.generaltable td.cell,
+body#admin-auth table.generaltable th,
+body#admin-auth table.generaltable td.cell
 {
   padding: 4px;
   text-align: center;
@@ -717,7 +720,9 @@ body#admin-blocks table.generaltable td.c0,
 body#admin-filters table.generaltable th.c0,
 body#admin-filters table.generaltable td.c0,
 body#admin-modules table.generaltable th.c0,
-body#admin-modules table.generaltable td.c0
+body#admin-modules table.generaltable td.c0,
+body#admin-auth table.generaltable th.c0,
+body#admin-auth table.generaltable td.c0
 {
   text-align: left;
 }