mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Merge remote-tracking branch 'inventree/master' into stock-item-forms
This commit is contained in:
commit
b65f950864
@ -560,6 +560,11 @@
|
|||||||
transition: 0.1s;
|
transition: 0.1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.search-autocomplete-item {
|
||||||
|
border-top: 1px solid #EEE;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
.modal {
|
.modal {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: 9999;
|
z-index: 9999;
|
||||||
|
@ -158,14 +158,13 @@ function inventreeDocReady() {
|
|||||||
create: function() {
|
create: function() {
|
||||||
$(this).data('ui-autocomplete')._renderItem = function(ul, item) {
|
$(this).data('ui-autocomplete')._renderItem = function(ul, item) {
|
||||||
|
|
||||||
var html = `<a href='/part/${item.id}/'><span>`;
|
var html = `
|
||||||
|
<div class='search-autocomplete-item' title='${item.data.description}'>
|
||||||
html += `<img class='hover-img-thumb' src='`;
|
<a href='/part/${item.id}/'>
|
||||||
html += item.thumbnail || `/static/img/blank_image.png`;
|
<span style='padding-right: 10px;'><img class='hover-img-thumb' src='${item.thumbnail || "/static/img/blank_image.png"}'> ${item.label}</span>
|
||||||
html += `'> `;
|
</a>
|
||||||
html += item.label;
|
<span class='flex' style='flex-grow: 1;'></span>
|
||||||
|
`;
|
||||||
html += '</span>';
|
|
||||||
|
|
||||||
if (user_settings.SEARCH_SHOW_STOCK_LEVELS) {
|
if (user_settings.SEARCH_SHOW_STOCK_LEVELS) {
|
||||||
html += partStockLabel(
|
html += partStockLabel(
|
||||||
@ -176,7 +175,7 @@ function inventreeDocReady() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
html += '</a>';
|
html += '</div>';
|
||||||
|
|
||||||
return $('<li>').append(html).appendTo(ul);
|
return $('<li>').append(html).appendTo(ul);
|
||||||
};
|
};
|
||||||
@ -188,6 +187,10 @@ function inventreeDocReady() {
|
|||||||
classes: {
|
classes: {
|
||||||
'ui-autocomplete': 'dropdown-menu search-menu',
|
'ui-autocomplete': 'dropdown-menu search-menu',
|
||||||
},
|
},
|
||||||
|
position: {
|
||||||
|
my : "right top",
|
||||||
|
at: "right bottom"
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ function makeBarcodeInput(placeholderText='', hintText='') {
|
|||||||
<label class='control-label' for='barcode'>{% trans "Barcode" %}</label>
|
<label class='control-label' for='barcode'>{% trans "Barcode" %}</label>
|
||||||
<div class='controls'>
|
<div class='controls'>
|
||||||
<div class='input-group'>
|
<div class='input-group'>
|
||||||
<span class='input-group-addon'>
|
<span class='input-group-text'>
|
||||||
<span class='fas fa-qrcode'></span>
|
<span class='fas fa-qrcode'></span>
|
||||||
</span>
|
</span>
|
||||||
<input id='barcode' class='textinput textInput form-control' type='text' name='barcode' placeholder='${placeholderText}'>
|
<input id='barcode' class='textinput textInput form-control' type='text' name='barcode' placeholder='${placeholderText}'>
|
||||||
@ -59,7 +59,7 @@ function makeNotesField(options={}) {
|
|||||||
<label class='control-label' for='notes'>{% trans "Notes" %}</label>
|
<label class='control-label' for='notes'>{% trans "Notes" %}</label>
|
||||||
<div class='controls'>
|
<div class='controls'>
|
||||||
<div class='input-group'>
|
<div class='input-group'>
|
||||||
<span class='input-group-addon'>
|
<span class='input-group-text'>
|
||||||
<span class='fas fa-sticky-note'></span>
|
<span class='fas fa-sticky-note'></span>
|
||||||
</span>
|
</span>
|
||||||
<input id='notes' class='textinput textInput form-control' type='text' name='notes' placeholder='${placeholder}'>
|
<input id='notes' class='textinput textInput form-control' type='text' name='notes' placeholder='${placeholder}'>
|
||||||
|
Loading…
Reference in New Issue
Block a user