mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Some extra changes from the duplicate work I did on upgradesettings.php
main change is that adminsettings is now an ID on the form
This commit is contained in:
parent
2b2d182aa7
commit
15a169222b
@ -105,7 +105,7 @@ if (!empty($SITE->fullname)) {
|
||||
|
||||
}
|
||||
|
||||
echo '<form action="settings.php" method="post" name="mainform">';
|
||||
echo '<form action="settings.php" method="post" name="mainform" id="adminsettings">';
|
||||
echo '<input type="hidden" name="section" value="' . $PAGE->section . '" />';
|
||||
echo '<input type="hidden" name="sesskey" value="' . $USER->sesskey . '" />';
|
||||
echo '<input type="hidden" name="return" value="' . $return . '" />';
|
||||
|
@ -56,11 +56,13 @@ if ($data = data_submitted()) {
|
||||
// to modify them
|
||||
admin_externalpage_print_header($adminroot);
|
||||
|
||||
echo '<form action="upgradesettings.php" method="post" name="mainform">';
|
||||
print_simple_box(get_string('upgradesettingsintro','admin'),'','100%','',5,'generalbox','');
|
||||
|
||||
echo '<form action="upgradesettings.php" method="post" name="mainform" id="adminsettings">';
|
||||
echo '<input type="hidden" name="sesskey" value="' . sesskey() . '" />';
|
||||
|
||||
echo '<fieldset>';
|
||||
echo '<div class="clearer"><!-- --></div>';
|
||||
echo $newsettingshtml;
|
||||
|
||||
echo '<div class="form-buttons"><input class="form-submit" type="submit" value="' . get_string('savechanges','admin') . '" /></div>';
|
||||
echo '</form>';
|
||||
|
||||
@ -140,4 +142,4 @@ function output_new_settings_by_page(&$node) {
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
@ -1233,10 +1233,10 @@ class admin_settingpage extends part_of_admin_tree {
|
||||
// outputs this page as html in a table (suitable for inclusion in an admin pagetype)
|
||||
// returns a string of the html
|
||||
function output_html() {
|
||||
$return = '<fieldset class="adminsettings">' . "\n";
|
||||
$return = '<fieldset>' . "\n";
|
||||
$return .= '<div class="clearer"><!-- --></div>' . "\n";
|
||||
foreach($this->settings as $setting) {
|
||||
$return .= $setting->output_html();
|
||||
$return .= $setting->output_html();
|
||||
}
|
||||
$return .= '</fieldset>';
|
||||
return $return;
|
||||
|
@ -308,13 +308,13 @@ table.flexible .r1 {
|
||||
background-color: green;
|
||||
}
|
||||
|
||||
fieldset.adminsettings {
|
||||
#adminsettings {
|
||||
background-color: #EEE;
|
||||
border-color: #BBB;
|
||||
color: #000;
|
||||
}
|
||||
|
||||
fieldset.adminsettings .form-shortname {
|
||||
#adminsettings .form-shortname {
|
||||
color: #888;
|
||||
}
|
||||
|
||||
|
@ -228,7 +228,7 @@ body#admin-index .copyright {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
fieldset.adminsettings .form-shortname {
|
||||
#adminsettings .form-shortname {
|
||||
font-size: 75%;
|
||||
}
|
||||
|
||||
|
@ -451,63 +451,63 @@ body#admin-roles-manage table.generalbox {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
fieldset.adminsettings {
|
||||
#adminsettings fieldset {
|
||||
margin-top: 1em;
|
||||
padding: 1em 0.5em;
|
||||
}
|
||||
|
||||
fieldset.adminsettings legend {
|
||||
#adminsettings legend {
|
||||
display: none;
|
||||
}
|
||||
|
||||
fieldset.adminsettings .form-group {
|
||||
#adminsettings .form-group {
|
||||
float: left;
|
||||
}
|
||||
|
||||
fieldset.adminsettings .form-item {
|
||||
#adminsettings .form-item {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
fieldset.adminsettings label {
|
||||
#adminsettings label {
|
||||
display: block;
|
||||
float: left;
|
||||
width: 150px;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
fieldset.adminsettings .form-shortname {
|
||||
#adminsettings .form-shortname {
|
||||
display: block;
|
||||
}
|
||||
|
||||
fieldset.adminsettings select,
|
||||
fieldset.adminsettings input {
|
||||
#adminsettings select,
|
||||
#adminsettings input {
|
||||
float: left;
|
||||
margin: 0 0 0 10px;
|
||||
}
|
||||
|
||||
fieldset.adminsettings textarea {
|
||||
#adminsettings textarea {
|
||||
float: left;
|
||||
margin: 0 0 0 10px;
|
||||
width: 65%;
|
||||
}
|
||||
|
||||
fieldset.adminsettings .form-group select,
|
||||
fieldset.adminsettings .form-group input {
|
||||
#adminsettings .form-group select,
|
||||
#adminsettings .form-group input {
|
||||
display: inline;
|
||||
float: none;
|
||||
}
|
||||
|
||||
/* fieldset.adminsettings .admin-configtime .form-select {
|
||||
/* #adminsettings .admin-configtime .form-select {
|
||||
display: inline;
|
||||
float: none;
|
||||
}
|
||||
|
||||
fieldset.adminsettings div.admin-frontpage div.form-group select.form-select {
|
||||
#adminsettings div.admin-frontpage div.form-group select.form-select {
|
||||
display: inline;
|
||||
float: none;
|
||||
} */
|
||||
|
||||
fieldset.adminsettings .description {
|
||||
#adminsettings .description {
|
||||
clear: both;
|
||||
margin: 0 1em 0 160px;
|
||||
padding: 0.3em 0 1.5em 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user