mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-09 17:02:46 +02:00
ajout restaurant et cuisine
This commit is contained in:
parent
a1c5647b43
commit
0577081581
10 changed files with 192 additions and 29 deletions
|
@ -2,11 +2,11 @@
|
|||
<h2>{{ 'display.address'|trans }}</h2>
|
||||
<div class="row mb-3">
|
||||
<div class="col-md-5">
|
||||
<label for="commerce_tag_value__addr:housenumber">{{'display.keys.addr:housenumber'|trans}}</label>
|
||||
<input type="text" class="form-control" name="commerce_tag_value__addr:housenumber" value="{% if commerce_overpass.tags_converted['addr:housenumber'] is defined %}{{ commerce_overpass.tags_converted['addr:housenumber'] }}{% endif %}">
|
||||
<label for="commerce_tag_value__addr:housenumber">{{'display.keys.contact:addr:housenumber'|trans}}</label>
|
||||
<input type="text" class="form-control" name="commerce_tag_value__contact:addr:housenumber" value="{% if commerce_overpass.tags_converted['contact:addr:housenumber'] is defined %}{{ commerce_overpass.tags_converted['contact:addr:housenumber'] }}{% endif %}">
|
||||
|
||||
<label for="commerce_tag_value__addr:street">{{'display.keys.addr:street'|trans}}</label>
|
||||
<input type="text" class="form-control" name="commerce_tag_value__addr:street" value="{% if commerce_overpass.tags_converted['addr:street'] is defined %}{{ commerce_overpass.tags_converted['addr:street'] }}{% endif %}">
|
||||
<label for="commerce_tag_value__contact:addr:street">{{'display.keys.contact:addr:street'|trans}}</label>
|
||||
<input type="text" class="form-control" name="commerce_tag_value__contact:addr:street" value="{% if commerce_overpass.tags_converted['contact:addr:street'] is defined %}{{ commerce_overpass.tags_converted['contact:addr:street'] }}{% endif %}">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
22
templates/public/edit/clim.html.twig
Normal file
22
templates/public/edit/clim.html.twig
Normal file
|
@ -0,0 +1,22 @@
|
|||
<div id="clim" class="mb-6">
|
||||
<h2 class="mb-3 title">
|
||||
<label for="commerce_tag_value__clim">
|
||||
<i class="bi bi-thermometer-half"></i>
|
||||
|
||||
{{'display.keys.clim'|trans}}</label>
|
||||
</h2>
|
||||
<div class="form-part mx-3">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="commerce_tag_value__air_conditioning" id="clim_yes" value="yes" {% if commerce.tags_converted.air_conditioning is defined and commerce.tags_converted.air_conditioning == 'yes' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="clim_yes">Oui</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="commerce_tag_value__air_conditioning" id="clim_no" value="no" {% if commerce.tags_converted.air_conditioning is defined and commerce.tags_converted.air_conditioning == 'no' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="clim_no">Non</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="commerce_tag_value__air_conditioning" id="clim_unknown" value="" {% if commerce.tags_converted.air_conditioning is not defined or commerce.tags_converted.air_conditioning == '' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="clim_unknown">Je ne sais pas</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
|
@ -1,11 +1,83 @@
|
|||
<div class="row mb-3">
|
||||
<div class="col-md-5">
|
||||
<label for="commerce_tag_value__cuisine">{{'display.keys.cuisine'|trans}}</label>
|
||||
</div>
|
||||
<div class="col-md-5">
|
||||
<input type="text" class="form-control" name="commerce_tag_value__cuisine"
|
||||
placeholder="française;italienne;japonaise"
|
||||
<div id="restaurant">
|
||||
|
||||
<h2 class="title mt-4">
|
||||
<label for="commerce_tag_value__cuisine">
|
||||
<i class="bi bi-fork-knife"></i>
|
||||
{{'display.keys.cuisine'|trans}}</label>
|
||||
</h2>
|
||||
|
||||
|
||||
<div class="row mb-3">
|
||||
|
||||
<div class="col-12 p-4">
|
||||
<input type="text" class="form-control d-none" name="commerce_tag_value__cuisine"
|
||||
placeholder="french;italian"
|
||||
value="{% if commerce.tags_converted.cuisine is defined %}{{ commerce.tags_converted.cuisine }}{% endif %}">
|
||||
<small class="form-text text-muted">{{'display.help.cuisine'|trans}}</small>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_chinoise" value="chinese" {% if commerce.tags_converted.cuisine is defined and 'chinese' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_chinoise">Chinoise</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_coreenne" value="korean" {% if commerce.tags_converted.cuisine is defined and 'korean' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_coreenne">Coréenne</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_francaise" value="french" {% if commerce.tags_converted.cuisine is defined and 'french' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_francaise">Française</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_indienne" value="indian" {% if commerce.tags_converted.cuisine is defined and 'indian' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_indienne">Indienne</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_italienne" value="italian" {% if commerce.tags_converted.cuisine is defined and 'italian' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_italienne">Italienne</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_japonaise" value="japanese" {% if commerce.tags_converted.cuisine is defined and 'japanese' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_japonaise">Japonaise</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_libanaise" value="lebanese" {% if commerce.tags_converted.cuisine is defined and 'lebanese' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_libanaise">Libanaise</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_thailandaise" value="thai" {% if commerce.tags_converted.cuisine is defined and 'thai' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_thailandaise">Thaïlandaise</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input col-2" type="checkbox" name="cuisine_type" id="cuisine_turque" value="turkish" {% if commerce.tags_converted.cuisine is defined and 'turkish' in commerce.tags_converted.cuisine %}checked{% endif %}>
|
||||
<label class="form-check-label col-12" for="cuisine_turque">Turque</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<h3 class="title mt-4">
|
||||
<label for="commerce_tag_value__takeaway">
|
||||
<i class="bi bi-cart-check"></i>
|
||||
{{'display.keys.takeaway'|trans}}</label>
|
||||
</h3>
|
||||
|
||||
<div class="p-4">
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="commerce_tag_value__takeaway" id="takeaway_yes" value="yes" {% if commerce.tags_converted.takeaway is defined and commerce.tags_converted.takeaway == 'yes' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="takeaway_yes">Oui mais pas uniquement à emporter</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="commerce_tag_value__takeaway" id="takeaway_only" value="only" {% if commerce.tags_converted.takeaway is defined and commerce.tags_converted.takeaway == 'only' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="takeaway_only">Uniquement à emporter</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="commerce_tag_value__takeaway" id="takeaway_no" value="no" {% if commerce.tags_converted.takeaway is defined and commerce.tags_converted.takeaway == 'no' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="takeaway_no">Nous ne proposons pas d'emporter les plats</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="radio" name="commerce_tag_value__takeaway" id="takeaway_unknown" value="" {% if commerce.tags_converted.takeaway is not defined or commerce.tags_converted.takeaway == '' %}checked{% endif %}>
|
||||
<label class="form-check-label" for="takeaway_unknown">Je ne sais pas</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
1
templates/public/edit/social_media.html.twig
Normal file
1
templates/public/edit/social_media.html.twig
Normal file
|
@ -0,0 +1 @@
|
|||
{# (medias sociaux TODO) #}
|
|
@ -1,4 +1,4 @@
|
|||
<div id="wheelchair">
|
||||
<div id="wheelchair" class="d-none mt-4">
|
||||
<h2><i class="bi bi-person-wheelchair"></i> {{ 'display.wheelchair'|trans }}</h2>
|
||||
<div class="row mb-3 p-4">
|
||||
<div class="col-12">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue