publication MDL-24663 increase default metadata text field size
authorjerome mouneyrac <jerome@moodle.com>
Mon, 18 Oct 2010 09:00:06 +0000 (09:00 +0000)
committerjerome mouneyrac <jerome@moodle.com>
Mon, 18 Oct 2010 09:00:06 +0000 (09:00 +0000)
course/publish/forms.php
theme/canvas/style/course.css
theme/standard/style/course.css

index 7998e5d..7c3a0f5 100644 (file)
@@ -184,7 +184,8 @@ class course_publication_form extends moodleform {
         //the input parameters
         $mform->addElement('header', 'moodle', get_string('publicationinfo', 'hub'));
 
-        $mform->addElement('text', 'name', get_string('coursename', 'hub'));
+        $mform->addElement('text', 'name', get_string('coursename', 'hub'),
+                array('class' => 'metadatatext'));
         $mform->addRule('name', $strrequired, 'required', null, 'client');
         $mform->setType('name', PARAM_TEXT);
         $mform->setDefault('name', $defaultfullname);
@@ -197,7 +198,8 @@ class course_publication_form extends moodleform {
 
             $mform->addElement('hidden', 'share', $share);
 
-            $mform->addElement('text', 'demourl', get_string('demourl', 'hub'));
+            $mform->addElement('text', 'demourl', get_string('demourl', 'hub'),
+                array('class' => 'metadatatext'));
             $mform->setType('demourl', PARAM_URL);
             $mform->setDefault('demourl', new moodle_url("/course/view.php?id=" . $course->id));
             $mform->addHelpButton('demourl', 'demourl', 'hub');
@@ -216,12 +218,13 @@ class course_publication_form extends moodleform {
             $mform->addHelpButton('courseurlstring', 'courseurl', 'hub');
         }
 
-        $mform->addElement('text', 'courseshortname', get_string('courseshortname', 'hub'));
+        $mform->addElement('text', 'courseshortname', get_string('courseshortname', 'hub'),
+                array('class' => 'metadatatext'));
         $mform->setDefault('courseshortname', $defaultshortname);
         $mform->addHelpButton('courseshortname', 'courseshortname', 'hub');
 
         $mform->addElement('textarea', 'description', get_string('description'), array('rows' => 10,
-            'cols' => 20));
+            'cols' => 57));
         $mform->addRule('description', $strrequired, 'required', null, 'client');
         $mform->setDefault('description', $defaultsummary);
         $mform->setType('description', PARAM_TEXT);
@@ -234,27 +237,32 @@ class course_publication_form extends moodleform {
         $mform->addHelpButton('language', 'language', 'hub');
 
 
-        $mform->addElement('text', 'publishername', get_string('publishername', 'hub'));
+        $mform->addElement('text', 'publishername', get_string('publishername', 'hub'),
+                array('class' => 'metadatatext'));
         $mform->setDefault('publishername', $defaultpublishername);
         $mform->addRule('publishername', $strrequired, 'required', null, 'client');
         $mform->addHelpButton('publishername', 'publishername', 'hub');
 
-        $mform->addElement('text', 'publisheremail', get_string('publisheremail', 'hub'));
+        $mform->addElement('text', 'publisheremail', get_string('publisheremail', 'hub'),
+                array('class' => 'metadatatext'));
         $mform->setDefault('publisheremail', $defaultpublisheremail);
         $mform->addRule('publisheremail', $strrequired, 'required', null, 'client');
         $mform->addHelpButton('publisheremail', 'publisheremail', 'hub');
 
-        $mform->addElement('text', 'creatorname', get_string('creatorname', 'hub'));
+        $mform->addElement('text', 'creatorname', get_string('creatorname', 'hub'),
+                array('class' => 'metadatatext'));
         $mform->addRule('creatorname', $strrequired, 'required', null, 'client');
         $mform->setType('creatorname', PARAM_TEXT);
         $mform->setDefault('creatorname', $defaultcreatorname);
         $mform->addHelpButton('creatorname', 'creatorname', 'hub');
 
-        $mform->addElement('text', 'contributornames', get_string('contributornames', 'hub'));
+        $mform->addElement('text', 'contributornames', get_string('contributornames', 'hub'),
+                array('class' => 'metadatatext'));
         $mform->setDefault('contributornames', $defaultcontributornames);
         $mform->addHelpButton('contributornames', 'contributornames', 'hub');
 
-        $mform->addElement('text', 'coverage', get_string('tags', 'hub'));
+        $mform->addElement('text', 'coverage', get_string('tags', 'hub'),
+                array('class' => 'metadatatext'));
         $mform->setType('coverage', PARAM_TEXT);
         $mform->setDefault('coverage', $defaultcoverage);
         $mform->addHelpButton('coverage', 'tags', 'hub');
index 0718543..75512dd 100644 (file)
 
 #page-course-reset .generalbox {
        margin-bottom: 1em;
-}
\ No newline at end of file
+}
+
+/* Publication */
+#page-course-publish-metadata .metadatatext {width: 400px;}
\ No newline at end of file
index 92dcf68..7e4a36c 100644 (file)
 .course_category_tree .category .course.even {background-color:#f6f6f6;border-color:#eee;border-top-color: #f9f9f9;}
 .course_category_tree .category .course_info {right:3px;top:3px;}
 .course_category_tree .category .course:hover {background-color:#eee;}
+
+/* Publication */
+#page-course-publish-metadata .metadatatext {width: 400px;}
\ No newline at end of file