fastapi-dls/app/templates/views/dashboard_origins.html

38 lines
1.2 KiB
HTML
Raw Normal View History

2023-01-02 17:01:44 +00:00
{% extends 'layouts/bootstrap-dashboard.html' %}
{% block title %}
<title>Origins</title>
{% endblock %}
{% block content %}
<div>
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">Origins <small>with leases</small></h1>
<div class="btn-toolbar mb-2 mb-md-0">
<div class="btn-group me-2">
<button type="button" class="btn btn-sm btn-outline-danger" onclick="deleteOrigin().finally(() => load())">
delete origin
</button>
<button type="button" class="btn btn-sm btn-outline-danger" onclick="deleteOrigins().finally(() => load())">
delete all
</button>
</div>
2023-01-02 17:01:44 +00:00
</div>
</div>
<div id="origins" class="mt-3"></div>
</div>
2023-01-02 17:01:44 +00:00
{% endblock %}
{% block scripts %}
{{ super() }}
<script type="application/javascript">
function load() {
const origins = document.getElementById('origins')
fetchOriginsWithLeases(origins)
}
load()
</script>
2023-01-02 17:01:44 +00:00
{% endblock %}