mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
base implementation of user setting
This commit is contained in:
parent
3f6c7df7a8
commit
5f2bef7ee1
@ -762,10 +762,10 @@ class InvenTreeUserSetting(BaseInvenTreeSetting):
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
GLOBAL_SETTINGS = {
|
GLOBAL_SETTINGS = {
|
||||||
'PART_ASSEMBLY': {
|
'HOMEPAGE_PART_STARRED': {
|
||||||
'name': _('Assembly'),
|
'name': _('Show starred parts'),
|
||||||
'description': _('Parts can be assembled from other components by default'),
|
'description': _('Show starred parts on the homepage'),
|
||||||
'default': False,
|
'default': True,
|
||||||
'validator': bool,
|
'validator': bool,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@ -63,5 +63,13 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h4>{% trans "User Settings" %}</h4>
|
||||||
|
|
||||||
|
<table class='table table-striped table-condensed'>
|
||||||
|
{% include "InvenTree/settings/header.html" %}
|
||||||
|
<tbody>
|
||||||
|
{% include "InvenTree/settings/setting.html" with key="HOMEPAGE_PART_STARRED" user_setting=True %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user