2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Refactor notes editing for "StockItem"

This commit is contained in:
Oliver Walters
2022-04-10 18:08:09 +10:00
parent e1784c93b2
commit df9c5c0048
2 changed files with 22 additions and 27 deletions

View File

@ -135,7 +135,7 @@
<div class='panel panel-hidden' id='panel-part-notes'>
<div class='panel-heading'>
<div class='d-flex flex-wrap'>
<h4>{% trans "Notes" %}</h4>
<h4>{% trans "Part Notes" %}</h4>
{% include "spacer.html" %}
<div class='btn-group' role='group'>
{% include "notes_buttons.html" %}
@ -418,7 +418,7 @@
'part-notes',
'{% url "api-part-detail" part.pk %}',
{
editable: true,
editable: {% if roles.part.change %}true{% else %}false{% endif %},
}
);
});