summaryrefslogtreecommitdiffstats
path: root/templates/admin/option_config.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/admin/option_config.html')
-rw-r--r--templates/admin/option_config.html21
1 files changed, 20 insertions, 1 deletions
diff --git a/templates/admin/option_config.html b/templates/admin/option_config.html
index 74eede5..1f921f6 100644
--- a/templates/admin/option_config.html
+++ b/templates/admin/option_config.html
@@ -59,9 +59,16 @@
{%- if value %}
value="{{ value }}"
{%- endif -%}
+ {% if v.is_readonly() -%}
+ disabled
+ {%- endif -%}
>
{% elif v.__class__.__name__ == 'List' -%}
- <textarea class="form-control" name="{{ v.name }}">
+ <textarea class="form-control" name="{{ v.name }}"
+ {% if v.is_readonly() -%}
+ disabled
+ {%- endif -%}
+ >
{%- if value %}
{{- value|join('\n') -}}
{%- endif -%}
@@ -75,6 +82,9 @@
{%- if value and e in value %}
checked="true"
{%- endif -%}
+ {% if v.is_readonly() -%}
+ disabled
+ {%- endif -%}
>&nbsp;{{ e }}
</div>
{% endfor %}
@@ -88,6 +98,9 @@
{%- if e == value %}
checked="true"
{%- endif -%}
+ {% if v.is_readonly() -%}
+ disabled
+ {%- endif -%}
>&nbsp;{{ e }}
</div>
{% endfor %}
@@ -97,6 +110,9 @@
{%- if value %}
checked="true"
{% endif -%}
+ {% if v.is_readonly() -%}
+ disabled
+ {%- endif -%}
>
{% elif v.__class__.__name__ == 'ComplexList' -%}
<table class="table table-striped extensible-table">
@@ -112,6 +128,9 @@
{%- else -%}
value="{{ line }}"
{%- endif -%}
+ {% if v.is_readonly() -%}
+ disabled
+ {%- endif -%}
>
</td>
<td>