equal
deleted
inserted
replaced
|
1 {% extends "cone_base.html" %} |
|
2 {% block title %}Data value info{% endblock %} |
|
3 {% block content %} |
|
4 <h1>Configuration data value info</h1><br> |
|
5 |
|
6 <table class="report"> |
|
7 <tr> |
|
8 <th class="featureName">Name</th> |
|
9 <th class="featureName">Type</th> |
|
10 <th class="featureName">Possible values</th> |
|
11 {% for config in data.value_data.configs %} |
|
12 <th class="featureName">{{ config.path }}</th> |
|
13 {% endfor %} |
|
14 </tr> |
|
15 {% for feature_group in data.value_data.feature_groups %} |
|
16 <tr><th colspan="{{ data.value_data.configs | length + 3 }}">{{ feature_group.name }}</th></tr> |
|
17 {% for feature in feature_group.features %} |
|
18 {% if feature.modified %}<tr bgcolor="#CCCCFF">{% else %}<tr>{% endif %} |
|
19 <td>{{ feature.name }}</td> |
|
20 <td>{{ feature.type }}</td> |
|
21 <td> |
|
22 {%- for option in feature.options -%} |
|
23 {{ option.get_name() }}<br/> |
|
24 {% endfor -%} |
|
25 </td> |
|
26 |
|
27 {% for config in data.value_data.configs -%} |
|
28 {%- if feature.ref in config.values -%} |
|
29 {%- set value = config.values[feature.ref] %} |
|
30 {% else -%} |
|
31 {%- set value = "" %} |
|
32 {% endif -%} |
|
33 <td> |
|
34 {%- if value.is_sequence_data -%} |
|
35 {% if value.rows|length > 0 %} |
|
36 <table> |
|
37 {%- for row in value.rows -%} |
|
38 <tr><td colspan="2"><b>Item {{ loop.index }}</b></td></tr> |
|
39 {%- for column in value.columns -%} |
|
40 <tr> |
|
41 <td><b>{{ column.name }}</b></td> |
|
42 <td>{{ row[column.ref] }}</td> |
|
43 </tr> |
|
44 {%- endfor -%} |
|
45 {%- endfor -%} |
|
46 </table> |
|
47 {% endif %} |
|
48 {%- else -%} |
|
49 {{- value -}} |
|
50 {%- endif -%} |
|
51 </td> |
|
52 {% endfor %} |
|
53 |
|
54 </tr> |
|
55 {% endfor -%} |
|
56 {% endfor %} |
|
57 |
|
58 </table> |
|
59 {% endblock %} |