Skip to content

Commit e9bf74b

Browse files
author
Daniel Thümen
committed
Add description to Bucket Items
1 parent 3c1652b commit e9bf74b

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

templates/inventory/item.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
<div class="card">
22
<div class="card-block"><h4 class="card-title">{{ i.name }}</h4>
3+
<table class="table table-sm">
4+
<thead><tr><th colspan="2">Description</th></tr></thead>
5+
<tbody>
6+
<tr>
7+
<td>{{ i.desc }}</td>
8+
</tr>
9+
</tbody>
10+
</table>
311
{% if i.identifier_set.exists or bucket_as_property %}
412
<table class="table table-sm">
513
<thead><tr><th colspan="2">Properties</th></tr></thead>

views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def add(request, bucket_id=None):
9494
identifier.save()
9595
else:
9696
context = {
97-
'error_text': 'Invalid Identifier: ' + identifier.errors.as_json()
97+
'error_text': 'Invalid Identifier: ' + identifier.errors.as_json(escape_html=False)
9898
}
9999
return render(request, 'inventory/error.html', context)
100100

0 commit comments

Comments
 (0)