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 = {
|
||||
'PART_ASSEMBLY': {
|
||||
'name': _('Assembly'),
|
||||
'description': _('Parts can be assembled from other components by default'),
|
||||
'default': False,
|
||||
'HOMEPAGE_PART_STARRED': {
|
||||
'name': _('Show starred parts'),
|
||||
'description': _('Show starred parts on the homepage'),
|
||||
'default': True,
|
||||
'validator': bool,
|
||||
},
|
||||
}
|
||||
|
@ -63,5 +63,13 @@
|
||||
</form>
|
||||
</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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user