[-] BO : #PSTEST-369 - Durring the category removing, allow to not delete the products
This commit is contained in:
@@ -50,4 +50,38 @@
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
{if isset($delete_category) && $delete_category}
|
||||
<form action="{$REQUEST_URI}" method="post">
|
||||
<div class="warn">
|
||||
<h2>{l s='Do you want to delete products too?'}</h2>
|
||||
<ul class="listForm">
|
||||
<li>
|
||||
<input type="radio" name="deleteMode" value="linkanddisable" id="deleteMode_linkanddisable" />
|
||||
<label for="deleteMode_linkanddisable" style="float:none;">{l s='No, I want to link products without others categories with the parent category and disable them.'}</label>
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="deleteMode" value="link" id="deleteMode_link" />
|
||||
<label for="deleteMode_link" style="float:none;">{l s='No, I want to link products without others categories with the parent category.'}</label>
|
||||
</li>
|
||||
<li>
|
||||
<input type="radio" name="deleteMode" value="delete" id="deleteMode_delete" />
|
||||
<label for="deleteMode_delete" style="float:none">{l s='Yes, I want to remove products linked with this category and without any others categories.'}</label>
|
||||
</li>
|
||||
</ul>
|
||||
{foreach $POST as $key => $value}
|
||||
{if $key != 'deleteMode'}
|
||||
{if is_array($value)}
|
||||
{foreach $value as $val}
|
||||
<input type="hidden" name="{$key}[]" value="{$val}" />
|
||||
{/foreach}
|
||||
{else}
|
||||
<input type="hidden" name="{$key}" value="{$value}" />
|
||||
{/if}
|
||||
{/if}
|
||||
{/foreach}
|
||||
<br /><input type="submit" class="button" value="{l s=' Validate '}" />
|
||||
</div>
|
||||
</form>
|
||||
<div class="clear"> </div>
|
||||
{/if}
|
||||
{/block}
|
||||
|
||||
Reference in New Issue
Block a user