This commit is contained in:
Oliver Walters 2021-02-21 20:29:48 +11:00
parent d11adf3b34
commit e53c6e9975
2 changed files with 24 additions and 1 deletions

View File

@ -50,6 +50,16 @@
border-radius: 5px; border-radius: 5px;
} }
.index-bg {
width: 100%;
object-fit: fill;
opacity: 5%;
}
.index-action-selected {
background-color: #EEEEF5;
}
.markdownx .row { .markdownx .row {
margin: 5px; margin: 5px;
padding: 5px; padding: 5px;

View File

@ -1,5 +1,6 @@
{% extends "base.html" %} {% extends "base.html" %}
{% load i18n %} {% load i18n %}
{% load static %}
{% load inventree_extras %} {% load inventree_extras %}
{% block page_title %} {% block page_title %}
InvenTree | {% trans "Index" %} InvenTree | {% trans "Index" %}
@ -15,7 +16,11 @@ InvenTree | {% trans "Index" %}
</div> </div>
<div class='col-sm-9' id='details-panel'> <div class='col-sm-9' id='details-panel'>
<ul class='list-group' id='detail-item-list'> <ul class='list-group' id='detail-item-list'>
<li class='list-group-item'>
<div class='container'>
<img class='index-bg' src='{% static "img/inventree.png" %}'>
</div>
</li>
</ul> </ul>
</div> </div>
@ -69,6 +74,14 @@ function addHeaderAction(label, title, icon, options) {
// Show the one we want // Show the one we want
$(`#detail-${label}`).fadeIn(); $(`#detail-${label}`).fadeIn();
// Remove css class from all action items
$("#action-item-list").children('li').each(function() {
$(this).removeClass('index-action-selected');
})
// Add css class to the action we are interested in
$(`#action-${label}`).addClass('index-action-selected');
}); });
// Connect a callback to the table // Connect a callback to the table