Show create button on "most" pages for a master view
This commit is contained in:
parent
4396c4c628
commit
33af2e6fa1
|
@ -303,6 +303,13 @@
|
||||||
<span class="header-text">
|
<span class="header-text">
|
||||||
${h.link_to(instance_title, instance_url)}
|
${h.link_to(instance_title, instance_url)}
|
||||||
</span>
|
</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
|
% endif
|
||||||
% if master.viewing and grid_index:
|
% if master.viewing and grid_index:
|
||||||
${grid_index_nav()}
|
${grid_index_nav()}
|
||||||
|
|
Loading…
Reference in a new issue