portal: refactor origin views into module

This commit is contained in:
Iain Learmonth 2022-05-04 13:46:52 +01:00
parent 33e6d58455
commit 22f850cf6b
8 changed files with 158 additions and 134 deletions

View file

@ -11,7 +11,7 @@
</div>
<h3 class="mt-3">Origins</h3>
<a href="{{ url_for("portal.new_origin", group_id=group.id) }}" class="btn btn-success btn-sm">Create new origin</a>
<a href="{{ url_for("portal.origin.origin_new", group_id=group.id) }}" class="btn btn-success btn-sm">Create new origin</a>
{% if group.origins %}
{{ origins_table(group.origins) }}
{% endif %}