From 4f6bd3b9c129c4d88d5f7ad02c3b5a2d53f91709 Mon Sep 17 00:00:00 2001 From: stronk7 Date: Thu, 9 Aug 2007 12:26:43 +0000 Subject: [PATCH] Increasing the displayed size of course->shortinfo to 20. MDL-10026 (bigger but enough smaller than the fullname field) --- backup/restore_form.html | 2 +- course/edit_form.php | 2 +- course/request_form.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backup/restore_form.html b/backup/restore_form.html index a077e0826f..d7906f0dbd 100644 --- a/backup/restore_form.html +++ b/backup/restore_form.html @@ -222,7 +222,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) { echo ""; print_string("shortname"); echo " :"; - echo "shortname\" alt=\"".get_string("shortname")."\" />" ; + echo "shortname\" alt=\"".get_string("shortname")."\" />" ; helpbutton("courseshortname", get_string("shortname")) ; if (isset($err["shortname"])) formerr($err["shortname"]); echo ""; diff --git a/course/edit_form.php b/course/edit_form.php index 43ed3a74fb..50518d0f94 100644 --- a/course/edit_form.php +++ b/course/edit_form.php @@ -69,7 +69,7 @@ class course_edit_form extends moodleform { $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client'); $mform->setType('fullname', PARAM_MULTILANG); - $mform->addElement('text','shortname', get_string('shortname'),'maxlength="100" size="10"'); + $mform->addElement('text','shortname', get_string('shortname'),'maxlength="100" size="20"'); $mform->setHelpButton('shortname', array('courseshortname', get_string('shortname')), true); $mform->setDefault('shortname', get_string('defaultcourseshortname')); $mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client'); diff --git a/course/request_form.php b/course/request_form.php index 3e2233c48f..ab40d4b20d 100644 --- a/course/request_form.php +++ b/course/request_form.php @@ -10,7 +10,7 @@ class course_request_form extends moodleform { $mform->addRule('fullname', get_string('missingfullname'), 'required', null, 'client'); $mform->setType('fullname', PARAM_TEXT); - $mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="100" size="10"'); + $mform->addElement('text', 'shortname', get_string('shortname'), 'maxlength="100" size="20"'); $mform->addRule('shortname', get_string('missingshortname'), 'required', null, 'client'); $mform->setType('shortname', PARAM_TEXT); -- 2.39.5