Current File : /var/www/pma/templates/columns_definitions/transformation.twig |
<select id="field_{{ column_number }}_{{ ci - ci_offset }}"
size="1"
name="field_{{ type }}[{{ column_number }}]">
<option value="" title="{% trans 'None' %}"></option>
{% if available_mime[type] is defined and available_mime[type] is iterable %}
{% for mimekey, transform in available_mime[type] %}
{% set checked = column_meta['Field'] is defined
and mime_map[column_meta['Field']][type] is defined
and mime_map[column_meta['Field']][type] matches
'@' ~ preg_quote(available_mime[type ~ '_file'][mimekey], '@') ~ '3?@i'
? 'selected ' %}
{% set tooltip = Transformations_getDescription(
available_mime[type ~ '_file'][mimekey]
) %}
{% set parts = transform|split(':') %}
{% set name = Transformations_getName(
available_mime[type ~ '_file'][mimekey]
) ~ ' (' ~ parts[0]|lower ~ ':' ~ parts[1] ~ ')' %}
<option value="{{ available_mime[type ~ '_file'][mimekey] }}"
{{ checked }}
title="{{ tooltip }}">
{{ name }}
</option>
{% endfor %}
{% endif %}
</select>