Skip to content

Commit

Permalink
Merge branch 'MDL-26252-import-groups-help' of git://github.com/mudrd…
Browse files Browse the repository at this point in the history
…8mz/moodle
  • Loading branch information
Sam Hemelryk committed Feb 7, 2011
2 parents d44327e + f672d6a commit 82bbf32
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
10 changes: 4 additions & 6 deletions group/import.php
Expand Up @@ -39,15 +39,13 @@


require_capability('moodle/course:managegroups', $context); require_capability('moodle/course:managegroups', $context);


$strimportgroups = get_string("importgroups"); $strimportgroups = get_string('importgroups', 'core_group');


/// Print the header
$PAGE->navbar->add($course->shortname, new moodle_url('/course/view.php', array('id'=>$course->id)));
$PAGE->navbar->add(get_string('import'), new moodle_url('/course/import.php', array('id'=>$course->id)));
$PAGE->navbar->add($strimportgroups); $PAGE->navbar->add($strimportgroups);

navigation_node::override_active_url(new moodle_url('/group/index.php', array('id' => $course->id)));
$PAGE->set_title("$course->shortname: $strimportgroups"); $PAGE->set_title("$course->shortname: $strimportgroups");
$PAGE->set_heading($course->fullname); $PAGE->set_heading($course->fullname);
$PAGE->set_pagelayout('standard');


$returnurl = new moodle_url('/group/index.php', array('id'=>$id)); $returnurl = new moodle_url('/group/index.php', array('id'=>$id));


Expand Down Expand Up @@ -188,6 +186,6 @@


/// Print the form /// Print the form
echo $OUTPUT->header(); echo $OUTPUT->header();
echo $OUTPUT->heading($strimportgroups); echo $OUTPUT->heading_with_help($strimportgroups, 'importgroups', 'core_group');
$mform_post ->display(); $mform_post ->display();
echo $OUTPUT->footer(); echo $OUTPUT->footer();
2 changes: 1 addition & 1 deletion group/import_form.php
Expand Up @@ -23,7 +23,7 @@ function definition() {


$mform->addElement('hidden', 'id'); $mform->addElement('hidden', 'id');


$this->add_action_buttons(true, get_string('importgroups')); $this->add_action_buttons(true, get_string('importgroups', 'core_group'));


$this->set_data($data); $this->set_data($data);
} }
Expand Down
2 changes: 1 addition & 1 deletion group/index.php
Expand Up @@ -215,7 +215,7 @@
. get_string('autocreategroups', 'group') . '" /></p>'."\n"; . get_string('autocreategroups', 'group') . '" /></p>'."\n";


echo '<p><input type="submit" name="act_showimportgroups" id="showimportgroups" value="' echo '<p><input type="submit" name="act_showimportgroups" id="showimportgroups" value="'
. get_string('importgroups') . '" /></p>'."\n"; . get_string('importgroups', 'core_group') . '" /></p>'."\n";


echo '</td>'."\n"; echo '</td>'."\n";
echo '<td>'."\n"; echo '<td>'."\n";
Expand Down
9 changes: 9 additions & 0 deletions lang/en/group.php
Expand Up @@ -114,6 +114,15 @@
$string['groupsvisible'] = 'Visible groups'; $string['groupsvisible'] = 'Visible groups';
$string['grouptemplate'] = 'Group @'; $string['grouptemplate'] = 'Group @';
$string['hidepicture'] = 'Hide picture'; $string['hidepicture'] = 'Hide picture';
$string['importgroups'] = 'Import groups';
$string['importgroups_help'] = 'Groups may be imported via text file. The format of the file should be as follows:
* Each line of the file contains one record
* Each record is a series of data separated by commas
* The first record contains a list of fieldnames defining the format of the rest of the file
* Required fieldname is groupname
* Optional fieldnames are description, enrolmentkey, picture, hidepicture';
$string['importgroups_link'] = 'group/import';
$string['javascriptrequired'] = 'This page requires JavaScript to be enabled.'; $string['javascriptrequired'] = 'This page requires JavaScript to be enabled.';
$string['members'] = 'Members per group'; $string['members'] = 'Members per group';
$string['membersofselectedgroup'] = 'Members of:'; $string['membersofselectedgroup'] = 'Members of:';
Expand Down
1 change: 0 additions & 1 deletion lang/en/moodle.php
Expand Up @@ -859,7 +859,6 @@
$string['importdataexported'] = 'Exported data from \'from\' course successfully.<br /> Continue to import into your \'to\' course.'; $string['importdataexported'] = 'Exported data from \'from\' course successfully.<br /> Continue to import into your \'to\' course.';
$string['importdatafinished'] = 'Import complete! Continue to your course'; $string['importdatafinished'] = 'Import complete! Continue to your course';
$string['importdatafrom'] = 'Find a course to import data from:'; $string['importdatafrom'] = 'Find a course to import data from:';
$string['importgroups'] = 'Import groups';
$string['inactive'] = 'Inactive'; $string['inactive'] = 'Inactive';
$string['include'] = 'Include'; $string['include'] = 'Include';
$string['includeallusers'] = 'Include all users'; $string['includeallusers'] = 'Include all users';
Expand Down

0 comments on commit 82bbf32

Please sign in to comment.