diff --git a/contact.php b/contact.php index c08dd18fcc29ec48822d477eef02ff994cb9dcb3..8abc402662427bcbeb631a863f3d14f95e505398 100644 --- a/contact.php +++ b/contact.php @@ -24,8 +24,10 @@ $strtitle = get_string('pluginname','local_hsh'); $PAGE->set_title($strtitle); $PAGE->set_heading($strtitle); +$formtitle = get_string('formtitle', 'local_hsh'); +$intro_1 = get_string('intro_1', 'local_hsh'); +$intro_2 = get_string('intro_2', 'local_hsh'); -// Standard form processing if statement. if ($requestform->is_cancelled()){ redirect($returnurl); } else if ($data = $requestform->get_data()) { @@ -50,7 +52,8 @@ contactform::create($eventdata); $PAGE->navbar->add($strtitle); echo $OUTPUT->header(); -echo $OUTPUT->heading($strtitle); +echo $OUTPUT->heading($formtitle); +echo ('<p>' . $intro_1 . '<br />' . $intro_2 . '</p>'); // Show the request form. $requestform->display(); echo $OUTPUT->footer(); diff --git a/contact_form.php b/contact_form.php index 942393eaeb82c01115d8bcb33842e38c8aebfe05..572d38d3a68cf840246dc60aeaaef918f2f8b903 100644 --- a/contact_form.php +++ b/contact_form.php @@ -47,11 +47,12 @@ class contact_form extends moodleform { $mform->setDefault('email', $USER->email); $mform->setDefault('telephone', $USER->phone1); } +// > 2022-02-01 Elke Kreim: Remove recaptcha as it does not work // if (!empty($CFG->recaptchapublickey) && !empty($CFG->recaptchaprivatekey)) { // $mform->addElement('recaptcha', 'recaptcha_element', get_string('security_question', 'auth'), 'style="margin: 10em"'); // // } - +// < $this->add_action_buttons(true, get_string('submit', 'local_hsh')); } diff --git a/lang/de/local_hsh.php b/lang/de/local_hsh.php index 3a67a9cbdf7bb58e1f7a2a441db27c40e1c3dd09..a9d594fee75640ede8387a42809c4e73e3b753ff 100644 --- a/lang/de/local_hsh.php +++ b/lang/de/local_hsh.php @@ -6,6 +6,9 @@ */ $string['pluginname'] = 'Kontaktformular'; +$string['formtitle'] = 'Kontakt zum Servicezentrum Lehre'; +$string['intro_1'] = 'Sie haben Fragen zu Moodle oder benötigen Unterstützung bei der Umsetzung Ihrer digitalen Lehre?'; +$string['intro_2'] = 'Schreiben Sie uns Ihr Anliegen über das Kontaktformular. Wir melden uns zeitnah bei Ihnen.'; $string['missingfield'] = 'Pflichtfeld!'; $string['contactform'] = 'Kontaktformular'; $string['contactto'] = 'Anfrage an'; diff --git a/lang/en/local_hsh.php b/lang/en/local_hsh.php index 55a3213d845510fc39a0094729b1a6414ecde146..21d5fb811e0e13ac254ba37e0654b627110ec588 100644 --- a/lang/en/local_hsh.php +++ b/lang/en/local_hsh.php @@ -5,6 +5,9 @@ * Time: 10:48 */ $string['pluginname'] = 'HSH edits'; +$string['formtitle'] = 'Kontakt zum Servicezentrum Lehre'; +$string['intro_1'] = 'Sie haben Fragen zu Moodle oder benötigen Unterstützung bei der Umsetzung Ihrer digitalen Lehre?'; +$string['intro_2'] = 'Schreiben Sie uns Ihr Anliegen über das Kontaktformular. Wir melden uns zeitnah bei Ihnen.'; $string['missingfield'] = 'Required field!'; $string['contactform'] = 'Contact us'; $string['contactto'] = 'Request for';