Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -437,11 +437,11 @@ |
438 | 438 | $namespace_labels = $sfgContLang->getNamespaces(); |
439 | 439 | $form_label = $namespace_labels[SF_NS_FORM]; |
440 | 440 | $form_names = SFUtils::getAllForms(); |
441 | | - $select_body = ""; |
| 441 | + $select_body = "\n"; |
442 | 442 | foreach ( $form_names as $form_name ) { |
443 | 443 | $select_body .= "\t" . Xml::element( 'option', null, $form_name ) . "\n"; |
444 | 444 | } |
445 | | - return "\t$form_label" . wfMsg( 'colon-separator' ) . Xml::tags( 'select', array( 'name' => 'form' ), $select_body ) . "\n"; |
| 445 | + return "\t" . Xml::tags( 'label', array( 'for' => 'formSelector' ), $form_label . wfMsg( 'colon-separator' ) ) . "\n" . Xml::tags( 'select', array( 'id' => 'formSelector', 'name' => 'form' ), $select_body ) . "\n"; |
446 | 446 | } |
447 | 447 | |
448 | 448 | /** |