configurationengine/source/scripts/compare_data_report_template.html
changeset 0 2e8eeb919028
child 3 e7e0ae78773e
equal deleted inserted replaced
-1:000000000000 0:2e8eeb919028
       
     1 {% extends "cone_base.html" %}
       
     2 {% block title %}Compare data{% endblock %}
       
     3 {% block content %}
       
     4     <h1>Configuration data comparison</h1><br>
       
     5     
       
     6     <table class="report">
       
     7       <tr>
       
     8         <td>Source:</td>
       
     9         <td>{{ data.sourcedata.name }}</td>
       
    10       </tr>
       
    11       <tr>
       
    12         <td>Target:</td>
       
    13         <td>{{ data.targetdata.name }}</td>
       
    14       </tr>
       
    15     </table>
       
    16     
       
    17     <br/>
       
    18     
       
    19     <table class="report">
       
    20     <tr>
       
    21         <th class="featureName">Full reference</th>
       
    22         <th class="featureName">Name</th>
       
    23         <th class="featureName">Source value</th>
       
    24         <th class="featureName">Target value</th>
       
    25     </tr>
       
    26     {%- for fqr in data.sourcedata.features|sort -%}
       
    27        {%- if fqr in data.targetdata.features and not data.sourcedata.features[fqr]._compare(data.targetdata.features[fqr], ['value']) -%}
       
    28            <tr>
       
    29               <td>{{ data.sourcedata.features[fqr]['fqr'] }}</td>
       
    30               <td>{{ data.sourcedata.features[fqr]['name'] }}</td>
       
    31               <td>{{ data.sourcedata.features[fqr]['value'] }}</td>
       
    32               <td>{{ data.targetdata.features[fqr]['value'] }}</td>
       
    33            </tr>
       
    34        {% endif -%}
       
    35     {%- endfor -%}
       
    36 
       
    37     </table>
       
    38 {% endblock %}