0
|
1 |
{% extends "cone_base.html" %}
|
|
2 |
{% block title %}Data value info{% endblock %}
|
|
3 |
{% block content %}
|
|
4 |
<h1>Configuration data value info</h1><br>
|
|
5 |
|
3
|
6 |
<table class="report" id="report_data">
|
0
|
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 %}
|
3
|
12 |
<th class="featureName">{% if config.name %}{{config.name}} ({{ config.path }}){% else %}{{config.path}}{% endif %}</th>
|
0
|
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>
|
3
|
42 |
<td>{% if feature.ref+'.'+column.ref in config.refs %}<b>{% endif %}
|
|
43 |
{{- row[column.ref] -}}
|
|
44 |
{% if feature.ref+'.'+column.ref in config.refs %}</b>{% endif %}</td>
|
0
|
45 |
</tr>
|
|
46 |
{%- endfor -%}
|
|
47 |
{%- endfor -%}
|
|
48 |
</table>
|
|
49 |
{% endif %}
|
|
50 |
{%- else -%}
|
3
|
51 |
{% if feature.ref in config.refs %}<b>{% endif %}
|
0
|
52 |
{{- value -}}
|
3
|
53 |
{% if feature.ref in config.refs %}</b>{% endif %}
|
0
|
54 |
{%- endif -%}
|
|
55 |
</td>
|
|
56 |
{% endfor %}
|
|
57 |
|
|
58 |
</tr>
|
|
59 |
{% endfor -%}
|
|
60 |
{% endfor %}
|
|
61 |
|
|
62 |
</table>
|
3
|
63 |
<script language="javascript" type="text/javascript">
|
|
64 |
//<![CDATA[
|
|
65 |
setFilterGrid("report_data");
|
|
66 |
//]]>
|
|
67 |
</script>
|
0
|
68 |
{% endblock %} |