add extendable tpl blocks for submit elements on tasks

This commit is contained in:
Daniel Seifert 2021-11-03 00:30:56 +01:00 committed by Daniel Seifert
parent 903d178124
commit 3b47f4da05
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F
2 changed files with 30 additions and 26 deletions

View File

@ -1,6 +1,8 @@
<div class="btn-group">
[{block name="submitElements"}]
<div class="btn-group">
<button type="button" class="btn btn-primary" onclick="startTask('[{$id}]')">
<i class="fas fa-magic"></i>
<i class="fas fa-fw fa-magic"></i>
[{oxmultilang ident=$item->getButtonText()}]
</button>
</div>
</div>
[{/block}]

View File

@ -1,11 +1,12 @@
<div class="btn-group">
[{block name="submitElements"}]
<div class="btn-group">
<button type="button" class="btn btn-primary" onclick="startTask('[{$id}]', 'CSV')">
<i class="fas fa-magic"></i>
<i class="fas fa-fw fa-magic"></i>
[{oxmultilang ident=$item->getButtonText()}]
</button>
<button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">
<i class="fas fa-magic"></i>
<i class="fas fa-fw fa-magic"></i>
[{oxmultilang ident=$item->getButtonText()}]
</span>
</button>
@ -19,4 +20,5 @@
[{/foreach}]
[{/block}]
</div>
</div>
</div>
[{/block}]