Explorar o código

Checkboxes without labels are a pain to use... Now text is clickable as well.

Alexandros Vellis %!s(int64=19) %!d(string=hai) anos
pai
achega
ca596d3c27
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      templates/default/folder_manip.tpl

+ 2 - 1
templates/default/folder_manip.tpl

@@ -192,7 +192,8 @@ extract($t);
       </select>
       </select>
 */
 */
             foreach ($subbox_option_list as $folder) {
             foreach ($subbox_option_list as $folder) {
-                echo '<input type="checkbox" name="folder_names[]" value="'.$folder['Value'].'" />'.$folder['Display'].'<br />';
+                echo '<input type="checkbox" name="folder_names[]" id="sub_'.$folder['Value'].'" value="'.$folder['Value'].'" /> '.
+                    '<label for="sub_'.$folder['Value'].'">'.$folder['Display'].'</label><br />';
             }
             }
             ?>
             ?>
       </div>
       </div>