configurationengine/source/scripts/compare_data_report_template.html
changeset 0 2e8eeb919028
child 3 e7e0ae78773e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/configurationengine/source/scripts/compare_data_report_template.html	Thu Mar 11 17:04:37 2010 +0200
@@ -0,0 +1,38 @@
+{% extends "cone_base.html" %}
+{% block title %}Compare data{% endblock %}
+{% block content %}
+    <h1>Configuration data comparison</h1><br>
+    
+    <table class="report">
+      <tr>
+        <td>Source:</td>
+        <td>{{ data.sourcedata.name }}</td>
+      </tr>
+      <tr>
+        <td>Target:</td>
+        <td>{{ data.targetdata.name }}</td>
+      </tr>
+    </table>
+    
+    <br/>
+    
+    <table class="report">
+    <tr>
+        <th class="featureName">Full reference</th>
+        <th class="featureName">Name</th>
+        <th class="featureName">Source value</th>
+        <th class="featureName">Target value</th>
+    </tr>
+    {%- for fqr in data.sourcedata.features|sort -%}
+       {%- if fqr in data.targetdata.features and not data.sourcedata.features[fqr]._compare(data.targetdata.features[fqr], ['value']) -%}
+           <tr>
+              <td>{{ data.sourcedata.features[fqr]['fqr'] }}</td>
+              <td>{{ data.sourcedata.features[fqr]['name'] }}</td>
+              <td>{{ data.sourcedata.features[fqr]['value'] }}</td>
+              <td>{{ data.targetdata.features[fqr]['value'] }}</td>
+           </tr>
+       {% endif -%}
+    {%- endfor -%}
+
+    </table>
+{% endblock %}
\ No newline at end of file