Show create button on "most" pages for a master view

This commit is contained in:
Lance Edgar 2021-12-23 14:46:28 -06:00
parent 4396c4c628
commit 33af2e6fa1

View file

@ -303,6 +303,13 @@
<span class="header-text">
${h.link_to(instance_title, instance_url)}
</span>
% elif master.creatable and master.show_create_link and master.has_perm('create'):
<once-button type="is-primary"
tag="a" href="${url('{}.create'.format(route_prefix))}"
icon-left="plus"
style="margin-left: 1rem;"
text="Create New">
</once-button>
% endif
% if master.viewing and grid_index:
${grid_index_nav()}