Files
kupshop/admin/templates/window/sectionErase.tpl
2025-08-02 16:30:27 +02:00

59 lines
2.7 KiB
Smarty

{extends "../window.tpl"}
{block title}
{'flapDeleteSection'|translate:"sections"} {$body.name}
{/block}
{block tabs}
{windowTab id='flapDeleteSection'}
{/block}
{block tabsContent}
{include "../selectTree.tpl"}
<div id="flapDeleteSection" class="tab-pane fade active in boxStatic box">
<h1 class="h4 main-panel-title">{'sectionTopSection'|translate:"sections"|regex_replace:"/%s/":$body.data.name nofilter}</h1>
{if empty($body.isTopBranch) || $body.deleteSubsections}
{* <form name="editform" method="post" action="launch.php?s=sections.php&amp;acn=erase&amp;ID={$body.data.id}"> *}
<p>{'deleteNote1'|translate:'sections'|regex_replace:"/%s/":$body.data.name nofilter}</p>
{if $body.deleteSubsections}
<p>{'deleteNote2'|translate:'sections' nofilter}</p>
<input type="hidden" name="deleteSubsections" value="1">
{/if}
<div class="form-group">
<div class="col-md-6">
<select name="IDsecSel" class="selecter">
<option value="0">{'dontMove'|translate:"sections"}</option>
<option value="0">--------------------------------------</option>
{selectTree data=$body.tree}
</select>
</div>
</div>
{else}
<div class="row">
<div class="col-md-5">
<div class="error">{'sectionHasSubsection'|translate:'sections' nofilter}</div>
</div>
<div class="col-md-1 control-label"><strong>nebo</strong></div>
<div class="col-md-2">
<a href="launch.php?s={$type}.php&acn=remove&ID={$body.data.id}&deleteSubsections=1" class="btn btn-primary">smazat sekci včetně podsekcí</a>
</div>
</div>
{/if}
</div>
{/block}
{block buttonsLeft}
{if empty($body.isTopBranch) || $body.deleteSubsections}
<div class="col-md-8"></div>
{else}
<div class="col-md-10"></div>
{/if}
{/block}
{block buttonsRight}
{if empty($body.isTopBranch) || $body.deleteSubsections}
<div class="col-md-2"><input type="submit" name="Submit" class="btn btn-primary btn-block" value="{"windowSave"|translate:'button'}" /></div>
{/if}
<div class="col-md-2"><input type="button" class="btn btn-primary btn-block" onClick="closeWindow();"
value="{"windowCancel"|translate:'button'}" /></div>
{/block}