Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -1518,7 +1518,7 @@ |
1519 | 1519 | // Add a warning in, if we're editing an existing page and that |
1520 | 1520 | // page appears to not have been created with this form. |
1521 | 1521 | if ( $this->mPageTitle->exists() && ( $existing_page_content != '' ) && ! $source_page_matches_this_form ) { |
1522 | | - $form_text = "\t" . '<div class="warningbox">' . wfMsg( 'sf_formedit_formwarning', $this->mPageTitle->getFullURL() ) . "</div>\n" . $form_text; |
| 1522 | + $form_text = "\t" . '<div class="warningbox">' . wfMsg( 'sf_formedit_formwarning', $this->mPageTitle->getFullURL() ) . "</div>\n<br clear=\"both\" />\n" . $form_text; |
1523 | 1523 | } |
1524 | 1524 | |
1525 | 1525 | // add form bottom, if no custom "standard inputs" have been defined |
Index: trunk/extensions/SemanticForms/skins/SemanticForms.css |
— | — | @@ -80,13 +80,26 @@ |
81 | 81 | width: auto; |
82 | 82 | background: #eeeeee; |
83 | 83 | } |
84 | | -#sfForm div.warningbox { |
| 84 | +/** |
| 85 | + * errorbox and warningbox CSS classes were added in MediaWiki 1.19 - |
| 86 | + * the CSS here exists for backwards compatibility, and to provide |
| 87 | + * some improvements for SF's specific usage. |
| 88 | + */ |
| 89 | +.errorbox, .warningbox { |
| 90 | + margin: 20px 0 0 0; |
| 91 | + width: auto; |
| 92 | + float: none; |
| 93 | +} |
| 94 | +.errorbox { |
85 | 95 | border: 2px solid red; |
| 96 | + background-color: #fff2f2; |
86 | 97 | padding: 5px 10px 5px 10px; |
87 | | - margin: 25px; |
88 | | - width: auto; |
89 | | - float:none; |
90 | 98 | } |
| 99 | +.warningbox { |
| 100 | + border: 2px solid #ff8c00; |
| 101 | + background-color: #ffffc0; |
| 102 | + padding: 12px; |
| 103 | +} |
91 | 104 | span.errorMessage { |
92 | 105 | color: red; |
93 | 106 | } |
Index: trunk/extensions/SemanticForms/libs/SemanticForms.js |
— | — | @@ -605,7 +605,7 @@ |
606 | 606 | if (num_errors > 0) { |
607 | 607 | // add error header, if it's not there already |
608 | 608 | if (jQuery("#form_error_header").size() == 0) { |
609 | | - jQuery("#contentSub").append('<div id="form_error_header" class="warningMessage" style="font-size: medium"><img src="' + sfgScriptPath + '/skins/MW-Icon-AlertMark.png" /> ' + sfgFormErrorsHeader + '</div>'); |
| 609 | + jQuery("#contentSub").append('<div id="form_error_header" class="errorbox" style="font-size: medium"><img src="' + sfgScriptPath + '/skins/MW-Icon-AlertMark.png" /> ' + sfgFormErrorsHeader + '</div><br clear="both" />'); |
610 | 610 | } |
611 | 611 | scroll(0, 0); |
612 | 612 | } else { |