{% extends "rpt_base.html" %} {% load staticfiles %} {% block extra_css %} table.universe_choices tr { vertical-align: top; } table.universe_choices td { padding: 0.5em; } table.universe_choices p { margin-top: 0.5em; margin-bottom: 0; padding: 0; } table.universe_choices h3 { margin: 0; padding: 0; } table.universe_choices ul.lookup_list { margin: 0; } {% endblock %} {% block content %} {% if universes|length == 0 %}

There are no reporting universes specified! Please investigate the reporting definitions, editions, and reporting table objects in the admin panel.

{% else %}

Choose a reporting universe to begin building your query.

{% for u in universes %} {% endfor %}

{{ u.name }} (Universe {{ u.pk }})

{% if u.description and u.description|length > 0 %} {{ u.description|linebreaks }} {% endif %} {% with dtbl=u.data.via %} {% if dtbl %}

Data Table

    {% with def=dtbl.definition %}
  • Definition {{ def.pk }}: {{ def.data_source.abbreviation }} {{ def.category }}
  • {% endwith %} {% with ed=dtbl.edition %}
  • Edition {{ ed.pk }}: {{ ed.name }} ({{ ed.created_at }})
  • {% endwith %}
  • Database Object: {{ dtbl.name }}
{% endif %} {% endwith %} {% with lu_all=u.lookups.all %} {% if lu_all|length > 0 %}

{{ lu_all|length }} Lookup Table(s) Available

    {% for lu in lu_all %}
  • {{ lu.name }}
      {% with def=lu.via.definition %}
    • Definition {{ def.pk }}: {{ def.data_source.abbreviation }} {{ def.category }}
    • {% endwith %} {% with ed=lu.via.edition %}
    • Edition {{ ed.pk }}: {{ ed.name }} ({{ ed.created_at }})
    • {% endwith %}
    • Database Object: {{ lu.via.name }}
  • {% endfor %}
{% else %}

No lookups in this universe.

{% endif %} {% endwith %}
 
{% endif %} {% endblock %}