templates/wanted_jobs_search/_includes/form.html.twig line 1

Open in your IDE?
  1. {% block stylesheets %}
  2. <link rel="stylesheet" href="{{ asset('assets/generated/tailwind.css')|cdnifyUri }}">
  3. <link rel="stylesheet" href="{{ asset('assets/generated/living_styleguide.css') }}">
  4. {% endblock %}
  5. {% if not form.vars.valid %}
  6. <div class="jlls-alert jlls-alert-danger">
  7. <div class="jlls-alert-body jlls-alert-body-danger">
  8. <p>{{ 'wanted_jobs_search.form_page.form_not_valid'|trans }}</p>
  9. </div>
  10. </div>
  11. {% endif %}
  12. {{ form_start(form, { 'attr': {'autocomplete': 'off'} }) }}
  13. {{ include('wanted_jobs_search/_includes/filter_modal.html.twig') }}
  14. {% set limitedInSearch = limitedInSearch is defined ? limitedInSearch : null %}
  15. {% set joboffererProfileId = joboffererProfileId is defined ? joboffererProfileId : null %}
  16. <div class="jtw-form-card tw-rounded-xl">
  17. <div class="jlls-card-title tw-rounded-t-xl">
  18. <span class="jlls-card-title-text">{{ 'wanted_jobs_search.form_page.headline'|trans }}</span>
  19. </div>
  20. <div class="jtw-form-card-main-content tw-rounded-b-xl">
  21. {{ include(
  22. '_includes/formSearch/form_search_section.html.twig',
  23. {
  24. label: 'wanted_jobs_search.form_page.search_section_title',
  25. limitedInSearch: limitedInSearch,
  26. joboffererCanEditZipcodeForWantedJobsSearch: joboffererProfileCanEditZipcodeForWantedJobsSearch is defined and not joboffererProfileCanEditZipcodeForWantedJobsSearch,
  27. joboffererProfileId:joboffererProfileId,
  28. recurrentJobForm: false
  29. }
  30. ) }}
  31. <div class="tw-flex tw-flex-row tw-justify-between tw-w-full">
  32. <button type="button" class="jlls-button-secondary tw-flex tw-items-center tw-gap-2" data-toggle="modal" data-target="#filter-modal">
  33. Filter
  34. <i class="fa fa-chevron-down"></i>
  35. </button>
  36. <button id="button-submit-search" type="submit" name="searchButton"
  37. class="jlls-button-tertiary">{{ 'wanted_jobs_search.form_page.search' |trans }}</button>
  38. </div>
  39. {% if addFeatureFlagKey is defined and addFeatureFlagKey == constant('App\\Service\\FeatureFlagService::ENABLED_FOR_REQUEST_IF_REQUEST_CORRECT') %}
  40. <input type="hidden" id="{{ constant('App\\Service\\FeatureFlagService::REQUEST_KEY_NAME') }}"
  41. name="{{ constant('App\\Service\\FeatureFlagService::REQUEST_KEY_NAME') }}"
  42. value="{{ constant('App\\Service\\FeatureFlagService::REQUEST_KEY_VALUE') }}">
  43. {% endif %}
  44. </div>
  45. </div>
  46. {% if not resultPage %}
  47. <div class="jlls-card">
  48. <div class="p-4 d-none d-md-block"><img src="{{ asset('assets/images/js-suche/js_suche_stats.png')|cdnifyUri }}" alt="" width="100%"></div>
  49. <div class="p-4 d-md-none"><img src="{{ asset('assets/images/js-suche/js_suche_stats_mobil.png')|cdnifyUri }}" alt="" width="100%"></div>
  50. </div>
  51. {% endif %}
  52. <div class="invisible" style="height: 70px" id="scroll-here"></div>
  53. {{ form_end(form) }}
  54. {% set defaultJoboffererProfileId = app.user ? app.user.defaultJoboffererProfile.id : null %}
  55. {{ include('wanted_jobs_search/_includes/form_zipCode_modal.html.twig', { title: 'wanted_jobs_search.form_page.modal_title', content: 'wanted_jobs_search.form_page.modal_content', buttonText:'wanted_jobs_search.form_page.modal_button_text', userId: defaultJoboffererProfileId, limitedInSearch: limitedInSearch }) }}
  56. {{ include('wanted_jobs_search/_includes/please_wait_modal.html.twig') }}