From: skodak Date: Mon, 11 Dec 2006 08:54:04 +0000 (+0000) Subject: MDL-7879 Removed available tags from CSS and Javascript template definition X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=be6d38eac46cb25d244731688f581c1ae60e6d83;p=moodle.git MDL-7879 Removed available tags from CSS and Javascript template definition --- diff --git a/mod/data/templates.php b/mod/data/templates.php index 83d5cc0954..a58ff6c083 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -165,7 +165,6 @@ print_simple_box_start('center','80%'); echo ''; - /// Add the HTML editor(s). $usehtmleditor = $editor && can_use_html_editor() && ($mode != 'csstemplate') && ($mode != 'jstemplate'); if ($mode == 'listtemplate'){ @@ -180,52 +179,57 @@ } // Print the main template. - // Add all the available fields for this data. + echo '';
'; - echo ''; - helpbutton('tags', get_string('tags','data'), 'data'); - echo '
'; - - echo ''; + + $fields = get_records('data_fields', 'dataid', $data->id); + echo ''; + foreach ($fields as $field) { + echo ''; + } echo ''; - } - echo ''; - echo '



'; - if (can_use_html_editor() && ($mode != 'csstemplate') && ($mode != 'jstemplate')) { - echo '

'; - if ($editor) { - $switcheditor = get_string('editordisable', 'data'); - } else { - $switcheditor = get_string('editorenable', 'data'); + + // Print special tags. fix for MDL-7031 + if ($mode != 'addtemplate') { + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + } + echo ''; + echo '



'; + if (can_use_html_editor()) { + echo '

'; + if ($editor) { + $switcheditor = get_string('editordisable', 'data'); + } else { + $switcheditor = get_string('editorenable', 'data'); + } + echo ''; } - echo ''; + } else { + echo '



'; } echo '