{% block tags %}
<fieldset>
<div id="tags">
{%if excluded_tags_to_render is defined %}
    {% for k, v in commerce_overpass.tags_converted %}
        <div class="row mb-3 {% if hide_filled_inputs is defined and v is not empty %}d-none{% endif %}">
            <div class="col-md-5">
                {% if k not in excluded_tags_to_render %}
                    <div class="d-flex align-items-center">
                        {% if k == 'phone' or k == 'contact:phone' %}
                            <i class="bi bi-telephone me-2"></i>
                        {% elseif k == 'addr:housenumber' or k == 'addr:street' or k == 'addr:city' or k == 'addr:postcode' or k == 'addr:country' %}
                            <i class="bi bi-geo-alt me-2"></i>
                        {% elseif k == 'contact:mastodon' %}
                            <i class="bi bi-mastodon me-2"></i>
                        {% elseif k == 'email' or k == 'contact:email' %}
                            <i class="bi bi-envelope me-2"></i>
                        {% elseif k == 'website' or k == 'contact:website' %}
                            <i class="bi bi-globe me-2"></i>
                        {% elseif k == 'opening_hours' %}   
                            <i class="bi bi-clock me-2"></i>
                        {% else %}
                            <i class="bi bi-tag me-2"></i>
                        {% endif %}
                        <span class="label-translated" title="{{ k }}">{{ ('display.keys.' ~ k)|trans }}</span>
                    </div>
                {% endif %}
            </div>
            <div class="col-md-5">
                {# {% if k not in excluded_tags_to_render %} #}
                    <div class="input-group">
                        <input type="text" 
                               class="form-control" 
                               id="commerce_tag_value__{{ k }}" 
                               name="commerce_tag_value__{{ k }}" 
                               value="{{ v }}"
                               {% if hide_filled_inputs is defined and v %}style="display: none;"{% endif %}> 
                    </div>
                {# {% endif %} #}
            </div>
        </div>
    {% endfor %}
{% endif %}
</div>
</fieldset>
{% endblock %}