bookforge/templates/components/typography.html
2026-01-29 23:52:55 +01:00

28 lines
606 B
HTML

{% import "components/dropdown.html" as dropdown %}
{% macro heading(title) %}
<div class="d-flex justify-content-between align-items-center">
<h1 class="mb-4">
{{ title }}
</h1>
{% if caller is defined %}
<div>
{{ caller() }}
</div>
{% endif %}
</div>
{% endmacro %}
{% macro book_heading(title, book, show = false) %}
<div class="d-flex justify-content-between align-items-center">
<h1 class="mb-4">
{{ title }}
</h1>
<div>
{{ dropdown::crud_dropdown_button(book, "Actions", "books", show) }}
</div>
</div>
{% endmacro %}