blob: 4dd600db6cd07343b3254af5c06e067750c953bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
{% for pair in resource.spec %}
{% assign name = pair[0] %}
{% assign spec = pair[1] %}
{% assign type = spec.type %}
<div class="property">
{% if type == 'string' %}
<label for="{{name}}">{{name | capitalize}}</label>
<input
{% if spec.disabled %}
disabled="true"
{% endif %}
name="{{name}}" type="text" value="{{spec.value}}">
{% else %}
<p><pre style="color: red">Admin template doesn't support '{{type}}' properties!</pre></p>
{% endif %}
</div>
{% endfor %}
|