mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Display part images in build allocation list
(CSS needs some work)
This commit is contained in:
parent
7101d9cb7e
commit
29b94c91f3
@ -1,10 +1,23 @@
|
||||
{% extends "collapse.html" %}
|
||||
|
||||
{% load static %}
|
||||
{% load inventree_extras %}
|
||||
|
||||
{% block collapse_title %}
|
||||
{{ item.sub_part.name }}<br>
|
||||
<small><i>{{ item.sub_part.description }}</i></small>
|
||||
<div>
|
||||
<div class='media-left'>
|
||||
<img class='part-thumb' style='height: auto; width: 48px;'
|
||||
{% if item.sub_part.image %}
|
||||
src="{{ item.sub_part.image.url }}" alt='{{ item.sub_part.name }}'>
|
||||
{% else %}
|
||||
src="{% static 'img/blank_image.png' %}" alt='No image'>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class='media-body'>
|
||||
{{ item.sub_part.name }}<br>
|
||||
<small><i>{{ item.sub_part.description }}</i></small>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block collapse_heading %}
|
||||
|
@ -159,6 +159,14 @@
|
||||
margin-bottom: 5px;
|
||||
}
|
||||
|
||||
.panel-group .panel {
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.panel-heading {
|
||||
padding: 2px 10px;
|
||||
}
|
||||
|
||||
.float-right {
|
||||
float: right;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user