configurationengine/source/scripts/info_value_report_template.html
author m2lahtel
Tue, 10 Aug 2010 14:29:28 +0300
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
permissions -rw-r--r--
ConE 1.2.11 release

{% extends "cone_base.html" %}
{% block title %}Data value info{% endblock %}
{% block content %}
    <h1>Configuration data value info</h1><br>

    <table class="report" id="report_data">
    <tr>
        <th class="featureName">Name</th>
        <th class="featureName">Type</th>
        <th class="featureName">Possible values</th>
        {% for config in data.value_data.configs %}
        <th class="featureName">{% if config.name %}{{config.name}} ({{ config.path }}){% else %}{{config.path}}{% endif %}</th>
        {% endfor %}
    </tr>
    {% for feature_group in data.value_data.feature_groups %}
    <tr><th colspan="{{ data.value_data.configs | length + 3 }}">{{ feature_group.name }}</th></tr>
    {% for feature in feature_group.features %}
    {% if feature.modified %}<tr bgcolor="#CCCCFF">{% else %}<tr>{% endif %}
        <td>{{ feature.name }}</td>
        <td>{{ feature.type }}</td>
        <td>
        {%- for option in feature.options -%}
            {{ option.get_name() }}<br/>
        {% endfor -%}
        </td>
        
        {% for config in data.value_data.configs -%}
        {%- if feature.ref in config.values -%}
            {%- set value = config.values[feature.ref] %}
        {% else -%}
            {%- set value = "" %}
        {% endif -%}
        <td>
            {%- if value.is_sequence_data -%}
                {% if value.rows|length > 0 %}
                    <table>
                    {%- for row in value.rows -%}
                        <tr><td colspan="2"><b>Item {{ loop.index }}</b></td></tr>
                        {%- for column in value.columns -%}
                            <tr>
                            <td><b>{{ column.name }}</b></td>
                            <td>{% if feature.ref+'.'+column.ref in config.refs %}<b>{% endif %}
                            {{- row[column.ref] -}}
                            {% if feature.ref+'.'+column.ref in config.refs %}</b>{% endif %}</td>
                            </tr>
                        {%- endfor -%}
                    {%- endfor -%}
                </table>
                {% endif %}
            {%- else -%}
            	{% if feature.ref in config.refs %}<b>{% endif %}
                {{- value -}}
                {% if feature.ref in config.refs %}</b>{% endif %}
            {%- endif -%}
        </td>
        {% endfor %}
        
    </tr>
    {% endfor -%}
    {% endfor %}
    
    </table>
    <script language="javascript" type="text/javascript">
//<![CDATA[
    setFilterGrid("report_data");
//]]>
</script>
{% endblock %}