From b675d6c5eeeec9cf6b506c3911d4e064c11fe231 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20B=C3=B6sch?= Date: Sun, 14 Oct 2018 13:01:29 +0200 Subject: [PATCH] MDL-63653 tool_xmldb: style form elements --- admin/tool/xmldb/actions/edit_field/edit_field.class.php | 7 +++++-- admin/tool/xmldb/actions/edit_index/edit_index.class.php | 7 +++++-- admin/tool/xmldb/actions/edit_key/edit_key.class.php | 7 +++++-- admin/tool/xmldb/actions/edit_table/edit_table.class.php | 7 +++++-- .../xmldb/actions/edit_xml_file/edit_xml_file.class.php | 7 +++++-- .../view_reserved_words/view_reserved_words.class.php | 2 +- .../view_structure_php/view_structure_php.class.php | 2 +- .../view_structure_sql/view_structure_sql.class.php | 2 +- .../xmldb/actions/view_table_php/view_table_php.class.php | 2 +- .../xmldb/actions/view_table_sql/view_table_sql.class.php | 2 +- 10 files changed, 30 insertions(+), 15 deletions(-) diff --git a/admin/tool/xmldb/actions/edit_field/edit_field.class.php b/admin/tool/xmldb/actions/edit_field/edit_field.class.php index 99d0ce54d1f..d48fe8ea5eb 100644 --- a/admin/tool/xmldb/actions/edit_field/edit_field.class.php +++ b/admin/tool/xmldb/actions/edit_field/edit_field.class.php @@ -125,7 +125,9 @@ class edit_field extends XMLDBAction { $o.= ' '; } // XMLDB field comment - $o.= ' '; + $o .= ' + '; // xmldb_field Type $typeoptions = array (XMLDB_TYPE_INTEGER => $field->getXMLDBTypeName(XMLDB_TYPE_INTEGER), XMLDB_TYPE_NUMBER => $field->getXMLDBTypeName(XMLDB_TYPE_NUMBER), @@ -167,7 +169,8 @@ class edit_field extends XMLDBAction { $o.= ' '; $o.= ' '; // Change button - $o.= '  '; + $o .= '  '; $o.= ' '; $o.= ''; // Calculate the buttons diff --git a/admin/tool/xmldb/actions/edit_index/edit_index.class.php b/admin/tool/xmldb/actions/edit_index/edit_index.class.php index a72b1c5eb31..ed8d894346b 100644 --- a/admin/tool/xmldb/actions/edit_index/edit_index.class.php +++ b/admin/tool/xmldb/actions/edit_index/edit_index.class.php @@ -115,7 +115,9 @@ class edit_index extends XMLDBAction { } $o.= ' '; // XMLDB key comment - $o.= ' '; + $o .= ' + '; // xmldb_index Type $typeoptions = array (0 => 'not unique', 1 => 'unique'); @@ -129,7 +131,8 @@ class edit_index extends XMLDBAction { $o.= ' '; $o.= ' '; // Change button - $o.= '  '; + $o .= '  '; $o.= ' '; $o.= ''; // Calculate the buttons diff --git a/admin/tool/xmldb/actions/edit_key/edit_key.class.php b/admin/tool/xmldb/actions/edit_key/edit_key.class.php index 6e32acf19b3..9e78589b994 100644 --- a/admin/tool/xmldb/actions/edit_key/edit_key.class.php +++ b/admin/tool/xmldb/actions/edit_key/edit_key.class.php @@ -115,7 +115,9 @@ class edit_key extends XMLDBAction { } $o.= ' '; // XMLDB key comment - $o.= ' '; + $o .= ' + '; // xmldb_key Type $typeoptions = array (XMLDB_KEY_PRIMARY => $key->getXMLDBKeyName(XMLDB_KEY_PRIMARY), XMLDB_KEY_UNIQUE => $key->getXMLDBKeyName(XMLDB_KEY_UNIQUE), @@ -139,7 +141,8 @@ class edit_key extends XMLDBAction { $o.= ' '; $o.= ' '; // Change button - $o.= '  '; + $o .= '  '; $o.= ' '; $o.= ''; // Calculate the buttons diff --git a/admin/tool/xmldb/actions/edit_table/edit_table.class.php b/admin/tool/xmldb/actions/edit_table/edit_table.class.php index 32f6fea00e0..3cfdb66f9b9 100644 --- a/admin/tool/xmldb/actions/edit_table/edit_table.class.php +++ b/admin/tool/xmldb/actions/edit_table/edit_table.class.php @@ -131,8 +131,11 @@ class edit_table extends XMLDBAction { } else { $o.= ' '; } - $o.= ' '; - $o.= '  '; + $o .= ' + '; + $o .= '  '; $o.= ' '; $o.= ''; // Calculate the pending changes / save message diff --git a/admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php b/admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php index f053c08c040..e9320675581 100644 --- a/admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php +++ b/admin/tool/xmldb/actions/edit_xml_file/edit_xml_file.class.php @@ -118,8 +118,11 @@ class edit_xml_file extends XMLDBAction { $o .= ' '; $o.= ' '; $o.= ' '; - $o.= ' '; - $o.= ' '; + $o .= ' '; + $o .= ' '; $o.= '
Path:' . s($structure->getPath()) . '
Version:' . s($structure->getVersion()) . '
 
+
 
'; $o.= ''; // Calculate the pending changes / save message diff --git a/admin/tool/xmldb/actions/view_reserved_words/view_reserved_words.class.php b/admin/tool/xmldb/actions/view_reserved_words/view_reserved_words.class.php index 2d40ea1d0ed..a3633840ba7 100644 --- a/admin/tool/xmldb/actions/view_reserved_words/view_reserved_words.class.php +++ b/admin/tool/xmldb/actions/view_reserved_words/view_reserved_words.class.php @@ -114,7 +114,7 @@ class view_reserved_words extends XMLDBAction { // The textarea showing all the reserved words $o.= ' '; $o.= ' '; - $o.= ' '; $o.= '
' . $this->str['listreservedwords'].'
'; diff --git a/admin/tool/xmldb/actions/view_structure_php/view_structure_php.class.php b/admin/tool/xmldb/actions/view_structure_php/view_structure_php.class.php index 99d4524c1bf..91618c35bfb 100644 --- a/admin/tool/xmldb/actions/view_structure_php/view_structure_php.class.php +++ b/admin/tool/xmldb/actions/view_structure_php/view_structure_php.class.php @@ -119,7 +119,7 @@ class view_structure_php extends XMLDBAction { $o.= ' '; $o.= ''; $o.= ' '; - $o.= '