-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschema_properties.html
37 lines (37 loc) · 2.28 KB
/
schema_properties.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!--<ul style="list-style-type:none">-->
<!--<li>-->
<button type="button" class="collapsible">{{ schema['title'] }}</button>
<div class="content row">
<div class="column" id="{{ schema['name'] }}">
{% if schema['pre-selected'] == True %}
<input type="checkbox" name="schema" class="schema" value="{{ schema['name'] }}" checked>{{ schema['title'] }}
{% else %}
<input type="checkbox" name="schema" class="schema" value="{{ schema['name'] }}">{{ schema['title'] }}
{% endif %}
<br>
<ul style="list-style-type:none">
{% for property in schema['properties'] %}
{% if schema['properties'][property] == 'required' %}
<li><input type="checkbox" name="property" class="property disabled" value="{{ schema['name'] }}:{{ property }}" checked onclick="this.checked=!this.checked;">{{ property ~ '*' }}</li>
{% elif schema['properties'][property] == 'pre-selected' %}
<li><input type="checkbox" name="property" class="property" value="{{ schema['name'] }}:{{ property }}" checked >{{ property }}</li>
{% else %}
<li><input type="checkbox" name="property" class="property" value="{{ schema['name'] }}:{{ property }}">{{ property }}</li>
{% endif %}
{% endfor %}
<li><input type="button" class="btn btn-sml {{ schema['name'] }} addProperty" id="{{ 'addProperty:' ~ schema['name'] }}" value="Add property"></li>
</ul>
</div>
<div class="column local_selects">
<!--<div class="local_selects">-->
<br>
<button type="button" class="btn btn-primary selectLocal" id="{{ 'select:' ~ schema['name'] }}">Select all properties in section</button>
<br>
<br>
<br>
<button type="button" class="btn btn-primary {{ schema['name'] }} unselectLocal" id="{{ 'unselect:' ~ schema['name'] }}">Unselect all properties in section</button>
<!--</div>-->
</div>
</div>
<!--</li>-->
<!--</ul>-->