mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-28325 Enrolment: added help to the duration, start date and end date setting
The patch also fixes one typo in enrol_manual detected while working on this.
This commit is contained in:
parent
ecb8829273
commit
94f630e33f
7 changed files with 22 additions and 10 deletions
|
@ -69,14 +69,15 @@ class enrol_paypal_edit_form extends moodleform {
|
|||
|
||||
$mform->addElement('duration', 'enrolperiod', get_string('enrolperiod', 'enrol_paypal'), array('optional' => true, 'defaultunit' => 86400));
|
||||
$mform->setDefault('enrolperiod', $plugin->get_config('enrolperiod'));
|
||||
|
||||
$mform->addHelpButton('enrolperiod', 'enrolperiod', 'enrol_paypal');
|
||||
|
||||
$mform->addElement('date_selector', 'enrolstartdate', get_string('enrolstartdate', 'enrol_paypal'), array('optional' => true));
|
||||
$mform->setDefault('enrolstartdate', 0);
|
||||
|
||||
$mform->addHelpButton('enrolstartdate', 'enrolstartdate', 'enrol_paypal');
|
||||
|
||||
$mform->addElement('date_selector', 'enrolenddate', get_string('enrolenddate', 'enrol_paypal'), array('optional' => true));
|
||||
$mform->setDefault('enrolenddate', 0);
|
||||
$mform->addHelpButton('enrolenddate', 'enrolenddate', 'enrol_paypal');
|
||||
|
||||
$mform->addElement('hidden', 'id');
|
||||
$mform->addElement('hidden', 'courseid');
|
||||
|
|
|
@ -34,10 +34,13 @@ $string['currency'] = 'Currency';
|
|||
$string['defaultrole'] = 'Default role assignment';
|
||||
$string['defaultrole_desc'] = 'Select role which should be assigned to users during PayPal enrolments';
|
||||
$string['enrolenddate'] = 'End date';
|
||||
$string['enrolenddate_help'] = 'If enabled, users can be enrolled until this date only.';
|
||||
$string['enrolenddaterror'] = 'Enrolment end date cannot be earlier than start date';
|
||||
$string['enrolperiod'] = 'Enrolment period';
|
||||
$string['enrolperiod_desc'] = 'Default length of the enrolment period (in seconds).'; //TODO: fixme
|
||||
$string['enrolperiod'] = 'Enrolment duration';
|
||||
$string['enrolperiod_desc'] = 'Default length of time that the enrolment is valid (in seconds). If set to zero, the enrolment duration will be unlimited by default.';
|
||||
$string['enrolperiod_help'] = 'Length of time that the enrolment is valid, starting with the moment the user is enrolled. If disabled, the enrolment duration will be unlimited.';
|
||||
$string['enrolstartdate'] = 'Start date';
|
||||
$string['enrolstartdate_help'] = 'If enabled, users can be enrolled from this date onward only.';
|
||||
$string['mailadmins'] = 'Notify admin';
|
||||
$string['mailstudents'] = 'Notify students';
|
||||
$string['mailteachers'] = 'Notify teachers';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue