mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
fix: make protected setting again changeable through admin ui (#5245)
This commit is contained in:
parent
f4f39e274f
commit
4a46e0321f
@ -22,9 +22,7 @@
|
|||||||
{{ setting.description }}
|
{{ setting.description }}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
{% if setting.protected %}
|
{% if setting.is_bool %}
|
||||||
<span style='color: red;'>***</span> <span class='fas fa-lock icon-red'></span>
|
|
||||||
{% elif setting.is_bool %}
|
|
||||||
{% include "InvenTree/settings/setting_boolean.html" %}
|
{% include "InvenTree/settings/setting_boolean.html" %}
|
||||||
{% else %}
|
{% else %}
|
||||||
<div id='setting-{{ setting.pk }}'>
|
<div id='setting-{{ setting.pk }}'>
|
||||||
@ -32,7 +30,9 @@
|
|||||||
{% if setting.value == '' %}
|
{% if setting.value == '' %}
|
||||||
<em style='color: #855;'>{% trans "No value set" %}</em>
|
<em style='color: #855;'>{% trans "No value set" %}</em>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% if setting.is_choice %}
|
{% if setting.protected %}
|
||||||
|
<strong><span style='color: red;'>***</span> <span class='fas fa-lock icon-red'></span></strong>
|
||||||
|
{% elif setting.is_choice %}
|
||||||
<strong>{{ setting.as_choice }}</strong>
|
<strong>{{ setting.as_choice }}</strong>
|
||||||
{% else %}
|
{% else %}
|
||||||
<strong>{{ setting.value }}</strong>
|
<strong>{{ setting.value }}</strong>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user