mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-6234 - reworked available tags when editing database templates; fixed closing optgroup tag
This commit is contained in:
parent
061e2ce31e
commit
6871e4e431
1 changed files with 2 additions and 0 deletions
|
@ -199,6 +199,7 @@
|
||||||
foreach ($fields as $field) {
|
foreach ($fields as $field) {
|
||||||
echo '<option value="[['.$field->name.']]" title="'.$field->description.'">'.$field->name.' - [['.$field->name.']]</option>';
|
echo '<option value="[['.$field->name.']]" title="'.$field->description.'">'.$field->name.' - [['.$field->name.']]</option>';
|
||||||
}
|
}
|
||||||
|
echo '</optgroup>';
|
||||||
|
|
||||||
// Print special tags. fix for MDL-7031
|
// Print special tags. fix for MDL-7031
|
||||||
if ($mode != 'addtemplate') {
|
if ($mode != 'addtemplate') {
|
||||||
|
@ -210,6 +211,7 @@
|
||||||
echo '<option value="##approve##">' .get_string('approve', 'data'). ' - ##approve##</option>';
|
echo '<option value="##approve##">' .get_string('approve', 'data'). ' - ##approve##</option>';
|
||||||
echo '<option value="##comments##">' .get_string('comments', 'data'). ' - ##comments##</option>';
|
echo '<option value="##comments##">' .get_string('comments', 'data'). ' - ##comments##</option>';
|
||||||
echo '<option value="##user##">' .get_string('user'). ' - ##user##</option>';
|
echo '<option value="##user##">' .get_string('user'). ' - ##user##</option>';
|
||||||
|
echo '</optgroup>';
|
||||||
}
|
}
|
||||||
echo '</select>';
|
echo '</select>';
|
||||||
echo '<br /><br /><br /><br /><input type="submit" name="defaultform" value="'.get_string('resettemplate','data').'" />';
|
echo '<br /><br /><br /><br /><input type="submit" name="defaultform" value="'.get_string('resettemplate','data').'" />';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue