Files
masimmo.pl/modules/x13webp/views/templates/admin/conversion_form.tpl
Jacek Pyziak 3b29a79921 Add X13 WebP module for image conversion to next-generation formats
- Implemented the main module class with essential properties and methods.
- Added translation support for various user interface strings.
- Created XML configuration file for module versioning.
- Ensured compatibility with different PHP versions and PrestaShop versions.
2025-10-16 21:30:24 +02:00

68 lines
3.1 KiB
Smarty

<div class="panel" id="conversion-fieldset">
<div class="panel-heading">
<i class="icon-cogs"></i> {l s='Conversion process' mod='x13webp'}
</div>
<div class="row">
<div class="col-lg-3"></div>
<div class="col-lg-6">
<select name="{$x13webp_select.name}" class="form-control" id="x13webp_image_format">
<option value="webp" {if $x13webp_select.value == 'webp'}selected{/if}>{l s='Generate only WebP' mod='x13webp'}</option>
<option value="jpg" {if $x13webp_select.value == 'jpg'}selected{/if}>{l s='Generate only JPG' mod='x13webp'}</option>
<option value="all" {if $x13webp_select.value == 'all'}selected{/if}>{l s='Generate WebP and JPG' mod='x13webp'}</option>
</select>
</div>
<div class="col-lg-3"></div>
</div>
{if $types}
<ul class="nav nav-tabs" id="form-tabs">
{foreach from=$types item=item name=type}
<li class="{if $smarty.foreach.type.first}active{/if}" data-toggle="tooltip" data-original-title="{l s='The tab has been locked until the photos were generated' mod='x13webp'}">
<a
data-toggle="tab"
href="#tab-x13wepb-{$item.val}"
data-fieldset="{$item.val}"
data-toggle="tab"
class="{if $item.has_types}has_types{/if} {if $x13webp_select.value == 'jpg' && !$item.has_types}disabled{/if}"
>{$item.name}</a>
</li>
{/foreach}
</ul>
<div class="tab-content panel">
{foreach from=$types item=item name=types}
<div class="tab-pane {if $smarty.foreach.types.first}active{/if}" id="tab-x13wepb-{$item.val}">
{if $item.val == 'others'}
{if $is_ps_176}
{include file="module:x13webp/views/templates/admin/file_manager.tpl" progress_item=$item}
{else}
{include file="./file_manager.tpl" progress_item=$item}
{/if}
{else}
{if $is_ps_176}
{include file="module:x13webp/views/templates/admin/conversion_progress.tpl" progress_item=$item}
{else}
{include file="./conversion_progress.tpl" progress_item=$item}
{/if}
{/if}
</div>
{/foreach}
</div>
{if $warning_exists}
<div class="text-center">
<button class="btn btn-warning" id="regenerate-warnings">{l s='Re-generate images that have an error' mod='x13webp'}</button>
</div>
{/if}
<div class="x13webp-log-wrapper hidden">
<div class="button">
<button type="button" class="btn btn-warning hidden" id="x13webp-log-warning" data-toggle="warnings" data-text="{l s='Show all logs' mod='x13webp'}">{l s='Show warnings only' mod='x13webp'}</button>
</div>
<div class="x13webp-log-info"></div>
</div>
{/if}
</div>