Increasing the displayed size of course->shortinfo to 20. MDL-10026

(bigger but enough smaller than the fullname field)
This commit is contained in:
stronk7 2007-08-09 12:26:43 +00:00
parent 90274c7329
commit 4f6bd3b9c1
3 changed files with 3 additions and 3 deletions

View File

@ -222,7 +222,7 @@ function selectItemInCheckboxByName(formId, checkName, checked ) {
echo "<td align=\"right\">";
print_string("shortname");
echo " :</td>";
echo "<td><input type=\"text\" name=\"shortname\" maxlength=\"100\" size=\"10\" value=\"$form1->shortname\" alt=\"".get_string("shortname")."\" />" ;
echo "<td><input type=\"text\" name=\"shortname\" maxlength=\"100\" size=\"20\" value=\"$form1->shortname\" alt=\"".get_string("shortname")."\" />" ;
helpbutton("courseshortname", get_string("shortname")) ;
if (isset($err["shortname"])) formerr($err["shortname"]);
echo "<tr valign=\"top\" >";

View File

@ -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');

View File

@ -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);