Skip to content

Commit

Permalink
Fix position of Include QR code option
Browse files Browse the repository at this point in the history
  • Loading branch information
Noemie Ariste authored and danmarsden committed Mar 11, 2024
1 parent a1ac09b commit f0a295b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions classes/form/addsession.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,14 +240,16 @@ public function definition() {
$mform->disabledif('studentpassword', 'rotateqrcode', 'checked');
$mgroup[] = & $mform->createElement('checkbox', 'randompassword', '', get_string('randompassword', 'attendance'));
$mform->disabledif('randompassword', 'rotateqrcode', 'checked');
$mgroup[] = & $mform->createElement('checkbox', 'includeqrcode', '', get_string('includeqrcode', 'attendance'));
$mform->disabledif('includeqrcode', 'rotateqrcode', 'checked');

$mform->addGroup($mgroup, 'passwordgrp', get_string('passwordgrp', 'attendance'), array(' '), false);

$mform->setType('studentpassword', PARAM_TEXT);
$mform->addHelpButton('passwordgrp', 'passwordgrp', 'attendance');

$mform->addElement('checkbox', 'includeqrcode', '', get_string('includeqrcode', 'attendance'));
$mform->hideif('includeqrcode', 'studentscanmark', 'notchecked');
$mform->disabledif('includeqrcode', 'rotateqrcode', 'checked');

$mform->addElement('checkbox', 'rotateqrcode', '', get_string('rotateqrcode', 'attendance'));
$mform->hideif('rotateqrcode', 'studentscanmark', 'notchecked');

Expand Down

0 comments on commit f0a295b

Please sign in to comment.