configurationengine/source/scripts/info_value_report_template.html
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
--- a/configurationengine/source/scripts/info_value_report_template.html	Fri Mar 12 08:30:17 2010 +0200
+++ b/configurationengine/source/scripts/info_value_report_template.html	Tue Aug 10 14:29:28 2010 +0300
@@ -3,13 +3,13 @@
 {% block content %}
     <h1>Configuration data value info</h1><br>
 
-    <table class="report">
+    <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">{{ config.path }}</th>
+        <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 %}
@@ -39,14 +39,18 @@
                         {%- for column in value.columns -%}
                             <tr>
                             <td><b>{{ column.name }}</b></td>
-                            <td>{{ row[column.ref] }}</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 %}
@@ -56,4 +60,9 @@
     {% endfor %}
     
     </table>
+    <script language="javascript" type="text/javascript">
+//<![CDATA[
+    setFilterGrid("report_data");
+//]]>
+</script>
 {% endblock %}
\ No newline at end of file