mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add some options for the build order settings page
- Not editable yet
This commit is contained in:
parent
a5639c380f
commit
e8a0095e50
@ -88,7 +88,7 @@ def inventree_docs_url(*args, **kwargs):
|
|||||||
|
|
||||||
@register.simple_tag()
|
@register.simple_tag()
|
||||||
def inventree_setting(key, *args, **kwargs):
|
def inventree_setting(key, *args, **kwargs):
|
||||||
return InvenTreeSetting.get_setting(key)
|
return InvenTreeSetting.get_setting(key, backup_value=kwargs.get('backup', None))
|
||||||
|
|
||||||
|
|
||||||
@register.simple_tag()
|
@register.simple_tag()
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends "InvenTree/settings/settings.html" %}
|
{% extends "InvenTree/settings/settings.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load inventree_extras %}
|
||||||
|
|
||||||
{% block tabs %}
|
{% block tabs %}
|
||||||
{% include "InvenTree/settings/tabs.html" with tab='build' %}
|
{% include "InvenTree/settings/tabs.html" with tab='build' %}
|
||||||
@ -11,4 +12,21 @@
|
|||||||
|
|
||||||
{% block settings %}
|
{% block settings %}
|
||||||
|
|
||||||
|
<table class='table table-striped table-condensed'>
|
||||||
|
<thead></thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans "Reference Prefix" %}</th>
|
||||||
|
<th>{% inventree_setting 'buildorder_reference_prefix' backup='PO' %}</th>
|
||||||
|
<td>{% trans "Prefix for Build Order reference" %}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{% trans "Reference Regex" %}</th>
|
||||||
|
<th>{% inventree_setting 'buildorder_reference_regex' %}</th>
|
||||||
|
<td>{% trans "Regex validator for Build Order reference" %}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user