{% extends 'beautytada/layout.postcode.twig' %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('recommend-a-salon') }}
{% endblock %}
{% block javascripts %}
{{ parent() }}
{{ encore_entry_script_tags('recommend-a-salon') }}
{% endblock %}
{% block content %}
<script>
TRANS['contactFormTitle'] = '{% trans %}Recommend a Salon{% endtrans %}'
TRANS['object'] = '{% trans %}Salon{% endtrans %}'
TRANS['successMessage'] = '{% trans %}Thank you for recommendation, we will contact your recommended salon soon{% endtrans %}'
WINDOW_CONFIG['apiSearchStoreByPostcode'] = "{{ path('api_v1_search_stores_by_postcode') }}"
WINDOW_CONFIG['recommendRestaurantRegisterApi'] = '{{ path('api_v1_register_salon_register') }}'
WINDOW_CONFIG['recommendRestaurantRegisterToken'] = '{{ csrf_token('register-salon') }}'
WINDOW_CONFIG['siteKey'] = '{{ k_captcha_public_key() }}'
</script>
<div id="recommend-a-salon">
<recommend-form inline-template @submit="register" :processing="processing" ref="recommendForm">
{% embed "beautytada/component/recommend-form.twig" %}
{% block objectFieldLabel %}{% trans %}Salon name{% endtrans %}{% endblock %}
{% endembed %}
</recommend-form>
</div>
{% endblock %}