mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fixed some more part name displays
This commit is contained in:
parent
f76f1f54ae
commit
68b273aae1
@ -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 %}
|
@ -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',
|
||||||
|
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user