MDL-21695 Database module now uses new help strings
AMOS BEGIN HLP data/exportzip.html,[exportaszip_help,mod_data] HLP data/fields.html,[newfield_help,mod_data] HLP data/fieldmappings.html,[fieldmappings_help,mod_data] HLP data/importcsv.html,[csvimport_help,mod_data] HLP data/importfromfile.html,[fromfile_help,mod_data] HLP data/maxentries.html,[maxentries_help,mod_data] HLP data/requireapproval.html,[requireapproval_help,mod_data] HLP data/requiredentries.html,[requiredentries_help,mod_data] HLP data/requiredentriestoview.html,[requiredentriestoview_help,mod_data] HLP data/savepreset.html,[saveaspreset_help,mod_data] HLP data/tags.html,[availabletags_help,mod_data] HLP data/usepreset.html,[usestandard_help,mod_data] AMOS END
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
<p align="center"><strong>Allow Comments</strong></p>
|
||||
|
||||
<p>You can allow users to make comments on each entry.</p>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<p align="center"><strong>Exporting as Zip</strong></p>
|
||||
<p>This allows you to download the templates to your own computer,
|
||||
which can be uploaded later into a different database with the Import
|
||||
from Zip feature.</p>
|
||||
@@ -1,11 +0,0 @@
|
||||
<p align="center"><strong>Field Mappings</strong></p>
|
||||
<p>This menu allows you to keep the data from the existing
|
||||
database. To preserve the data in a field, you must map it to a new
|
||||
field, where the data will appear. Any field can also be left blank,
|
||||
with no infomation copied into it. Any old field not mapped to a new
|
||||
one will be lost and all it's data removed.</p>
|
||||
<p>
|
||||
You can only map fields of the same type, so each dropdown will have
|
||||
different fields in it. Also, you must be careful not to try and map
|
||||
one old field to more than one new field.
|
||||
</p>
|
||||
@@ -1,6 +0,0 @@
|
||||
<h1>Fields</h1>
|
||||
|
||||
<p>On this screen you can create the fields that will be a part of your database.</p>
|
||||
|
||||
<p>Each field allows different types of data, with different interfaces.</p>
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
<p align="center"><strong>Import from a CSV file</strong></p>
|
||||
|
||||
<p>CSV means Comma-Separated-Values and is a common format for text interchange.</p>
|
||||
|
||||
<p>The expected file format is a plain text file with a list of field names
|
||||
as the first record. The data then follows, one record per line.</p>
|
||||
|
||||
<p>The field delimiter defaults to a comma character and the field enclosure
|
||||
is not set by default (field enclosures are characters that surround each
|
||||
field in each record).</p>
|
||||
|
||||
<p>Records should be delimited by new lines (usually generated by pressing RETURN
|
||||
or ENTER in your text editor). Tabs can be specified using \t and newlines by \n. </p>
|
||||
|
||||
<p>Sample file:</p>
|
||||
|
||||
<pre>
|
||||
name,height,weight
|
||||
Kai,180cm,80kg
|
||||
Kim,170cm,60kg
|
||||
Koo,190cm,20kg
|
||||
</pre>
|
||||
|
||||
|
||||
<p>Warning: all field types may not be supported.</p>
|
||||
@@ -1,3 +0,0 @@
|
||||
<p align='center'><strong>Importing Presets from Zip</strong></p>
|
||||
<p>Use this to upload presets that have been saved to your computer
|
||||
with the export feature.</p>
|
||||
@@ -1,4 +0,0 @@
|
||||
<p align="center"><strong>Maximum Entries</strong></p>
|
||||
|
||||
<p>The maximum number of entries a participant can submit for this activity.</p>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<p><img alt="" src="<?php echo $CFG->wwwroot?>/mod/data/icon.gif" /> <b>Database Activity</b></p>
|
||||
<div class="indent">
|
||||
The Database module allows the teacher and/or students to build, display and search a bank of record entries about any conceivable topic. The format and structure of these entries can be almost unlimited, including images, files, URLs, numbers and text amongst other things. You may be familiar with similar technology from building Microsoft Access or Filemaker databases.
|
||||
</div>
|
||||
@@ -1,5 +0,0 @@
|
||||
<p align="center"><strong>Require Approval</strong></p>
|
||||
|
||||
<p>Should entries be approved by a teacher before they are viewable to students? This is useful
|
||||
for moderating content that may be potentially offensive or inappropriate.</p>
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
<p align="center"><strong>Required Entries</strong></p>
|
||||
|
||||
<p>The number of entries a participant is required to submit.
|
||||
Users will see a reminder message displayed while viewing if they have not submitted the required number of entries.</p>
|
||||
|
||||
<p>The activity will not be considered complete until the user has submitted the required number of entries.</p>
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
<p align="center"><strong>Required Entries Before Viewing</strong></p>
|
||||
|
||||
<p>The number of entries a participant is required to submit before they are allowed to view
|
||||
any entries in this database activity.</p>
|
||||
<p>Note: This feature cannot be used together with the database auto-linking filter, since it's not possible for the database auto-linking filter to determine whether a user has submitted the required number of entries.</p>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<h1>Save as Preset</h1>
|
||||
<p>This publishes the current templates as a preset which anyone on
|
||||
the site can view and use. It will appear in the preset list. You will
|
||||
be able to remove it at any time.</p>
|
||||
@@ -1,4 +0,0 @@
|
||||
<p align="center"><strong>Available Tags</strong></p>
|
||||
<p>Tags are place holders in the template, which will be replaced by fields or other items, such as an edit icon, when entries are edited or viewed.</p>
|
||||
<p>Fields have the format [[fieldname]]. All other tags have the format ##sometag##.</p>
|
||||
<p>Only the tags that are in the "Available tags" list may be used for the current template.</p>
|
||||
@@ -1,4 +0,0 @@
|
||||
<h1>Use Preset</h1>
|
||||
<p> Uses a template available to the whole site.</p>
|
||||
<p> Also, if you've added the preset to the library using the 'Save as
|
||||
Preset' feature then you can delete it.</p>
|
||||
+1
-1
@@ -341,7 +341,7 @@ if (has_capability('mod/data:manageentries',$context)) {
|
||||
echo '<tr>';
|
||||
echo '<td align="right">'.get_string('csvfile', 'data').':</td>';
|
||||
echo '<td><input type="file" name="recordsfile" size="30" />';
|
||||
echo $OUTPUT->old_help_icon('importcsv', get_string('csvimport', 'data'), 'data');
|
||||
echo $OUTPUT->help_icon('csvimport', 'data');
|
||||
echo '</td><tr>';
|
||||
echo '<td align="right">'.get_string('fielddelimiter', 'data').':</td>';
|
||||
echo '<td><input type="text" name="fielddelimiter" size="6" />';
|
||||
|
||||
+2
-2
@@ -305,8 +305,8 @@ if (($mode == 'new') && (!empty($newtype)) && confirm_sesskey()) { ///
|
||||
echo '<div class="fieldadd">';
|
||||
echo '<label for="fieldform_jump">'.get_string('newfield','data').'</label>';
|
||||
$popupurl = $CFG->wwwroot.'/mod/data/field.php?d='.$data->id.'&mode=new&sesskey='. sesskey();
|
||||
echo $OUTPUT->single_select(new moodle_url($popupurl), 'newtype', $menufield, null, array(''=>'choosedots'), "fieldform");
|
||||
echo $OUTPUT->old_help_icon('fields', get_string('addafield','data'), 'data');
|
||||
echo $OUTPUT->single_select(new moodle_url($popupurl), 'newtype', $menufield, null, array(''=>'choosedots'), 'fieldform');
|
||||
echo $OUTPUT->help_icon('newfield', 'data');
|
||||
echo '</div>';
|
||||
|
||||
echo '<div class="sortdefault">';
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
|
||||
$string['action'] = 'Action';
|
||||
$string['add'] = 'Add entry';
|
||||
$string['addafield'] = 'Add a field';
|
||||
$string['addcomment'] = 'Add comment';
|
||||
$string['addentries'] = 'Add entries';
|
||||
$string['addtemplate'] = 'Add template';
|
||||
@@ -140,6 +139,8 @@ $string['fieldheightlistview'] = 'Height in list view';
|
||||
$string['fieldheightsingleview'] = 'Height in single view';
|
||||
$string['fieldids'] = 'Field ids';
|
||||
$string['fieldmappings'] = 'Field Mappings';
|
||||
$string['fieldmappings_help'] = 'This menu allows you to keep the data from the existing database. To preserve the data in a field, you must map it to a new field, where the data will appear. Any field can also be left blank, with no infomation copied into it. Any old field not mapped to a new one will be lost and all it\'s data removed.
|
||||
You can only map fields of the same type, so each dropdown will have different fields in it. Also, you must be careful not to try and map one old field to more than one new field.';
|
||||
$string['fieldname'] = 'Field name';
|
||||
$string['fieldnotmatched'] = 'The following fields in your file are not known in this database: {$a}';
|
||||
$string['fieldoptions'] = 'Options (one per line)';
|
||||
|
||||
+2
-2
@@ -2125,7 +2125,7 @@ class PresetImporter {
|
||||
|
||||
if (!empty($currentfields) && !empty($newfields)) {
|
||||
echo "<h3>$strfieldmappings ";
|
||||
echo $OUTPUT->old_help_icon('fieldmappings', $strfieldmappings, 'data');
|
||||
echo $OUTPUT->help_icon('fieldmappings', 'data');
|
||||
echo '</h3><table>';
|
||||
|
||||
foreach ($newfields as $nid => $newfield) {
|
||||
@@ -2855,4 +2855,4 @@ function data_extend_settings_navigation(settings_navigation $settings, navigati
|
||||
$datanode->add(get_string('fields', 'data'), new moodle_url('/mod/data/field.php', array('d'=>$data->id)));
|
||||
$datanode->add(get_string('presets', 'data'), new moodle_url('/mod/data/preset.php', array('d'=>$data->id)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,20 +34,20 @@ class mod_data_mod_form extends moodleform_mod {
|
||||
(array_combine(range(1, DATA_MAX_ENTRIES),//keys
|
||||
range(1, DATA_MAX_ENTRIES)));//values
|
||||
$mform->addElement('select', 'requiredentries', get_string('requiredentries', 'data'), $countoptions);
|
||||
$mform->setHelpButton('requiredentries', array('requiredentries', get_string('requiredentries', 'data'), 'data'));
|
||||
$mform->addHelpButton('requiredentries', 'requiredentries', 'data');
|
||||
|
||||
$mform->addElement('select', 'requiredentriestoview', get_string('requiredentriestoview', 'data'), $countoptions);
|
||||
$mform->setHelpButton('requiredentriestoview', array('requiredentriestoview', get_string('requiredentriestoview', 'data'), 'data'));
|
||||
$mform->addHelpButton('requiredentriestoview', 'requiredentriestoview', 'data');
|
||||
|
||||
$mform->addElement('select', 'maxentries', get_string('maxentries', 'data'), $countoptions);
|
||||
$mform->setHelpButton('maxentries', array('maxentries', get_string('maxentries', 'data'), 'data'));
|
||||
$mform->addHelpButton('maxentries', 'maxentries', 'data');
|
||||
|
||||
$ynoptions = array(0 => get_string('no'), 1 => get_string('yes'));
|
||||
$mform->addElement('select', 'comments', get_string('comments', 'data'), $ynoptions);
|
||||
$mform->setHelpButton('comments', array('comments', get_string('allowcomments', 'data'), 'data'));
|
||||
|
||||
$mform->addElement('select', 'approval', get_string('requireapproval', 'data'), $ynoptions);
|
||||
$mform->setHelpButton('approval', array('requireapproval', get_string('requireapproval', 'data'), 'data'));
|
||||
$mform->addHelpButton('approval', 'requireapproval', 'data');
|
||||
|
||||
if($CFG->enablerssfeeds && $CFG->data_enablerssfeeds){
|
||||
$mform->addElement('select', 'rssarticles', get_string('numberrssarticles', 'data') , $countoptions);
|
||||
|
||||
+4
-4
@@ -333,7 +333,7 @@ echo '<table class="presets" cellpadding="5">';
|
||||
echo '<tr><td valign="top" colspan="2" align="center"><h3>'.$strexport.'</h3></td></tr>';
|
||||
|
||||
echo '<tr><td><label>'.$strexportaszip.'</label>';
|
||||
echo $OUTPUT->old_help_icon('exportzip', get_string('help'), 'data', false);
|
||||
echo $OUTPUT->help_icon('exportaszip', 'data');
|
||||
echo '</td><td>';
|
||||
$options = array();
|
||||
$options['sesskey'] = sesskey();
|
||||
@@ -343,7 +343,7 @@ echo $OUTPUT->single_button(new moodle_url('preset.php', $options), $strexport);
|
||||
echo '</td></tr>';
|
||||
|
||||
echo '<tr><td><label>'.$strsaveaspreset.'</label>';
|
||||
echo $OUTPUT->old_help_icon('savepreset', get_string('help'), 'data', false);
|
||||
echo $OUTPUT->help_icon('saveaspreset', 'data');
|
||||
echo '</td><td>';
|
||||
$options = array();
|
||||
$options['sesskey'] = sesskey();
|
||||
@@ -353,7 +353,7 @@ echo $OUTPUT->single_button(new moodle_url('preset.php', $options), $strsave);
|
||||
echo '</td></tr>';
|
||||
echo '<tr><td valign="top" colspan="2" align="center"><h3>'.$strimport.'</h3></td></tr>';
|
||||
echo '<tr><td><label for="fromfile">'.$strfromfile.'</label>';
|
||||
echo $OUTPUT->old_help_icon('importfromfile', get_string('help'), 'data', true);
|
||||
echo $OUTPUT->help_icon('fromfile', 'data');
|
||||
echo '</td><td>';
|
||||
echo '<form id="uploadpreset" method="post" action="preset.php">';
|
||||
echo '<fieldset class="invisiblefieldset">';
|
||||
@@ -366,7 +366,7 @@ echo '</fieldset></form>';
|
||||
echo '</td></tr>';
|
||||
|
||||
echo '<tr valign="top"><td><label>'.$strusestandard.'</label>';
|
||||
echo $OUTPUT->old_help_icon('usepreset', get_string('help'), 'data', true);
|
||||
echo $OUTPUT->help_icon('usestandard', 'data');
|
||||
echo '</td><td>';
|
||||
|
||||
echo '<form id="presets" method="post" action="preset.php" >';
|
||||
|
||||
@@ -203,7 +203,7 @@ echo '<tr><td valign="top">';
|
||||
if ($mode != 'csstemplate' and $mode != 'jstemplate') {
|
||||
// Add all the available fields for this data.
|
||||
echo '<label for="availabletags">'.get_string('availabletags','data').'</label>';
|
||||
echo $OUTPUT->old_help_icon('tags', get_string('tags'), 'data');
|
||||
echo $OUTPUT->help_icon('availabletags', 'data');
|
||||
echo '<br />';
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user