summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Reports/reports/templates/config_items/listing.html
blob: 9b1026a08a8d15fe9b3d9c3fc3511f1e10b5e725 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "base-timeview.html" %}
{% load bcfg2_tags %}

{% block title %}Bcfg2 - Element Listing{% endblock %}

{% block extra_header_info %}
{% endblock%}

{% block pagebanner %}{{mod_or_bad|capfirst}} Element Listing{% endblock %}

{% block content %}
{% if item_list_dict %}
  {% for kind, entries in item_list_dict.items %}

    <div class='entry_list'>
      <div class='entry_list_head element_list_head' onclick='javascript:toggleMe("table_{{ kind }}");'>
        <h3>{{ kind }} &#8212; {{ entries|length }}</h3>
        <div class='entry_expand_tab' id='plusminus_table_{{ kind }}'>[&ndash;]</div>
  </div>

      <table id='table_{{ kind }}' class='entry_list'>
        {% for e in entries %}
          <tr class='{% cycle listview,listview_alt %}'>
            <td><a href="{% url reports_item type=mod_or_bad,pk=e.id %}">{{e.entry.name}}</a></td>
          </tr>
        {% endfor %}
      </table>
    </div>
  {% endfor %}
{% else %}
    <p>There are currently no inconsistent configuration entries.</p>
{% endif %}
{% endblock %}