mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Add some more part slidies
This commit is contained in:
parent
e30f6ec374
commit
b9799e1824
@ -139,13 +139,11 @@ class EditPartForm(HelperForm):
|
|||||||
'revision',
|
'revision',
|
||||||
'keywords',
|
'keywords',
|
||||||
'variant_of',
|
'variant_of',
|
||||||
'is_template',
|
|
||||||
'link',
|
'link',
|
||||||
'default_location',
|
'default_location',
|
||||||
'default_supplier',
|
'default_supplier',
|
||||||
'units',
|
'units',
|
||||||
'minimum_stock',
|
'minimum_stock',
|
||||||
'active',
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -128,6 +128,15 @@
|
|||||||
<td><i>{% trans "Part is not a virtual part" %}</i></td>
|
<td><i>{% trans "Part is not a virtual part" %}</i></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><b>{% trans "Template" %}</b></td>
|
||||||
|
<td>{% include "slide.html" with state=part.is_template field='is_template' %}</td>
|
||||||
|
{% if part.is_template %}
|
||||||
|
<td>{% trans "Part is a template part (variants can be made from this part)" %}</td>
|
||||||
|
{% else %}
|
||||||
|
<td><i>{% trans "Part is not a template part" %}</i></td>
|
||||||
|
{% endif %}
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans "Assembly" %}</b></td>
|
<td><b>{% trans "Assembly" %}</b></td>
|
||||||
<td>{% include "slide.html" with state=part.assembly field='assembly' %}</td>
|
<td>{% include "slide.html" with state=part.assembly field='assembly' %}</td>
|
||||||
@ -173,6 +182,15 @@
|
|||||||
<td><i>{% trans "Part cannot be sold to customers" %}</i></td>
|
<td><i>{% trans "Part cannot be sold to customers" %}</i></td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><b>{% trans "Active" %}</b></td>
|
||||||
|
<td>{% include "slide.html" with state=part.active field='active' %}</td>
|
||||||
|
{% if part.active %}
|
||||||
|
<td>{% trans "Part is active" %}</td>
|
||||||
|
{% else %}
|
||||||
|
<td><i>{% trans "Part is not active" %}</i></td>
|
||||||
|
{% endif %}
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -196,7 +214,7 @@
|
|||||||
data[field] = checked;
|
data[field] = checked;
|
||||||
|
|
||||||
// Update the particular field
|
// Update the particular field
|
||||||
inventreePut("/api/part/{{ part.id }}/",
|
inventreePut("{% url 'api-part-detail' part.id %}",
|
||||||
data,
|
data,
|
||||||
{
|
{
|
||||||
method: 'PATCH',
|
method: 'PATCH',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user