configurationengine/source/scripts/compare_data_report_template.html
author terytkon
Thu, 11 Mar 2010 17:04:37 +0200
changeset 0 2e8eeb919028
child 3 e7e0ae78773e
permissions -rw-r--r--
Adding EPL version of configurationengine.

{% 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 %}