[FEATURE] Make table labels for import static clickable
authorMarkus Klein <klein.t3@mfc-linz.at>
Mon, 23 May 2011 22:36:08 +0000 (00:36 +0200)
committerGeorg Ringer <mail@ringerge.org>
Sat, 4 Jun 2011 05:20:43 +0000 (07:20 +0200)
An extension that provides static data shows up in the extension manager
with a list of checkboxes for each table to import.
The table names are not clickable, one has to target the tiny checkbox.

This fix adds the missing <label> tags around the table names.

Thanks to Christian Weiske for providing this patch.

Change-Id: Icba748674a854cb3bda032cdfc797c4ad5584639
Resolves: #26926
Releases: 4.6
Reviewed-on: http://review.typo3.org/2322
Reviewed-by: Christian Weiske
Tested-by: Christian Weiske
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/em/classes/install/class.tx_em_install.php

index 96e5b41..6b4226b 100644 (file)
@@ -882,8 +882,8 @@ class tx_em_Install {
                                                $dbStatus['static'][$table]['count'] = $insertCount[$table];
 
                                                $out .= '<tr>
-                                                       <td><input type="checkbox" name="TYPO3_INSTALL[database_import][' . $table . ']" checked="checked" value="' . md5($definition) . '" /></td>
-                                                       <td><strong>' . $table . '</strong></td>
+                                                       <td><input type="checkbox" id="check_table_' . $table . '" name="TYPO3_INSTALL[database_import][' . $table . ']" checked="checked" value="' . md5($definition) . '" /></td>
+                                                       <td><strong><label for="check_table_' . $table . '">' . $table . '</label></strong></td>
                                                        <td><img src="clear.gif" width="10" height="1" alt="" /></td>
                                                        <td nowrap="nowrap">' .
                                                                ($insertCount[$table] ?