Fixed some more part name displays

This commit is contained in:
Oliver Walters 2019-05-10 22:18:56 +10:00
parent f76f1f54ae
commit 68b273aae1
3 changed files with 5 additions and 5 deletions

View File

@ -27,7 +27,7 @@ the top level 'Parts' category.
</p>
<ul class='list-group'>
{% for part in category.parts.all %}
<li class='list-group-item'><b>{{ part.name }}</b> - <i>{{ part.description }}</i></li>
<li class='list-group-item'><b>{{ part.long_name }}</b> - <i>{{ part.description }}</i></li>
{% endfor %}
</ul>
{% endif %}

View File

@ -34,7 +34,7 @@
<table class='table table-striped'>
<tr>
<td>Part name</td>
<td>{{ part.name }}</td>
<td>{{ part.long_name }}</td>
</tr>
<tr>
<td>Description</td>
@ -147,7 +147,7 @@
$('#activate-part').click(function() {
showQuestionDialog(
'Activate Part?',
'Are you sure you wish to reactivate {{ part.name }}?',
'Are you sure you wish to reactivate {{ part.long_name }}?',
{
accept_text: 'Activate',
accept: function() {
@ -169,7 +169,7 @@
$('#deactivate-part').click(function() {
showQuestionDialog(
'Deactivate Part?',
`Are you sure you wish to deactivate {{ part.name }}?<br>
`Are you sure you wish to deactivate {{ part.long_name }}?<br>
`,
{
accept_text: 'Deactivate',

View File

@ -27,7 +27,7 @@
$("#used-table").bootstrapTable({
sortable: true,
search: true,
formatNoMatches: function() { return "{{ part.name }} is not used to make any other parts"; },
formatNoMatches: function() { return "{{ part.long_name }} is not used to make any other parts"; },
queryParams: function(p) {
return {
sub_part: {{ part.id }}