ajout médias sociaux dans la page edit
This commit is contained in:
parent
c46a8304a9
commit
1895089ec9
2 changed files with 41 additions and 3 deletions
|
@ -70,8 +70,21 @@
|
|||
</span>
|
||||
{% endif %}
|
||||
{% include 'public/edit/ask_angela.html.twig' %}
|
||||
{% include 'public/edit/social_media.html.twig' %}
|
||||
|
||||
|
||||
<div class="input-group mb-2 phone-group">
|
||||
<span class="input-group-text" style="width: 120px;">
|
||||
<i class="bi bi-phone me-2"></i>
|
||||
Téléphone
|
||||
</span>
|
||||
<input type="text"
|
||||
class="form-control"
|
||||
id="commerce_tag_value__contact:phone"
|
||||
name="commerce_tag_value__contact:phone"
|
||||
value="{{ place.tags['contact:phone'] ?? '' }}"
|
||||
placeholder="+33 1 23 45 67 89">
|
||||
</div>
|
||||
<div id="advanced_tags" class="d-none">
|
||||
{% include 'public/edit/tags.html.twig' %}
|
||||
</div>
|
||||
|
|
|
@ -1,9 +1,34 @@
|
|||
{# (medias sociaux TODO) #}
|
||||
|
||||
{% block social_medias %}
|
||||
<fieldset>
|
||||
<div id="tags">
|
||||
<fieldset class="mb-3">
|
||||
<legend class="h6">Réseaux sociaux</legend>
|
||||
|
||||
</div>
|
||||
{% set social_medias = {
|
||||
'mastodon': { 'icon': 'bi-mastodon', 'label': 'Mastodon' },
|
||||
'facebook': { 'icon': 'bi-facebook', 'label': 'Facebook' },
|
||||
'instagram': { 'icon': 'bi-instagram', 'label': 'Instagram' },
|
||||
'tiktok': { 'icon': 'bi-tiktok', 'label': 'TikTok' },
|
||||
'youtube': { 'icon': 'bi-youtube', 'label': 'YouTube' },
|
||||
'linkedin': { 'icon': 'bi-linkedin', 'label': 'LinkedIn' },
|
||||
} %}
|
||||
|
||||
<div id="social-media-tags">
|
||||
{% for key, social in social_medias %}
|
||||
{% set tag_name = 'contact:' ~ key %}
|
||||
<div class="input-group mb-2">
|
||||
<span class="input-group-text" style="width: 120px;">
|
||||
<i class="bi {{ social.icon }} me-2"></i>
|
||||
{{ social.label }}
|
||||
</span>
|
||||
<input type="text"
|
||||
class="form-control"
|
||||
id="commerce_tag_value__{{ tag_name }}"
|
||||
name="commerce_tag_value__{{ tag_name }}"
|
||||
value="{{ place.tags[tag_name] ?? '' }}"
|
||||
placeholder="@compte ou URL complète">
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</fieldset>
|
||||
{% endblock social_medias %}
|
Loading…
Add table
Add a link
Reference in a new issue