mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Fixed Bug #4552
This commit is contained in:
parent
e95dddd7a9
commit
0b3cfe8812
@ -5,7 +5,9 @@ $string['add'] = 'Add entry';
|
||||
$string['addafield'] = 'Add a Field';
|
||||
$string['addcomment'] = 'Add Comment';
|
||||
$string['addtemplate'] = 'Add Template';
|
||||
$string['allowcomments'] = 'Allow comments?';
|
||||
$string['allowratings'] = 'Allow posts to be rated?';
|
||||
$string['approve'] = 'Approve';
|
||||
$string['ascending'] = 'Ascending';
|
||||
$string['atmaxentry'] = 'You have entered the maximum number of entries allowed!';
|
||||
$string['autogenallforms'] = 'Generate all default templates';
|
||||
@ -16,17 +18,19 @@ $string['browse'] = 'Browse';
|
||||
$string['bynameondate'] = 'by $a->name - $a->date';
|
||||
$string['cancel'] = 'Cancel';
|
||||
$string['checkbox'] = 'Checkbox(es)';
|
||||
$string['comments'] = 'Comments';
|
||||
$string['commentsaved'] = 'Comment Saved';
|
||||
$string['comments'] = 'Allow comments?';
|
||||
$string['configenablerssfeeds'] = 'This switch will enable the possibility of RSS feeds for all databases. You will still need to turn feeds on manually in the settings for each database.';
|
||||
$string['confirmdeletefield'] = 'You are about to delete this field, are you sure?';
|
||||
$string['confirmdeleterecord'] = 'Are you sure you want to delete this record?';
|
||||
$string['dateentered'] = 'Date entered';
|
||||
$string['descending'] = 'Descending';
|
||||
$string['delete'] = 'Delete';
|
||||
$string['deleted'] = 'deleted';
|
||||
$string['deletefield'] = 'Delete an existing Field';
|
||||
$string['menu'] = 'Menu (Single-selection)';
|
||||
$string['menuchoose'] = 'Choose...';
|
||||
$string['edit'] = 'Edit';
|
||||
$string['emptyadd'] = 'The Add template is empty, generating a default form...';
|
||||
$string['emptyaddform'] = 'You did not fill out any fields!';
|
||||
$string['entrysaved'] = 'Your entry has been saved';
|
||||
@ -63,6 +67,7 @@ $string['maxentries'] = 'Maximum entries';
|
||||
$string['maxsize'] = 'Maximum size';
|
||||
$string['modulename'] = 'Database';
|
||||
$string['modulenameplural'] = 'Databases';
|
||||
$string['more'] = 'More';
|
||||
$string['multientry'] = 'Repeated entry';
|
||||
$string['multimenu'] = 'Menu (Multiple-selection)';
|
||||
$string['multipletags'] = 'Multiple tags found! Template not saved';
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
require_once('pagelib.php');
|
||||
require_login();
|
||||
|
||||
|
||||
$id = optional_param('id', 0, PARAM_INT); // course module id
|
||||
$d = optional_param('d', 0, PARAM_INT); // database id
|
||||
$fid = optional_param('fid', 0 , PARAM_INT); //update field id
|
||||
|
@ -222,7 +222,7 @@
|
||||
<?php
|
||||
$ynoptions = array( 0 => get_string('no'), 1 => get_string('yes'));
|
||||
choose_from_menu($ynoptions, 'comments', $form->comments, '');
|
||||
helpbutton('comments', get_string('comments', 'data'), 'data');
|
||||
helpbutton('comments', get_string('allowcomments', 'data'), 'data');
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -136,15 +136,15 @@
|
||||
echo '<select name="fields1[]" size="10" onclick="insertAtCursor(document.tempform.template, this.options[selectedIndex].value)">'; //the insertAtCursor thing only works when editting in plain text =(
|
||||
if ($fields = get_records('data_fields','dataid',$data->id)){
|
||||
foreach ($fields as $field) {
|
||||
echo '<option value="[['.$field->name.']]">'.$field->name.' ('.$field->type.')</option>';
|
||||
echo '<option value="[['.$field->name.']]">'.$field->name.' ('. get_string($field->type, 'data'). ')</option>';
|
||||
}
|
||||
}
|
||||
//print special tags
|
||||
echo '<option value="##edit##">##Edit##</option>';
|
||||
echo '<option value="##more##">##More##</option>';
|
||||
echo '<option value="##delete##">##Delete##</option>';
|
||||
echo '<option value="##approve##">##Approve##</option>';
|
||||
echo '<option value="##comments##">##Comments##</option>';
|
||||
echo '<option value="##edit##">##' .get_string('edit', 'data'). '##</option>';
|
||||
echo '<option value="##more##">##' .get_string('more', 'data'). '##</option>';
|
||||
echo '<option value="##delete##">##' .get_string('delete', 'data'). '##</option>';
|
||||
echo '<option value="##approve##">##' .get_string('approve', 'data'). '##</option>';
|
||||
echo '<option value="##comments##">##' .get_string('comments', 'data'). '##</option>';
|
||||
echo '</select>';
|
||||
|
||||
///add the HTML editor(s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user