Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -76,19 +76,24 @@ |
77 | 77 | if( $count > 0 ) { |
78 | 78 | |
79 | 79 | # Add the prefs JS for the tabset |
80 | | - $wgOut->addScript( "<script src=\"$wgStylePath/common/prefs.js?269\"></script>" ); |
| 80 | + #$wgOut->addScript( "<script src=\"$wgStylePath/common/prefs.js\"></script>" ); |
81 | 81 | |
82 | 82 | $editPage->textbox1 = str_replace( "\x07", "", $content ); |
83 | 83 | |
84 | 84 | $jsFormsList = array(); |
85 | | - $tabset = ""; |
| 85 | + $tabset = "<div class=\"tabset\">"; |
| 86 | + $tabset .= "<fieldset><legend>" . wfMsg( 'recordadmin-properties' ) . "</legend>"; |
| 87 | + $tabset .= wfMsg( 'recordadmin-edit-info' ) . "</fieldset>"; |
86 | 88 | foreach( $records as $type => $record ) { |
87 | 89 | $jsFormsList[] = "'$type'"; |
88 | 90 | $this->preProcessForm( $type ); |
89 | 91 | $this->examineForm(); |
90 | 92 | $this->populateForm( $this->valuesFromText( $record ) ); |
| 93 | + $tabset .= "<fieldset><legend>$type " . strtolower( wfMsg( 'recordadmin-properties' ) ) . "</legend>\n"; |
91 | 94 | $tabset .= "<form id=\"$type-form\" class=\"$type-record recordadmin\">$this->form</form>\n"; |
| 95 | + $tabset .= "</fieldset>"; |
92 | 96 | } |
| 97 | + $tabset .= "</div>"; |
93 | 98 | $jsFormsList = join( ', ', $jsFormsList ); |
94 | 99 | |
95 | 100 | # Add the tabset before the normal edit form |
Index: trunk/extensions/RecordAdmin/RecordAdmin.i18n.php |
— | — | @@ -55,6 +55,7 @@ |
56 | 56 | 'recordadmin-export-pdf' => 'PDF', |
57 | 57 | 'recordadmin-notset' => 'No "$1"', |
58 | 58 | 'recordadmin-edit-info' => 'This page contains templates which have their own forms which you can fill in from this tab-set', |
| 59 | + 'recordadmin-properties' => 'Properties', |
59 | 60 | ); |
60 | 61 | |
61 | 62 | /** Message documentation (Message documentation) |