From 061e2ce31e057822b8e92f6e7c363485c00c5ea2 Mon Sep 17 00:00:00 2001 From: skodak Date: Sun, 10 Dec 2006 22:38:42 +0000 Subject: [PATCH] MDL-6234 - reworked available tags when editing database templates --- lang/en_utf8/data.php | 3 ++- mod/data/templates.php | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/lang/en_utf8/data.php b/lang/en_utf8/data.php index 3eb147cde1..13b869b9d4 100644 --- a/lang/en_utf8/data.php +++ b/lang/en_utf8/data.php @@ -19,6 +19,7 @@ $string['availablefromdate'] = 'Available from'; $string['availabletags'] = 'Available tags'; $string['availabletodate'] = 'Available to'; $string['blank'] = 'Blank'; +$string['buttons'] = 'Buttons'; $string['bynameondate'] = 'by $a->name - $a->date'; $string['cancel'] = 'Cancel'; $string['checkbox'] = 'Checkbox'; @@ -107,7 +108,7 @@ $string['insufficiententries'] = 'more entries needed to view this database'; $string['intro'] = 'Introduction'; $string['invalidfieldname'] = 'Please choose another name for this field'; $string['invalidurl'] = 'The URL you just entered is not valid'; -$string['jstemplate'] = 'Javascript Template'; +$string['jstemplate'] = 'Javascript template'; $string['latitude'] = 'Latitude'; $string['latlong'] = 'Latitude/longitude'; $string['latlongdownloadallhint'] = 'Download link for all entries as KML'; diff --git a/mod/data/templates.php b/mod/data/templates.php index 453a97e167..7530ac97bc 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -195,19 +195,21 @@ echo '">'; $fields = get_records('data_fields', 'dataid', $data->id); + echo ''; foreach ($fields as $field) { - echo ''; + echo ''; } // Print special tags. fix for MDL-7031 if ($mode != 'addtemplate') { - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; - echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; } echo ''; echo '



'; -- 2.39.5