templates/frontend/home/_join.html.twig line 1
<div class="bg-brand-gray py-8" id="join">
<div class="lg:w-[1280px] lg:mx-auto">
<div class="flex space-x-6">
<div class=" w-2/3">
<h5 class="uppercase text-brand-dark text-3xl font-light mx-8 mb-3">{{ 'join.title' | trans }}</h5>
<p class="py-6 font-light indent-8">
{{ 'join.description' | trans }}
</p>
<ul class="grid grid-cols-2 gap-6">
<li>
<a class="flex items-center space-x-3 p-3 transition ease-in-out rounded bg-brand text-white group"
href="{{ path('app_intro', {'_fragment': 'documents'}) }}">
<div class="fa-stack text-brand-green text-white text-2xl">
<i class="fa-regular fa-circle fa-stack-2x"></i>
<i class="fa-solid fa-clipboard fa-stack-1x text-white/80"></i>
</div>
<span>{{ 'join.buttons.rules' | trans }}</span>
</a>
</li>
<li>
<a class="flex items-center space-x-3 p-3 transition ease-in-out rounded bg-brand text-white group"
href="{{ path('app_intro', {'_fragment': 'documents'}) }}">
<div class="fa-stack text-brand-green text-white text-2xl">
<i class="fa-regular fa-circle fa-stack-2x"></i>
<i class="fa-solid fa-file-circle-question fa-stack-1x text-white/80"></i>
</div>
<span>{{ 'join.buttons.procedure' | trans }}</span>
</a>
</li>
<li>
<a class="flex items-center space-x-3 p-3 transition ease-in-out rounded bg-brand text-white group"
href="{{ path('app_intro', {'_fragment': 'documents'}) }}">
<div class="fa-stack text-brand-green text-white text-2xl">
<i class="fa-regular fa-circle fa-stack-2x"></i>
<i class="fa-solid fa-file-pen fa-stack-1x text-white/80"></i>
</div>
<span>{{ 'join.buttons.application' | trans }}</span>
</a>
</li>
<li>
<a class="flex items-center space-x-3 p-3 transition ease-in-out rounded bg-brand text-white group"
href="{{ path('app_intro', {'_fragment': 'documents'}) }}">
<div class="fa-stack text-brand-green text-white text-2xl">
<i class="fa-regular fa-circle fa-stack-2x"></i>
<i class="fa-solid fa-file-signature fa-stack-1x text-white/80"></i>
</div>
<span>{{ 'join.buttons.contract' | trans }}</span>
</a>
</li>
</ul>
</div>
<div class="text-left p-6 bg-white rounded w-1/3 shadow">
{% for label, messages in app.flashes %}
{% for message in messages %}
<div class="p-3 rounded bg-green-300 border border-green-500 mb-3 text-green-900">
<i class="fa fa-circle-check mr-3"></i>{{ message }}
</div>
{% endfor %}
{% endfor %}
<form id="feedback" action="{{ path('app_user_feedback', {_locale: app.request.locale}) }}"
method="post" name="feedback">
<div class="mb-6">
<input name="email" type="email"
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
placeholder="{{ 'join.feedback.email' | trans }}" required>
</div>
<div class="mb-6">
<input name="number" type="number"
maxlength="8"
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
placeholder="{{ 'join.feedback.phone' | trans }}" required>
</div>
<div class="mb-6">
<textarea maxlength="500" name="body" rows="5"
class="bg-gray-50 border border-gray-300 text-gray-900 text-sm rounded focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
placeholder="{{ 'join.feedback.text' | trans }}" required></textarea>
</div>
<input name="token" type="hidden" value="{{ csrf_token('user-feedback') }}">
<button type="submit"
class="text-white bg-brand hover:bg-brand/80 font-medium rounded-lg text-sm w-full sm:w-auto px-5 py-2.5 text-center">
<i class="fa fa-paper-plane mr-3"></i>{{ 'join.feedback.button' | trans }}
</button>
</form>
<script>
{# $(document).ready(function(){ #}
{# $("#feedback").submit(function(e){ #}
{# e.preventDefault(); #}
{# const form = $(this); #}
{# const email = $('#email').val(); #}
{# const number = $('#number').val(); #}
{# const feedback = $('#feedback-body').val(); #}
{# const token = $('#_csrf_token').val(); #}
{# $.ajax({ #}
{# type: 'POST', #}
{# url: '{{ path('app_user_feedback') }}', #}
{# data: {email : email, contact: number, feedback: feedback, token: token}, #}
{# dataType: 'json', #}
{# success: (response) => { #}
{# console.log(response); #}
{# } #}
{# }) #}
{# }); #}
{# }); #}
</script>
</div>
</div>
</div>
</div>