1 <h2>Agreement detail</h2>
3 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
4 <div class="modal-dialog">
5 <div class="modal-content">
6 <div class="modal-header">
7 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
8 <h4 class="modal-title" id="myModalLabel">search result</h4>
10 <div class="modal-body">
12 <dl class="dl-horizontal">
13 {# Sanity default: if dd is empty, the values are permutated #}
15 <dd>{{ agreement.agreement_id|default:" " }}</dd>
17 <dd>{{ agreement.context.provider|default:" " }}</dd>
19 <dd>{{ agreement.context.consumer|default:" " }}</dd>
21 <dd>{{ agreement.context.service_formatted|default:" " }}</dd>
22 <dt>Expiration time</dt>
23 <dd>{{ agreement.context.expirationtime|default:" " }}</dd>
27 <div id="properties_summary">
37 {% for tname, t in agreement.guaranteeterms.items %}
38 <tr class="{{ t.statusclass }}">
39 <td>{{ forloop.counter }}</td>
40 <td>{{ t.servicelevelobjective.kpiname }}</td>
41 <td>({{ t.servicelevelobjective.bounds.0 }}, {{ t.servicelevelobjective.bounds.1 }})
44 <a href="{% url " agreement_term_violations " agreement.agreement_id t.name %}">{{ t.nviolations }}</a>
52 <div id="violations_summary_by_date">
60 {% for date, violations in violations_by_date %}
62 <td>{{ forloop.counter }}</td>
63 <td>{{ date|date }}</td>
64 <td>{{ violations|length }}</td>
71 <div class="modal-footer">
72 <a href="{{ backurl }}" class="btn btn-default btn-back">Back</a>