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"}]
<button type="button" class="btn btn-primary" onclick="startTask('[{$id}]')"> <div class="btn-group">
<i class="fas fa-magic"></i> <button type="button" class="btn btn-primary" onclick="startTask('[{$id}]')">
[{oxmultilang ident=$item->getButtonText()}] <i class="fas fa-fw fa-magic"></i>
</button> [{oxmultilang ident=$item->getButtonText()}]
</div> </button>
</div>
[{/block}]

View File

@ -1,22 +1,24 @@
<div class="btn-group"> [{block name="submitElements"}]
<button type="button" class="btn btn-primary" onclick="startTask('[{$id}]', 'CSV')"> <div class="btn-group">
<i class="fas fa-magic"></i> <button type="button" class="btn btn-primary" onclick="startTask('[{$id}]', 'CSV')">
[{oxmultilang ident=$item->getButtonText()}] <i class="fas fa-fw fa-magic"></i>
</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>
[{oxmultilang ident=$item->getButtonText()}] [{oxmultilang ident=$item->getButtonText()}]
</span> </button>
</button> <button type="button" class="btn btn-primary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div class="dropdown-menu"> <span class="sr-only">
[{block name="dataWizardFormat"}] <i class="fas fa-fw fa-magic"></i>
[{assign var="rendererBridge" value=$item->getRendererBridge()}] [{oxmultilang ident=$item->getButtonText()}]
[{foreach from=$rendererBridge->getTranslatedRendererIdList() key="key" item="translationId"}] </span>
<button class="dropdown-item" onclick="startTask('[{$id}]', '[{$key}]')"> </button>
[{oxmultilang ident=$translationId}] <div class="dropdown-menu">
</button> [{block name="dataWizardFormat"}]
[{/foreach}] [{assign var="rendererBridge" value=$item->getRendererBridge()}]
[{/block}] [{foreach from=$rendererBridge->getTranslatedRendererIdList() key="key" item="translationId"}]
<button class="dropdown-item" onclick="startTask('[{$id}]', '[{$key}]')">
[{oxmultilang ident=$translationId}]
</button>
[{/foreach}]
[{/block}]
</div>
</div> </div>
</div> [{/block}]