]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-6234 - reworked available tags when editing database templates; fixed closing...
authorskodak <skodak>
Sun, 10 Dec 2006 23:09:52 +0000 (23:09 +0000)
committerskodak <skodak>
Sun, 10 Dec 2006 23:09:52 +0000 (23:09 +0000)
mod/data/templates.php

index 7530ac97bc814cab06d06f0553406b332089a769..29e29a3d942d4de8c8249c03211dc12927b8fa9a 100755 (executable)
     foreach ($fields as $field) {
         echo '<option value="[['.$field->name.']]" title="'.$field->description.'">'.$field->name.' - [['.$field->name.']]</option>';
     }
+    echo '</optgroup>';
     
     // Print special tags. fix for MDL-7031
     if ($mode != 'addtemplate') {
         echo '<option value="##approve##">' .get_string('approve', 'data'). ' - ##approve##</option>';
         echo '<option value="##comments##">' .get_string('comments', 'data'). ' - ##comments##</option>';
         echo '<option value="##user##">' .get_string('user'). ' - ##user##</option>';
+        echo '</optgroup>';
     }
     echo '</select>';
     echo '<br /><br /><br /><br /><input type="submit" name="defaultform" value="'.get_string('resettemplate','data').'" />';