Skip to content

Commit

Permalink
Add alert about reference to moodle course (#711, #650)
Browse files Browse the repository at this point in the history
  • Loading branch information
eynimeni committed Nov 26, 2024
1 parent 5ebb212 commit 29c20f0
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions classes/bo_availability/conditions/customform.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,19 @@ public function add_condition_to_mform(MoodleQuickForm &$mform, int $optionid =
'',
get_string('customformselectoptions', 'mod_booking')
);

$mform->addElement(
'static',
'info_about_enrolusersaction' . $counter,
'',
get_string('enrolusersaction:alert', 'mod_booking');
);
$mform->hideIf(
'info_about_enrolusersaction' . $counter,
'bo_cond_customform_select_1_' . $counter,
'neq',
'enrolusersaction'
);
}

$mform->hideIf('info_about_select_options_' . $counter, 'bo_cond_customform_restrict', 'notchecked');
Expand Down
5 changes: 5 additions & 0 deletions lang/de/booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -1018,6 +1018,11 @@
$string['enrolmentstatus_help'] = 'Achtung: Damit die automatische Einschreibung funktioniert,
müssen Sie in den Einstellungen der Buchungsinstanz "Nutzer:innen automatisch einschreiben" auf "Ja" setzen.';
$string['enrolmultipleusers'] = 'Mehrere Nutzer:innen einschreiben';
$string['enrolusersaction:alert'] = '<div class="alert alert-info" role="alert">
<i class="fa fa-info-circle"></i>
<span><b>Diese Funktion bezieht sich auf den ausgewählten Kurs im Bereich Moodle Kurse.</b> <br>
</span>
</div>';
$string['enteruserprofilefield'] = "Wähle Nutzer:innen nach eingegebenem Wert für Profilfeld. Achtung! Das betrifft ALLE Nutzer:inne nauf der Plattform.";
$string['entervalidurl'] = 'Bitte geben Sie eine gültige URL an!';
$string['entities'] = 'Orte mit Entities Plugin auswählen';
Expand Down
5 changes: 5 additions & 0 deletions lang/en/booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,11 @@
$string['enrolmentstatus_help'] = 'Notice: In order for automatic enrolment to work, you need to change the booking instance setting
"Automatically enrol users" to "Yes".';
$string['enrolmultipleusers'] = 'Enrol multiple users';
$string['enrolusersaction:alert'] = '<div class="alert alert-info" role="alert">
<i class="fa fa-info-circle"></i>
<span><b>This function refers to the selected course in the Moodle Courses area..</b> <br>
</span>
</div>';
$string['enteruserprofilefield'] = "Select users by entering a value for custom user profile field. Attention! This targets all the users on the plattform.";
$string['entervalidurl'] = 'Please, enter a valid URL!';
$string['entities'] = 'Choose places with entities plugin';
Expand Down

0 comments on commit 29c20f0

Please sign in to comment.