refacto fonctions
This commit is contained in:
parent
1b0d2d425d
commit
9b09b0d59d
8 changed files with 191 additions and 163 deletions
|
@ -1,25 +1,24 @@
|
|||
<div id="opening_hours">
|
||||
<h2>
|
||||
<i class="bi bi-clock"></i>
|
||||
{{ 'display.opening_hours'|trans }}</h2>
|
||||
<p class="description">{{ 'display.opening_hours_description'|trans }}</p>
|
||||
<h2>
|
||||
<i class="bi bi-clock"></i>
|
||||
{{ 'display.opening_hours'|trans }}</h2>
|
||||
<p class="description">{{ 'display.opening_hours_description'|trans }}</p>
|
||||
|
||||
{% if commerce_overpass.tags_converted.opening_hours is defined and commerce_overpass.tags_converted.opening_hours != '' %}
|
||||
<input type="text" placeholder="Remplissez" class="form-control" name="custom__opening_hours" value="{{ commerce_overpass.tags_converted.opening_hours }}">
|
||||
{% else %}
|
||||
<input type="text" placeholder="Lundi de 10h à 12h et de 14h à 18h" class="form-control" name="custom__opening_hours" value="">
|
||||
<br>
|
||||
{% endif %}
|
||||
|
||||
{# <div class="examples d-none">
|
||||
Exemples :
|
||||
<ul>
|
||||
<li>Écrivez "24/7" pour indiquer que le commerce est ouvert 24 heures sur 24</li>
|
||||
<li>Écrivez "Mo-Fr 9:00 - 18:00" pour indiquer que le commerce est ouvert du lundi au vendredi de 9h à 18h</li>
|
||||
<li>Pour des horaires plus complexes, écrivez "Mo-Fr 9:00 - 18:00; Sa 9:00 - 12:00" pour indiquer que le commerce est ouvert du lundi au vendredi de 9h à 18h et le samedi de 9h à 12h</li>
|
||||
</ul>
|
||||
</div> #}
|
||||
<hr>
|
||||
<script src="{{ asset('js/main.js') }}"></script>
|
||||
</script>
|
||||
</div>
|
||||
{% if commerce_overpass.tags_converted.opening_hours is defined and commerce_overpass.tags_converted.opening_hours != '' %}
|
||||
<input type="text"
|
||||
placeholder="Remplissez"
|
||||
class="form-control"
|
||||
name="custom__opening_hours"
|
||||
id="custom__opening_hours"
|
||||
value="{{ commerce_overpass.tags_converted.opening_hours }}">
|
||||
{% else %}
|
||||
<input type="text"
|
||||
placeholder="Mo-Fr 10:00-12:00 "
|
||||
class="form-control"
|
||||
name="custom__opening_hours"
|
||||
id="custom__opening_hours"
|
||||
value="">
|
||||
<br>
|
||||
{% endif %}
|
||||
<hr>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue