mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
Increasing the displayed size of course->shortinfo to 20. MDL-10026
(bigger but enough smaller than the fullname field)
This commit is contained in:
parent
90274c7329
commit
4f6bd3b9c1
@ -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\" >";
|
||||
|
@ -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');
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user