mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 19:46:46 +00:00
* Fix for boolean settings - Ensure "user" attribute is provided - Fix for *all* boolean user settings * Refactor boolean setting into separate template * Fix order-of-operations * Fix settings for specific plugins
19 lines
665 B
HTML
19 lines
665 B
HTML
<div class='form-check form-switch'>
|
|
<input
|
|
class='form-check-input boolean-setting'
|
|
fieldname='{{ setting.key.upper }}'
|
|
pk='{{ setting.pk }}'
|
|
setting='{{ setting.key.upper }}'
|
|
id='setting-value-{{setting.pk }}-{{ setting.typ }}'
|
|
type='checkbox'
|
|
{% if setting.as_bool %}checked=''{% endif %}
|
|
{{ reference }}
|
|
{% if plugin %}plugin='{{ plugin.slug }}'{% endif %}
|
|
{% if user_setting or notification_setting %}user='{{ request.user.pk }}'{% endif %}
|
|
{% if notification_setting %}
|
|
notification=true
|
|
method='{{ setting.method }}'
|
|
{% endif %}
|
|
>
|
|
</div>
|