#379 Another tweak to the category display
This commit is contained in:
parent
e663b9605f
commit
e01b7457fa
@ -65,7 +65,7 @@ while ($row = hesk_dbFetchAssoc($rs)) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
$row['css_style'] = $row['color'] == null ? 'color: black; border: solid 1px #000; padding-left: 14px' : 'background: ' . $row['color'];
|
$row['css_style'] = $row['color'] == null ? 'color: black; border: solid 1px #000;' : 'background: ' . $row['color'];
|
||||||
$categories[] = $row;
|
$categories[] = $row;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,12 +93,9 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
|||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<input type="checkbox" data-select-target="category-toggle" name="category-toggle" value="<?php echo $category['id']; ?>" checked>
|
<input type="checkbox" data-select-target="category-toggle" name="category-toggle" value="<?php echo $category['id']; ?>" checked>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="hide-on-overflow no-wrap event-category background-volatile" style="<?php echo $category['css_style']; ?>">
|
||||||
<div class="col-sm-1" style="<?php echo $category['css_style']; ?>"> </div>
|
|
||||||
<div class="col-sm-11 hide-on-overflow no-wrap">
|
|
||||||
<?php echo $category['name']; ?>
|
<?php echo $category['name']; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -82,12 +82,9 @@ require_once(HESK_PATH . 'inc/header.inc.php');
|
|||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<input type="checkbox" data-select-target="category-toggle" name="category-toggle" value="<?php echo $category['id']; ?>" checked>
|
<input type="checkbox" data-select-target="category-toggle" name="category-toggle" value="<?php echo $category['id']; ?>" checked>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="hide-on-overflow no-wrap event-category background-volatile" style="<?php echo $category['css_style']; ?>">
|
||||||
<div class="col-sm-1" style="<?php echo $category['css_style']; ?>"> </div>
|
|
||||||
<div class="col-sm-11 hide-on-overflow no-wrap">
|
|
||||||
<?php echo $category['name']; ?>
|
<?php echo $category['name']; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -352,3 +352,8 @@ div.setupButtons {
|
|||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.event-category {
|
||||||
|
border-radius: 4px;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user