Files
interblue.pl/modules/x13webp/views/templates/admin/conversion_progress.tpl
Jacek Pyziak 9003eede2d Add X13 WebP module for image conversion to next-generation formats
- Implemented the X13Webp class with core functionalities for converting images to WebP format.
- Added support for different PHP versions and defined constants for versioning.
- Included translation strings for various user interface elements and messages.
- Created XML file for module versioning.
2025-09-12 00:41:29 +02:00

55 lines
2.8 KiB
Smarty

<form>
<table class="table progress-item-table">
<thead>
<tr>
<th width="15%">{l s='Image type' mod='x13webp'}</th>
<th width="15%">{l s='Actions' mod='x13webp'}</th>
<th width="15%" class="text-right">{l s='Status' mod='x13webp'}</th>
<th width="55%">{l s='Progress' mod='x13webp'}</th>
</tr>
</thead>
<tbody>
{if $progress_item.types}
{foreach from=$progress_item.types item=type}
{if $is_ps_176}
{include file="module:x13webp/views/templates/admin/progress_item.tpl" progress_item=$progress_item image_type=$type.name image_name=$type.name}
{else}
{include file="./progress_item.tpl" progress_item=$progress_item image_type=$type.name image_name=$type.name}
{/if}
{/foreach}
{else}
{if $is_ps_176}
{include file="module:x13webp/views/templates/admin/progress_item.tpl" progress_item=$progress_item image_type='all' image_name=$progress_item.types_info}
{else}
{include file="./progress_item.tpl" progress_item=$progress_item image_type='all' image_name=$progress_item.types_info}
{/if}
{/if}
</tbody>
</table>
{if $progress_item.allowed}
{if $progress_item.types}
<div class="bottom-button-conversion-progress" data-type="{$progress_item.val}">
<div class="bottom-buttons-wrapper" data-toggle="tooltip" data-original-title="{l s='Buttons were disabled during the conversion process' mod='x13webp'}">
<div class="tooltip-wrapper" data-toggle="tooltip" data-original-title="{l s='Button has been disabled as all images have already been generated' mod='x13webp'}">
<button type="button" class="btn btn-success btn-start-conversion" disabled>
<i class="icon icon-play" aria-hidden="true"></i> {l s='Generate all images' mod='x13webp'}
</button>
</div>
<button type="button" class="btn btn-warning btn-pause-conversion hidden" disabled>
<i class="icon icon-pause" aria-hidden="true"></i> {l s='Stop generating images' mod='x13webp'}
</button>
<button type="button" class="btn btn-secondary btn-refresh-conversion" disabled>
<i class="icon icon-refresh" aria-hidden="true"></i> {l s='Re-generate all images' mod='x13webp'}
</button>
</div>
</div>
{/if}
{else}
<div class="alert alert-warning" style="margin-top:15px;">{l s='This item is not allowed to generate' mod='x13webp'}</div>
{/if}
</form>