fix cascaded HTML elements to prevent form issues

This commit is contained in:
Daniel Seifert 2023-03-22 15:58:02 +01:00
parent 16fbebb915
commit 3fe01aa227
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -48,15 +48,8 @@
[{/strip}][{/capture}] [{/strip}][{/capture}]
[{oxscript add=$smarty.capture.d3script}] [{oxscript add=$smarty.capture.d3script}]
<form name="myedit" id="myedit" action="[{$oViewConf->getSelfLink()}]" method="post" style="padding: 0;margin: 0;height:0;"> [{assign var="groups" value=$oView->getGroups()}]
[{$oViewConf->getHiddenSid()}] [{if $groups|@count}]
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="fnc" value="runTask">
<input type="hidden" name="taskid" id="taskid" value="">
<input type="hidden" name="format" id="format" value="CSV">
[{assign var="groups" value=$oView->getGroups()}]
[{if $groups|@count}]
<div id="accordion"> <div id="accordion">
[{foreach from=$oView->getGroups() item="group"}] [{foreach from=$oView->getGroups() item="group"}]
<div class="card mb-2"> <div class="card mb-2">
@ -78,6 +71,15 @@
[{$item->getTitle()}] [{$item->getTitle()}]
</h5> </h5>
<div class="card-body"> <div class="card-body">
<form name="myedit" id="myedit" action="[{$oViewConf->getSelfLink()}]" method="post">
[{$oViewConf->getHiddenSid()}]
<input type="hidden" name="cl" value="[{$oViewConf->getActiveClassName()}]">
<input type="hidden" name="fnc" value="runTask">
<input type="hidden" name="taskid" id="taskid" value="">
<input type="hidden" name="format" id="format" value="CSV">
[{if $item->getDescription()}] [{if $item->getDescription()}]
[{assign var="description" value=$item->getDescription()}] [{assign var="description" value=$item->getDescription()}]
[{assign var="sectionlength" value="100"}] [{assign var="sectionlength" value="100"}]
@ -104,6 +106,9 @@
[{block name="exportSubmit"}] [{block name="exportSubmit"}]
[{include file=$submit}] [{include file=$submit}]
[{/block}] [{/block}]
</form>
</div> </div>
</div> </div>
</div> </div>
@ -117,12 +122,11 @@
[{/foreach}] [{/foreach}]
</div> </div>
[{else}] [{else}]
<div class="alert alert-primary" role="alert"> <div class="alert alert-primary" role="alert">
[{oxmultilang ident=$d3dw_noitemmessageid}] [{oxmultilang ident=$d3dw_noitemmessageid}]
</div> </div>
[{/if}] [{/if}]
</form>
<div id="mask" class=""></div> <div id="mask" class=""></div>
<div id="popup2" class="d3loader-2"> <div id="popup2" class="d3loader-2">