portal: add alarms to origin view

This commit is contained in:
Iain Learmonth 2022-05-11 15:22:43 +01:00
parent 36b20f392a
commit a4144671a5

View file

@ -1,6 +1,6 @@
{% extends "base.html.j2" %}
{% from 'bootstrap5/form.html' import render_form %}
{% from "tables.html.j2" import proxies_table %}
{% from "tables.html.j2" import alarms_table, bridges_table, proxies_table %}
{% block content %}
<h1 class="h2 mt-3">Origins</h1>
@ -14,7 +14,14 @@
{{ render_form(form) }}
</div>
{% if origin.alarms %}
<h3>Alarms</h3>
{{ alarms_table(origin.alarms) }}
{% endif %}
{% if origin.proxies %}
<h3>Proxies</h3>
{{ proxies_table(origin.proxies) }}
{% endif %}
{% endblock %}