juacas / moodle-mod_treasurehunt

Activity module for Moodle that allows to run outdoor treasure-chases with geolocation and QR codes
GNU General Public License v3.0
6 stars 9 forks source link

QR scan/generate buttons in editstage_form.php are not visible with essential theme #19

Closed asanufriev closed 6 years ago

asanufriev commented 6 years ago

Maybe you shouldn't use buttons group:

//---------------editstage_form.php---------------

// $buttonarray = array(); // $buttonarray[] = $mform->createElement('button', 'scanQR', get_string('scanQR_scanbutton', 'treasurehunt')); // $buttonarray[] = $mform->createElement('button', 'generateQR', get_string('scanQR_generatebutton', 'treasurehunt')); // // $buttonarray[] = &$mform->createElement('submit', 'submitbutton', get_string('savechanges')); // // $buttonarray[] = &$mform->createElement('cancel'); // $mform->addGroup($buttonarray, 'buttonar', '', array(' '), false); // $mform->closeHeaderBefore('buttonar'); $mform->addElement('button', 'scanQR', get_string('scanQR_scanbutton', 'treasurehunt')); $mform->addElement('button', 'generateQR', get_string('scanQR_generatebutton', 'treasurehunt')); $mform->disabledIf('generateQR','qrtext','eq',''); //---------------editstage_form.php---------------

juacas commented 6 years ago

Thank you for your advice. You have your fix in09e652121f3439c082c5d6866f7b20b47672b912 Now the buttons are not in the same line but Essential theme renders them.