Add create button to breadcrumb fragment and update table template for navigation
This commit is contained in:
parent
3492358645
commit
7c15754cab
2 changed files with 12 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
{% import "fragments/_icon_fragment.html" as icons %}
|
||||
|
||||
{% macro breadcrumb_header(breadcrumbs=[], title=None, save_button=False, delete_button=False) %}
|
||||
{% macro breadcrumb_header(breadcrumbs=[], title=None, save_button=False, delete_button=False, create_button=False) %}
|
||||
<!-- Breadcrumb Fragment -->
|
||||
|
||||
<nav class="row d-flex mb-3 justify-content-between">
|
||||
|
@ -25,7 +25,7 @@
|
|||
{% endif %}
|
||||
</ol>
|
||||
</div>
|
||||
{% if save_button or delete_button %}
|
||||
{% if save_button or delete_button or create_button %}
|
||||
<div class="col text-end">
|
||||
<div class="btn-group">
|
||||
{% if save_button %}
|
||||
|
@ -34,6 +34,9 @@
|
|||
{% if delete_button %}
|
||||
<button type="submit" class="btn btn-danger" id="deleteButton">{{ icons.render_icon('trash', 16) }}</button>
|
||||
{% endif %}
|
||||
{% if create_button %}
|
||||
<button type="submit" class="btn btn-primary" id="createButton">{{ icons.render_icon('plus', 16) }}</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue