Skip to content
Snippets Groups Projects
Commit 96202612 authored by Elke Kreim's avatar Elke Kreim
Browse files

Add text to contact form

parent 2285669d
No related branches found
No related tags found
No related merge requests found
...@@ -24,8 +24,10 @@ $strtitle = get_string('pluginname','local_hsh'); ...@@ -24,8 +24,10 @@ $strtitle = get_string('pluginname','local_hsh');
$PAGE->set_title($strtitle); $PAGE->set_title($strtitle);
$PAGE->set_heading($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()){ if ($requestform->is_cancelled()){
redirect($returnurl); redirect($returnurl);
} else if ($data = $requestform->get_data()) { } else if ($data = $requestform->get_data()) {
...@@ -50,7 +52,8 @@ contactform::create($eventdata); ...@@ -50,7 +52,8 @@ contactform::create($eventdata);
$PAGE->navbar->add($strtitle); $PAGE->navbar->add($strtitle);
echo $OUTPUT->header(); echo $OUTPUT->header();
echo $OUTPUT->heading($strtitle); echo $OUTPUT->heading($formtitle);
echo ('<p>' . $intro_1 . '<br />' . $intro_2 . '</p>');
// Show the request form. // Show the request form.
$requestform->display(); $requestform->display();
echo $OUTPUT->footer(); echo $OUTPUT->footer();
...@@ -47,11 +47,12 @@ class contact_form extends moodleform { ...@@ -47,11 +47,12 @@ class contact_form extends moodleform {
$mform->setDefault('email', $USER->email); $mform->setDefault('email', $USER->email);
$mform->setDefault('telephone', $USER->phone1); $mform->setDefault('telephone', $USER->phone1);
} }
// > 2022-02-01 Elke Kreim: Remove recaptcha as it does not work
// if (!empty($CFG->recaptchapublickey) && !empty($CFG->recaptchaprivatekey)) { // if (!empty($CFG->recaptchapublickey) && !empty($CFG->recaptchaprivatekey)) {
// $mform->addElement('recaptcha', 'recaptcha_element', get_string('security_question', 'auth'), 'style="margin: 10em"'); // $mform->addElement('recaptcha', 'recaptcha_element', get_string('security_question', 'auth'), 'style="margin: 10em"');
// //
// } // }
// <
$this->add_action_buttons(true, get_string('submit', 'local_hsh')); $this->add_action_buttons(true, get_string('submit', 'local_hsh'));
} }
......
...@@ -6,6 +6,9 @@ ...@@ -6,6 +6,9 @@
*/ */
$string['pluginname'] = 'Kontaktformular'; $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['missingfield'] = 'Pflichtfeld!';
$string['contactform'] = 'Kontaktformular'; $string['contactform'] = 'Kontaktformular';
$string['contactto'] = 'Anfrage an'; $string['contactto'] = 'Anfrage an';
......
...@@ -5,6 +5,9 @@ ...@@ -5,6 +5,9 @@
* Time: 10:48 * Time: 10:48
*/ */
$string['pluginname'] = 'HSH edits'; $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['missingfield'] = 'Required field!';
$string['contactform'] = 'Contact us'; $string['contactform'] = 'Contact us';
$string['contactto'] = 'Request for'; $string['contactto'] = 'Request for';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment