Visual bug fix when selecting prerequisites.

The label was misplaced. Radiobutton was on top of the icone and not
aligned with the 'none' option.
remotes/angel/1.11.x
Satyan JACQUENS 8 years ago
parent 4e0b10bffe
commit f5f3f74ec8
  1. 2
      main/lp/learnpath.class.php

@ -8657,8 +8657,8 @@ class learnpath
$return .= '<tr>';
$return .= '<td class="radio"' . (($item['item_type'] != TOOL_QUIZ && $item['item_type'] != TOOL_HOTPOTATOES) ? ' colspan="3"' : '') . '>';
$return .= '<label for="id' . $item['id'] . '">';
$return .= '<input' . (in_array($prerequisiteId, array($item['id'], $item['ref'])) ? ' checked="checked" ' : '') . ($item['item_type'] == 'dir' ? ' disabled="disabled" ' : ' ') . 'id="id' . $item['id'] . '" name="prerequisites" style="margin-left:' . $item['depth'] * 10 . 'px; margin-right:10px;" type="radio" value="' . $item['id'] . '" />';
$return .= '<label for="id' . $item['id'] . '">';
$icon_name = str_replace(' ', '', $item['item_type']);
if (file_exists('../img/lp_' . $icon_name . '.png')) {

Loading…
Cancel
Save