Skip to content

Commit

Permalink
Improvement: Add info about no enrollink triggered when user buys 1 s…
Browse files Browse the repository at this point in the history
…eat for himself Wunderbyte-GmbH#800
  • Loading branch information
eynimeni committed Jan 16, 2025
1 parent 58d0193 commit 3ee5d69
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions classes/form/condition/customform_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,18 @@ function ($userbookings) use ($identifier, $expectedvalue) {
'customform_enroluserwhobookedcheckbox_' . $formelementvalue->formtype . '_' . $counter,
1
);
$mform->addElement(
'static',
'infoenroluserwhobookedstatic',
'',
get_string('enroluserwhobookedtocoursewarning', 'mod_booking')
);
$mform->hideIf(
'infoenroluserwhobookedstatic',
$identifier,
'neq',
'1'
);
}

$counter++;
Expand Down
1 change: 1 addition & 0 deletions lang/de/booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -1047,6 +1047,7 @@
</div>';
$string['enroluserstowaitinglist'] = "Buchende NutzerInnen auf die Warteliste setzen und erst nach Bestätigung einschreiben?";
$string['enroluserwhobookedtocourse'] = "Möchten Sie selbst auch in den verknüpften Kurs eingeschrieben werden? <br> In diesem Fall wird von Kontingent der gekauften Plätze direkt ein Platz abgezogen.";
$string['enroluserwhobookedtocoursewarning'] = "Wenn Sie nur einen Platz kaufen und selbst eingeschrieben werden, wird kein Einschreibelink generiert.";
$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
1 change: 1 addition & 0 deletions lang/en/booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,7 @@
</div>';
$string['enroluserstowaitinglist'] = "Put booking users on waitinglist and enrol only after confirmation?";
$string['enroluserwhobookedtocourse'] = "Do you also want to be enrolled to the linked course? <br> In this case, your seat will be deducted from the purchased spots.";
$string['enroluserwhobookedtocoursewarning'] = "If you purchase only one seat and choose to be enrolled yourself, there will be no enrollment link created.";
$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 3ee5d69

Please sign in to comment.