configurationengine/source/scripts/info_value_report_template.html
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
equal deleted inserted replaced
2:87cfa131b535 3:e7e0ae78773e
     1 {% extends "cone_base.html" %}
     1 {% extends "cone_base.html" %}
     2 {% block title %}Data value info{% endblock %}
     2 {% block title %}Data value info{% endblock %}
     3 {% block content %}
     3 {% block content %}
     4     <h1>Configuration data value info</h1><br>
     4     <h1>Configuration data value info</h1><br>
     5 
     5 
     6     <table class="report">
     6     <table class="report" id="report_data">
     7     <tr>
     7     <tr>
     8         <th class="featureName">Name</th>
     8         <th class="featureName">Name</th>
     9         <th class="featureName">Type</th>
     9         <th class="featureName">Type</th>
    10         <th class="featureName">Possible values</th>
    10         <th class="featureName">Possible values</th>
    11         {% for config in data.value_data.configs %}
    11         {% for config in data.value_data.configs %}
    12         <th class="featureName">{{ config.path }}</th>
    12         <th class="featureName">{% if config.name %}{{config.name}} ({{ config.path }}){% else %}{{config.path}}{% endif %}</th>
    13         {% endfor %}
    13         {% endfor %}
    14     </tr>
    14     </tr>
    15     {% for feature_group in data.value_data.feature_groups %}
    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>
    16     <tr><th colspan="{{ data.value_data.configs | length + 3 }}">{{ feature_group.name }}</th></tr>
    17     {% for feature in feature_group.features %}
    17     {% for feature in feature_group.features %}
    37                     {%- for row in value.rows -%}
    37                     {%- for row in value.rows -%}
    38                         <tr><td colspan="2"><b>Item {{ loop.index }}</b></td></tr>
    38                         <tr><td colspan="2"><b>Item {{ loop.index }}</b></td></tr>
    39                         {%- for column in value.columns -%}
    39                         {%- for column in value.columns -%}
    40                             <tr>
    40                             <tr>
    41                             <td><b>{{ column.name }}</b></td>
    41                             <td><b>{{ column.name }}</b></td>
    42                             <td>{{ row[column.ref] }}</td>
    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>
    43                             </tr>
    45                             </tr>
    44                         {%- endfor -%}
    46                         {%- endfor -%}
    45                     {%- endfor -%}
    47                     {%- endfor -%}
    46                 </table>
    48                 </table>
    47                 {% endif %}
    49                 {% endif %}
    48             {%- else -%}
    50             {%- else -%}
       
    51             	{% if feature.ref in config.refs %}<b>{% endif %}
    49                 {{- value -}}
    52                 {{- value -}}
       
    53                 {% if feature.ref in config.refs %}</b>{% endif %}
    50             {%- endif -%}
    54             {%- endif -%}
    51         </td>
    55         </td>
    52         {% endfor %}
    56         {% endfor %}
    53         
    57         
    54     </tr>
    58     </tr>
    55     {% endfor -%}
    59     {% endfor -%}
    56     {% endfor %}
    60     {% endfor %}
    57     
    61     
    58     </table>
    62     </table>
       
    63     <script language="javascript" type="text/javascript">
       
    64 //<![CDATA[
       
    65     setFilterGrid("report_data");
       
    66 //]]>
       
    67 </script>
    59 {% endblock %}
    68 {% endblock %}