mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Tweaks to part.js
This commit is contained in:
parent
8246e9c802
commit
fda0bff14c
@ -301,7 +301,7 @@ function loadPartTable(table, url, options={}) {
|
|||||||
if (options.checkbox) {
|
if (options.checkbox) {
|
||||||
columns.push({
|
columns.push({
|
||||||
checkbox: true,
|
checkbox: true,
|
||||||
title: '{% trans 'Select' %}',
|
title: '{% trans "Select" %}',
|
||||||
searchable: false,
|
searchable: false,
|
||||||
switchable: false,
|
switchable: false,
|
||||||
});
|
});
|
||||||
@ -315,8 +315,9 @@ function loadPartTable(table, url, options={}) {
|
|||||||
|
|
||||||
columns.push({
|
columns.push({
|
||||||
field: 'name',
|
field: 'name',
|
||||||
title: '{% trans 'Part' %}',
|
title: '{% trans "Part" %}',
|
||||||
sortable: true,
|
sortable: true,
|
||||||
|
switchable: false,
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
|
|
||||||
var name = '';
|
var name = '';
|
||||||
@ -380,7 +381,7 @@ function loadPartTable(table, url, options={}) {
|
|||||||
columns.push({
|
columns.push({
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: 'description',
|
field: 'description',
|
||||||
title: '{% trans 'Description' %}',
|
title: '{% trans "Description" %}',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
|
|
||||||
if (row.is_template) {
|
if (row.is_template) {
|
||||||
@ -394,7 +395,7 @@ function loadPartTable(table, url, options={}) {
|
|||||||
columns.push({
|
columns.push({
|
||||||
sortable: true,
|
sortable: true,
|
||||||
field: 'category_detail',
|
field: 'category_detail',
|
||||||
title: '{% trans 'Category' %}',
|
title: '{% trans "Category" %}',
|
||||||
formatter: function(value, row, index, field) {
|
formatter: function(value, row, index, field) {
|
||||||
if (row.category) {
|
if (row.category) {
|
||||||
return renderLink(value.pathstring, "/part/category/" + row.category + "/");
|
return renderLink(value.pathstring, "/part/category/" + row.category + "/");
|
||||||
|
Loading…
Reference in New Issue
Block a user