3
0
Fork 0

fix: add index_title_controls() def block for base template

for customization purposes
This commit is contained in:
Lance Edgar 2025-01-24 19:02:53 -06:00
parent 194d798c0c
commit 1e3647d27b

View file

@ -248,12 +248,7 @@
% else:
<h1 class="title">${index_title}</h1>
% endif
% if master and master.creatable and not master.creating and master.has_perm('create'):
<wutta-button once type="is-primary"
tag="a" href="${url(f'{route_prefix}.create')}"
icon-left="plus"
label="Create New" />
% endif
${self.index_title_controls()}
% endif
</div>
</div>
@ -349,6 +344,15 @@
</footer>
</%def>
<%def name="index_title_controls()">
% if master and master.creatable and not master.creating and master.has_perm('create'):
<wutta-button once type="is-primary"
tag="a" href="${url(f'{route_prefix}.create')}"
icon-left="plus"
label="Create New" />
% endif
</%def>
<%def name="render_vue_template_whole_page()">
<script type="text/x-template" id="whole-page-template">