Index: trunk/extensions/EducationProgram/EducationProgram.php |
— | — | @@ -402,6 +402,9 @@ |
403 | 403 | 'scripts' => array( |
404 | 404 | 'ep.formpage.js', |
405 | 405 | ), |
| 406 | + 'styles' => array( |
| 407 | + 'ep.formpage.css', |
| 408 | + ), |
406 | 409 | 'dependencies' => array( |
407 | 410 | 'jquery.ui.button', |
408 | 411 | ), |
Index: trunk/extensions/EducationProgram/actions/EditCourseAction.php |
— | — | @@ -128,6 +128,7 @@ |
129 | 129 | $fields['name'] = array ( |
130 | 130 | 'type' => 'text', |
131 | 131 | 'label-message' => 'ep-course-edit-name', |
| 132 | + 'help-message' => 'ep-course-help-name', |
132 | 133 | 'required' => true, |
133 | 134 | ); |
134 | 135 | |
— | — | @@ -144,6 +145,7 @@ |
145 | 146 | $fields['mc'] = array ( |
146 | 147 | 'class' => 'EPHTMLCombobox', |
147 | 148 | 'label-message' => 'ep-course-edit-mc', |
| 149 | + 'help-message' => 'ep-course-help-mc', |
148 | 150 | 'required' => true, |
149 | 151 | 'options' => array_combine( $mcs, $mcs ), |
150 | 152 | ); |
— | — | @@ -161,6 +163,7 @@ |
162 | 164 | $fields['token'] = array ( |
163 | 165 | 'type' => 'text', |
164 | 166 | 'label-message' => 'ep-course-edit-token', |
| 167 | + 'help-message' => 'ep-course-help-token', |
165 | 168 | 'maxlength' => 255, |
166 | 169 | 'size' => 20, |
167 | 170 | 'validation-callback' => function ( $value, array $alldata = null ) { |
Index: trunk/extensions/EducationProgram/includes/EPFailForm.php |
— | — | @@ -20,15 +20,15 @@ |
21 | 21 | */ |
22 | 22 | function wrapForm( $html ) { |
23 | 23 | |
24 | | - # Include a <fieldset> wrapper for style, if requested. |
| 24 | + // Include a <fieldset> wrapper for style, if requested. |
25 | 25 | if ( $this->mWrapperLegend !== false ) { |
26 | 26 | $html = Xml::fieldset( $this->mWrapperLegend, $html ); |
27 | 27 | } |
28 | | - # Use multipart/form-data |
| 28 | + // Use multipart/form-data |
29 | 29 | $encType = $this->mUseMultipart |
30 | 30 | ? 'multipart/form-data' |
31 | 31 | : 'application/x-www-form-urlencoded'; |
32 | | - # Attributes |
| 32 | + // Attributes |
33 | 33 | $attribs = array( |
34 | 34 | 'action' => $this->getTitle()->getFullURL( $this->query ), |
35 | 35 | 'method' => $this->mMethod, |
Index: trunk/extensions/EducationProgram/EducationProgram.i18n.php |
— | — | @@ -354,13 +354,16 @@ |
355 | 355 | 'ep-course-edit-start' => 'Start date', |
356 | 356 | 'ep-course-edit-end' => 'End date', |
357 | 357 | 'ep-course-edit-token' => 'Enrollment token', |
| 358 | + 'ep-course-help-token' => 'Optional. When filled in, students will need to provide this token in order to enroll. This prevents non-students from signing up.', |
358 | 359 | 'ep-course-edit-description' => 'Description', |
359 | 360 | 'ep-course-edit-name-format' => '$1 ($2)', |
360 | 361 | 'ep-course-edit-name' => 'Page title', |
| 362 | + 'ep-course-help-name' => 'The title of the course page. By convention this should be the course name followed by the term in brackets.', |
361 | 363 | 'ep-course-edit-field' => 'Field of study', |
362 | 364 | 'ep-course-edit-level' => 'Course level', |
363 | 365 | 'ep-course-edit-term' => 'Academic term', |
364 | 366 | 'ep-course-edit-mc' => 'Course name', |
| 367 | + 'ep-course-help-mc' => 'The name of the course. If this course has already run in a previous term, it should have the same name.', |
365 | 368 | 'ep-course-edit-lang' => 'Course language', |
366 | 369 | 'ep-addcourse' => 'There is no course with this name yet, but you can add it.', |
367 | 370 | 'ep-editcourse' => 'You are editing an existing course.', |
Index: trunk/extensions/EducationProgram/resources/ep.formpage.css |
— | — | @@ -0,0 +1,13 @@ |
| 2 | +/** |
| 3 | + * CSS for the Education Program MediaWiki extension. |
| 4 | + * @see https://www.mediawiki.org/wiki/Extension:Education_Program |
| 5 | + * |
| 6 | + * @licence GNU GPL v3 or later |
| 7 | + * @author Jeroen De Dauw <jeroendedauw at gmail dot com> |
| 8 | + */ |
| 9 | + |
| 10 | +td.htmlform-tip { |
| 11 | + font-size: x-small; |
| 12 | + padding: .2em 2em; |
| 13 | + color: #666666; |
| 14 | +} |
\ No newline at end of file |
Property changes on: trunk/extensions/EducationProgram/resources/ep.formpage.css |
___________________________________________________________________ |
Added: svn:eol-style |
1 | 15 | + native |