From f9a152f02c0e89aa6943d204a6106bdc09e82652 Mon Sep 17 00:00:00 2001 From: Elke Kreim <elke.kreim@hs-hannover.de> Date: Thu, 5 May 2022 15:30:41 +0200 Subject: [PATCH] Change placeholder text and field size --- lang/de/local_hsh.php | 2 +- lang/en/local_hsh.php | 2 +- modulcode_form.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/de/local_hsh.php b/lang/de/local_hsh.php index 6d4b8dd..6e73d27 100644 --- a/lang/de/local_hsh.php +++ b/lang/de/local_hsh.php @@ -145,7 +145,7 @@ $string['navigationtext'] = 'Teilnehmer*innen als Liste (Excel)'; // modulecode form $string['modulecode'] = 'Modulkürzel'; -$string['modulecode_default'] = 'Geben Sie das Modulkürzel des Kurses ein.'; +$string['modulecode_default'] = 'Geben Sie das Modulkürzel des Kurses ein, z.B. EIT-217-01'; $string['modulecode_submit'] = 'Liste erstellen'; $string['modulecode_rule'] = 'Modulkürzel fehlt.'; diff --git a/lang/en/local_hsh.php b/lang/en/local_hsh.php index 275acae..9150ce3 100644 --- a/lang/en/local_hsh.php +++ b/lang/en/local_hsh.php @@ -157,7 +157,7 @@ $string['navigationtext'] = 'Excel export'; // modulecode form $string['modulecode'] = 'Module code'; -$string['modulecode_default'] = 'Enter the module code of the course.'; +$string['modulecode_default'] = 'Enter the module code of the course, e.g. EIT-217-01.'; $string['modulecode_submit'] = 'Create list'; $string['modulecode_rule'] = 'Missing module code.'; diff --git a/modulcode_form.php b/modulcode_form.php index edf9d04..18989f9 100644 --- a/modulcode_form.php +++ b/modulcode_form.php @@ -18,7 +18,7 @@ class modulcode_form extends moodleform { get_string('modulecode', 'local_hsh'), array( 'placeholder'=> get_string('modulecode_default', 'local_hsh'), - 'width'=>'100%', + 'size'=>'100%', ) ); $mform->setType('modulecode', PARAM_NOTAGS); -- GitLab