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> </p>
<ul class='list-group'> <ul class='list-group'>
{% for part in category.parts.all %} {% 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 %} {% endfor %}
</ul> </ul>
{% endif %} {% endif %}

View File

@ -34,7 +34,7 @@
<table class='table table-striped'> <table class='table table-striped'>
<tr> <tr>
<td>Part name</td> <td>Part name</td>
<td>{{ part.name }}</td> <td>{{ part.long_name }}</td>
</tr> </tr>
<tr> <tr>
<td>Description</td> <td>Description</td>
@ -147,7 +147,7 @@
$('#activate-part').click(function() { $('#activate-part').click(function() {
showQuestionDialog( showQuestionDialog(
'Activate Part?', '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_text: 'Activate',
accept: function() { accept: function() {
@ -169,7 +169,7 @@
$('#deactivate-part').click(function() { $('#deactivate-part').click(function() {
showQuestionDialog( showQuestionDialog(
'Deactivate Part?', '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', accept_text: 'Deactivate',

View File

@ -27,7 +27,7 @@
$("#used-table").bootstrapTable({ $("#used-table").bootstrapTable({
sortable: true, sortable: true,
search: 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) { queryParams: function(p) {
return { return {
sub_part: {{ part.id }} sub_part: {{ part.id }}