actix-admin/actix_admin/templates/base.html

63 lines
2.0 KiB
HTML
Raw Normal View History

2022-07-29 17:53:59 +02:00
{% if render_partial and render_partial == true %}
{% block content %}
{% endblock content %}
{% else %}
2022-04-23 20:03:09 +02:00
<!DOCTYPE html>
2022-07-31 16:33:02 +02:00
<html lang="en">
2022-04-25 17:23:38 +02:00
<head>
<meta charset="utf-8">
2022-08-04 09:21:40 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1">
2022-04-25 17:23:38 +02:00
<title>Actix Admin</title>
2022-08-04 09:21:40 +02:00
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.2/css/all.min.css"
integrity="sha512-1sCRPdkRXhBV2PBLUdRb4tMg1w2YPf37qatUFeS7zlBy7jJI8Lf4VHwWfZZfpXtYSLy85pkm9GaYVYMfw5BC1A=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
2022-06-04 16:34:16 +02:00
<script src="https://unpkg.com/htmx.org@1.7.0"></script>
2022-07-29 17:53:59 +02:00
2022-08-01 15:06:54 +02:00
<script>
function checkAll(bx) {
var cbs = document.getElementsByTagName('input');
for (var i = 0; i < cbs.length; i++) {
if (cbs[i].type == 'checkbox') {
cbs[i].checked = bx.checked;
2022-08-01 15:06:54 +02:00
}
}
}
document.addEventListener('DOMContentLoaded', () => {
// Get all "navbar-burger" elements
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
// Add a click event on each of them
$navbarBurgers.forEach(el => {
el.addEventListener('click', () => {
// Get the target from the "data-target" attribute
const target = el.dataset.target;
const $target = document.getElementById(target);
// Toggle the "is-active" class on both the "navbar-burger" and the "navbar-menu"
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
});
2022-08-01 15:06:54 +02:00
</script>
2022-04-25 17:23:38 +02:00
</head>
<body>
{% include "header.html" %}
<div class="container is-fluid">
{% block content %}
{% endblock content %}
</div>
2022-04-25 17:23:38 +02:00
</body>
2022-07-29 17:53:59 +02:00
</html>
{% endif %}