This commit is contained in:
Tykayn 2025-06-27 00:12:14 +02:00 committed by tykayn
parent ad240bc1b7
commit cb34fc3e1b
4 changed files with 24 additions and 10 deletions

View file

@ -87,7 +87,9 @@
placeholder="+33 1 23 45 67 89">
</div>
<div id="advanced_tags" class="d-none">
{% include 'public/edit/tags.html.twig' with { 'excluded_tags_to_render': excluded_tags_to_render, 'commerce_overpass': commerce_overpass, 'hide_filled_inputs': hide_filled_inputs } %}
{% include 'public/edit/tags.html.twig' with { 'excluded_tags_to_render': excluded_tags_to_render,
'commerce_overpass': commerce_overpass,
'hide_filled_inputs': hide_filled_inputs } %}
</div>
<div id="validation_messages" class="alert alert-danger d-none"></div>

View file

@ -1,6 +1,7 @@
{% 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">
@ -40,6 +41,7 @@
</div>
</div>
{% endfor %}
{% endif %}
</div>
</fieldset>
{% endblock %}

View file

@ -79,7 +79,11 @@ moyens de paiement proposés
téléphone
</div>
<div class="col-12 col-md-9">
contact:phone
<input type="text" class="form-control" name="commerce_tag_value__contact:phone" value="{{ commerce.tags_converted['contact:phone'] is defined ? commerce.tags_converted['contact:phone'] : '' }}">
<br>
phone:
<input type="text" class="form-control" name="commerce_tag_value__phone" value="{{ commerce.tags_converted['phone'] is defined ? commerce.tags_converted['phone'] : '' }}">
</div>
</div>
<div class="row mb-3">