var/cache/dev/twig/0a/0a7df8687e039fec3f3c943c17ddf068c4b11ea062885d75daf0bf06fe25b137.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* studio/list.html.twig */
  14. class __TwigTemplate_97f85580bbabdce1edf7507af8e5a9314c94b335ed0bd811d579cb241133af3e extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'content' => [$this'block_content'],
  24.             'inlinescripts' => [$this'block_inlinescripts'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""studio/list.html.twig"));
  37.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""studio/list.html.twig"));
  39.         $this->parent $this->loadTemplate("layout.html.twig""studio/list.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  43.         
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  45.     }
  46.     // line 3
  47.     public function block_content($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  52.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         // line 4
  55.         echo "\t<!-- #main -->
  56. \t<main id=\"main\" role=\"main\">
  57. \t\t";
  58.         // line 7
  59.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""top-content");
  60.         echo "
  61. \t\t<section id=\"sutdios\">
  62. \t\t\t<div class=\"apk-studios exk_booking_studio_list\">
  63. \t\t\t\t<div class=\"uk-container apk-container-1400\">
  64. \t\t\t\t\t";
  65.         // line 27
  66.         echo "\t\t\t\t\t";
  67.         $context["orderLink"] = (((("<a href=\"" $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("account_orders")) . "\">") . $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("cliquez ici")) . "</a>");
  68.         // line 28
  69.         echo "\t\t\t\t\t";
  70.         if ((twig_length_filter($this->env, (isset($context["orders"]) || array_key_exists("orders"$context) ? $context["orders"] : (function () { throw new RuntimeError('Variable "orders" does not exist.'28$this->source); })())) == 1)) {
  71.             // line 29
  72.             echo "\t\t\t\t\t\t<div class=\"apk-alert-orange apk-f-24\" uk-alert>\t
  73. \t\t\t\t\t\t\t<p>";
  74.             // line 30
  75.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vous avez une réservation en cours. Pour consulter votre réservation"), "html"nulltrue);
  76.             echo " ";
  77.             echo (isset($context["orderLink"]) || array_key_exists("orderLink"$context) ? $context["orderLink"] : (function () { throw new RuntimeError('Variable "orderLink" does not exist.'30$this->source); })());
  78.             echo ".</p>
  79. \t\t\t\t\t\t</div>
  80. \t\t\t\t\t";
  81.         } elseif ((twig_length_filter($this->env,         // line 32
  82. (isset($context["orders"]) || array_key_exists("orders"$context) ? $context["orders"] : (function () { throw new RuntimeError('Variable "orders" does not exist.'32$this->source); })())) > 1)) {
  83.             // line 33
  84.             echo "\t\t\t\t\t\t<div class=\"apk-alert-orange apk-f-24\" uk-alert>
  85. \t\t\t\t\t\t\t<p>";
  86.             // line 34
  87.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Vous avez des réservations en cours. Pour consulter vos réservations"), "html"nulltrue);
  88.             echo " ";
  89.             echo (isset($context["orderLink"]) || array_key_exists("orderLink"$context) ? $context["orderLink"] : (function () { throw new RuntimeError('Variable "orderLink" does not exist.'34$this->source); })());
  90.             echo ".</p>
  91. \t\t\t\t\t\t</div>
  92. \t\t\t\t\t";
  93.         }
  94.         // line 37
  95.         echo "
  96. \t\t\t\t\t<div class=\"apk-studios-filters\">
  97. \t\t\t\t\t\t<div class=\"uk-grid-medium uk-grid\" uk-grid uk-height-match=\"target: .apk-label-input-style , .apk-studios-filters-type\">
  98. \t\t\t\t\t\t\t
  99. \t\t\t\t\t\t\t<div class=\"uk-width-2-3@m apk-studios-filters-inputs\">
  100. \t\t\t\t\t\t\t\t<span class=\"apk-studios-filters--title uk-visible@s\">";
  101.         // line 43
  102.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Session"), "html"nulltrue);
  103.         echo "</span>
  104. \t\t\t\t\t\t\t\t<div class=\"uk-child-width-1-4@s uk-grid-collapse uk-grid apk-studios-filters-inputs-upper\" uk-grid>";
  105.         // line 46
  106.         if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'46$this->source); })()), "property", [=> "defaultSearchPlace"], "method"falsefalsefalse46)) {
  107.             // line 47
  108.             echo "\t\t\t\t\t\t\t\t\t\t<span id=\"defaultSearchPlaceId\" hidden apk-data-id=\"";
  109.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'47$this->source); })()), "property", [=> "defaultSearchPlace"], "method"falsefalsefalse47), "id", [], "any"falsefalsefalse47), "html"nulltrue);
  110.             echo "\"></span>
  111. \t\t\t\t\t\t\t\t\t";
  112.         }
  113.         // line 49
  114.         echo "                                    ";
  115.         if (twig_get_attribute($this->env$this->source, (isset($context["document"]) || array_key_exists("document"$context) ? $context["document"] : (function () { throw new RuntimeError('Variable "document" does not exist.'49$this->source); })()), "property", [=> "defaultSearchPlace"], "method"falsefalsefalse49)) {
  116.             // line 50
  117.             echo "                                        <span id=\"defaultHoursSelected\" hidden apk-data-id=\"";
  118.             echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("minimum_hours_selected"1), "html"nulltrue);
  119.             echo "\"></span>
  120.                                     ";
  121.         }
  122.         // line 52
  123.         echo "\t\t\t\t\t\t\t\t\t<span id=\"pageLanguage\" hidden apk-data-id=\"";
  124.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'52$this->source); })()), "request", [], "any"falsefalsefalse52), "locale", [], "any"falsefalsefalse52), "html"nulltrue);
  125.         echo "\"></span>
  126. \t\t\t\t\t\t\t\t\t";
  127.         // line 54
  128.         $context['_parent'] = $context;
  129.         $context['_seq'] = twig_ensure_traversable((isset($context["locations"]) || array_key_exists("locations"$context) ? $context["locations"] : (function () { throw new RuntimeError('Variable "locations" does not exist.'54$this->source); })()));
  130.         foreach ($context['_seq'] as $context["_key"] => $context["l"]) {
  131.             // line 55
  132.             echo "\t\t\t\t\t\t\t\t\t<div class=\"uk-width-auto@s uk-width-1-3@s uk-width-1-2 apk-width-75-2\">
  133. \t\t\t\t\t\t\t\t\t\t<label for=\"";
  134.             // line 56
  135.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["l"], "id", [], "any"falsefalsefalse56), "html"nulltrue);
  136.             echo "\" class=\"apk-label-input-style is-radio-type\">
  137. \t\t\t\t\t\t\t\t\t\t\t<input value=\"";
  138.             // line 57
  139.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["l"], "id", [], "any"falsefalsefalse57), "html"nulltrue);
  140.             echo "\" class=\"uk-checkbox\" type=\"radio\" id=\"";
  141.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["l"], "id", [], "any"falsefalsefalse57), "html"nulltrue);
  142.             echo "\" data-studiodefault=\"";
  143.             if (twig_get_attribute($this->env$this->source$context["l"], "defaultCategory", [], "any"falsefalsefalse57)) {
  144.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["l"], "defaultCategory", [], "any"falsefalsefalse57), "id", [], "any"falsefalsefalse57), "html"nulltrue);
  145.             }
  146.             echo "\" required v-model=\"sLocation\" @change=\"searchStudios()\">
  147. \t\t\t\t\t\t\t\t\t\t\t<span class=\"apk-label\">";
  148.             // line 58
  149.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["l"], "name", [], "any"falsefalsefalse58), "html"nulltrue);
  150.             echo "</span>
  151. \t\t\t\t\t\t\t\t\t\t</label>
  152. \t\t\t\t\t\t\t\t\t</div>
  153. \t\t\t\t\t\t\t\t\t";
  154.         }
  155.         $_parent $context['_parent'];
  156.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['l'], $context['_parent'], $context['loop']);
  157.         $context array_intersect_key($context$_parent) + $_parent;
  158.         // line 62
  159.         echo "\t\t\t\t\t\t\t\t</div>
  160. \t\t\t\t\t\t\t\t<div class=\"uk-child-width-1-4@s uk-grid-collapse uk-grid\" uk-grid>
  161. \t\t\t\t\t\t\t\t\t";
  162.         // line 66
  163.         echo "\t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-4@m uk-width-1-3@s uk-width-2-5\">
  164. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-label-input-style\" style=\"position:relative;\">
  165. \t\t\t\t\t\t\t\t\t\t\t<label for=\"bookDate\" class=\"uk-visible@s\">";
  166.         // line 68
  167.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Date"), "html"nulltrue);
  168.         echo "</label>
  169. \t\t\t\t\t\t\t\t\t\t\t<!-- Date Desktop text -->
  170. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"!isMobile\" class=\"bookDateDesktop\" :class=\"{ 'exk-form-input-danger' : sDateNotValid }\" type=\"text\" name=\"bookDate\" id=\"bookDate\" :data-value=\"sDate\" v-model=\"sDateDesktop\" required style=\"position:absolute; bottom:0; z-index: -1;\">
  171. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"!isMobile\" class=\"uk-input apk-input-date hide-browser-calendar bookDateDesktopText\" type=\"text\" :data-value=\"sDate\" v-model=\"sDateDesktopText\" required readonly=\"readonly\">
  172. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"isMobile\" class=\"uk-input apk-input-date hide-browser-calendar bookDateMobile\" :class=\"{ 'exk-form-input-danger' : sDateNotValid }\" type=\"text\" name=\"bookDate\" id=\"bookDate\" required :value=\"sDateMobile\" :data-value=\"sDate\" readonly=\"readonly\">
  173. \t\t\t\t\t\t\t\t\t\t</div>
  174. \t\t\t\t\t\t\t\t\t</div>
  175. \t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-4@m uk-width-1-3@s uk-visible@s\">
  176. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-label-input-style\">
  177. \t\t\t\t\t\t\t\t\t\t\t<label for=\"bookDate\" class=\"uk-visible@s\">";
  178.         // line 79
  179.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Hour"), "html"nulltrue);
  180.         echo "</label>
  181. \t\t\t\t\t\t\t\t\t\t\t<select v-if=\"!isMobile\" class=\"hide-browser-calendar uk-select apk-input-hour\" :class=\"{ 'exk-form-input-danger' : sHourNotValid }\" name=\"bookHour\" id=\"bookHour\" v-model=\"sHour\" @change=\"searchStudios()\" required>
  182. \t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
  183.         // line 81
  184.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select an hour"), "html"nulltrue);
  185.         echo "</option>
  186. \t\t\t\t\t\t\t\t\t\t\t\t
  187. \t\t\t\t\t\t\t\t\t\t\t\t";
  188.         // line 83
  189.         $context["ii"] = [=> 0=> 1=> 2=> 3=> 4=> 5=> 6=> 7=> 8=> 910 => 1011 => 1112 => 1213 => 1314 => 1415 => 1516 => 1617 => 1718 => 1819 => 1920 => 2021 => 2122 => 2223 => 23];
  190.         // line 84
  191.         echo "
  192. \t\t\t\t\t\t\t\t\t\t\t\t";
  193.         // line 85
  194.         if (($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("OpeningStudiosOur") && $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ClosingStudiosOur"))) {
  195.             echo "\t
  196. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  197. \t\t\t\t\t\t\t\t\t\t\t\t\t
  198. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  199.             // line 88
  200.             $context["hourSeparator"] = null;
  201.             // line 89
  202.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  203.             $context['_parent'] = $context;
  204.             $context['_seq'] = twig_ensure_traversable((isset($context["ii"]) || array_key_exists("ii"$context) ? $context["ii"] : (function () { throw new RuntimeError('Variable "ii" does not exist.'89$this->source); })()));
  205.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  206.                 // line 90
  207.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  208.                 if (($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("OpeningStudiosOur") < $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ClosingStudiosOur"))) {
  209.                     // line 91
  210.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  211.                     if ((($context["i"] >= $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("OpeningStudiosOur")) && ($context["i"] < $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ClosingStudiosOur")))) {
  212.                         // line 92
  213.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  214.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  215.                         echo "\" v-if=\"";
  216.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  217.                         echo " >= minHourAllowed\">";
  218.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  219.                         echo "h00</option>
  220. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  221.                     }
  222.                     // line 94
  223.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  224.                 } else {
  225.                     // line 95
  226.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  227.                     if ((($context["i"] < $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ClosingStudiosOur")) || ($context["i"] >= $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("OpeningStudiosOur")))) {
  228.                         // line 96
  229.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  230.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  231.                         echo "\" v-if=\"";
  232.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  233.                         echo " >= minHourAllowed\">";
  234.                         echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  235.                         echo "h00</option>
  236. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  237.                     } else {
  238.                         // line 98
  239.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  240.                         if ( !(isset($context["hourSeparator"]) || array_key_exists("hourSeparator"$context) ? $context["hourSeparator"] : (function () { throw new RuntimeError('Variable "hourSeparator" does not exist.'98$this->source); })())) {
  241.                             // line 99
  242.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\" v-if=\"";
  243.                             echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  244.                             echo " >= minHourAllowed\" disabled>---------------</option>
  245. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  246.                         }
  247.                         // line 101
  248.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  249.                         $context["hourSeparator"] = true;
  250.                         // line 102
  251.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  252.                     }
  253.                     // line 103
  254.                     echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  255.                 }
  256.                 // line 104
  257.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  258.             }
  259.             $_parent $context['_parent'];
  260.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  261.             $context array_intersect_key($context$_parent) + $_parent;
  262.             // line 105
  263.             echo "
  264. \t\t\t\t\t\t\t\t\t\t\t\t";
  265.         } else {
  266.             // line 107
  267.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  268.             // line 108
  269.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t";
  270.             $context['_parent'] = $context;
  271.             $context['_seq'] = twig_ensure_traversable((isset($context["ii"]) || array_key_exists("ii"$context) ? $context["ii"] : (function () { throw new RuntimeError('Variable "ii" does not exist.'108$this->source); })()));
  272.             foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  273.                 // line 109
  274.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  275.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  276.                 echo "\" v-if=\"";
  277.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  278.                 echo " >= minHourAllowed\">";
  279.                 echo twig_escape_filter($this->env$context["i"], "html"nulltrue);
  280.                 echo "h00</option>
  281. \t\t\t\t\t\t\t\t\t\t\t\t\t";
  282.             }
  283.             $_parent $context['_parent'];
  284.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  285.             $context array_intersect_key($context$_parent) + $_parent;
  286.             // line 111
  287.             echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  288.         }
  289.         // line 112
  290.         echo "\t\t\t\t\t\t\t\t\t\t\t</select>
  291. \t\t\t\t\t\t\t\t\t\t\t";
  292.         // line 115
  293.         echo "\t\t\t\t\t\t\t\t\t\t\t<input v-if=\"isMobile\" type=\"text\" class=\"uk-select apk-input-hour bookHourMobile uk-visible@s\" :class=\"{ 'exk-form-input-danger' : sHourNotValid }\" name=\"bookHour\" id=\"bookHour\" @focus=\"searchStudios()\" placeholder=\"";
  294.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select an hour"), "html"nulltrue);
  295.         echo "\" required :data-value=\"sHour\" v-model=\"sHourMobile\" uk-toggle=\"target: #modal-hours\">
  296. \t\t\t\t\t\t\t\t\t\t</div>
  297. \t\t\t\t\t\t\t\t\t</div>
  298. \t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-4@m uk-width-1-3@s uk-width-3-5\">
  299. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-label-input-style\">
  300. \t\t\t\t\t\t\t\t\t\t\t<label for=\"bookDuration\" class=\"uk-visible@s\">";
  301.         // line 120
  302.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Duration"), "html"nulltrue);
  303.         echo "</label>
  304. \t\t\t\t\t\t\t\t\t\t\t<select v-if=\"!isMobile\" class=\"uk-select apk-duration\" :class=\"{ 'exk-form-input-danger' : sDurationNotValid }\" name=\"bookDuration\" id=\"bookDuration\" v-model=\"sDuration\" @change=\"searchStudios()\" required>
  305. \t\t\t\t\t\t\t\t\t\t\t\t<!-- DEBUT OPTIONS A DYNAMISER -->
  306. \t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
  307.         // line 123
  308.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select a duration"), "html"nulltrue);
  309.         echo "</option>
  310. \t\t\t\t\t\t\t\t\t\t\t\t";
  311.         // line 124
  312.         $context["hh"] = [=> 1=> 2=> 3=> 4=> 5=> 6=> 7=> 8=> 9=> 1010 => 1111 => 12];
  313.         // line 125
  314.         echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  315.         $context['_parent'] = $context;
  316.         $context['_seq'] = twig_ensure_traversable((isset($context["hh"]) || array_key_exists("hh"$context) ? $context["hh"] : (function () { throw new RuntimeError('Variable "hh" does not exist.'125$this->source); })()));
  317.         foreach ($context['_seq'] as $context["_key"] => $context["h"]) {
  318.             // line 126
  319.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  320.             echo twig_escape_filter($this->env$context["h"], "html"nulltrue);
  321.             echo "\">
  322. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  323.             // line 127
  324.             echo twig_escape_filter($this->env$context["h"], "html"nulltrue);
  325.             echo "h00
  326. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  327.             // line 133
  328.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t</option>
  329. \t\t\t\t\t\t\t\t\t\t\t\t";
  330.         }
  331.         $_parent $context['_parent'];
  332.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['h'], $context['_parent'], $context['loop']);
  333.         $context array_intersect_key($context$_parent) + $_parent;
  334.         // line 135
  335.         echo "\t\t\t\t\t\t\t\t\t\t\t\t<!-- FIN OPTIONS A DYNAMISER -->
  336. \t\t\t\t\t\t\t\t\t\t\t</select>
  337. \t
  338. \t\t\t\t\t\t\t\t\t\t\t";
  339.         // line 139
  340.         echo "\t\t\t\t\t\t\t\t\t\t\t<input v-if=\"isMobile\" type=\"text\" class=\"uk-select apk-duration bookDurationMobile uk-visible@s\" :class=\"{ 'exk-form-input-danger' : sDurationNotValid }\" name=\"bookDuration\" id=\"bookDuration\" placeholder=\"";
  341.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select a duration"), "html"nulltrue);
  342.         echo "\" required :data-value=\"sDuration\" readonly=\"readonly\" v-model=\"sDurationMobile\" uk-toggle=\"target: #modal-hours\">
  343. \t
  344. \t\t\t\t\t\t\t\t\t\t\t";
  345.         // line 142
  346.         echo "\t\t\t\t\t\t\t\t\t\t\t<input v-if=\"isMobile\" type=\"text\" class=\"uk-input bookHourDuration uk-hidden@s apk-duration\" readonly=\"readonly\" uk-toggle=\"target: #modal-hours\">  
  347. \t\t\t\t\t\t\t\t\t\t</div>
  348. \t\t\t\t\t\t\t\t\t</div>
  349. \t\t\t\t\t\t\t\t\t";
  350.         // line 159
  351.         echo "\t\t\t\t\t\t\t\t\t<div class=\"uk-position-relative\">
  352. \t\t\t\t\t\t\t\t\t\t<button id=\"submit\" @focus=\"searchStudios()\" style=\"width:1px; height:1px; position: absolute; top: 0; left: 0; z-index: -1;\">
  353. \t\t\t\t\t\t\t\t\t\t\t";
  354.         // line 161
  355.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Recherche"), "html"nulltrue);
  356.         echo "
  357. \t\t\t\t\t\t\t\t\t\t</button>
  358. \t\t\t\t\t\t\t\t\t</div>
  359. \t\t\t\t\t\t\t\t</div>
  360. \t\t\t\t\t\t\t\t
  361. \t\t\t\t\t\t\t</div>
  362. \t\t\t\t\t\t\t<div class=\"uk-width-1-3@m uk-flex-first@m apk-margin-small-mobile\">
  363. \t\t\t\t\t\t\t\t<span class=\"apk-studios-filters--title uk-visible@s\">";
  364.         // line 169
  365.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Studio type"), "html"nulltrue);
  366.         echo "</span>
  367. \t\t\t\t\t\t\t\t";
  368.         // line 170
  369.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "request", [], "any"falsetruefalse170), "get", [=> "studioTypeId"], "method"truetruefalse170)) {
  370.             // line 171
  371.             echo "\t\t\t\t\t\t\t\t\t<span id=\"predefinedStudio\" predefinedStudio=\"";
  372.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'171$this->source); })()), "request", [], "any"falsefalsefalse171), "get", [=> "studioTypeId"], "method"falsefalsefalse171), "html"nulltrue);
  373.             echo "\" hidden></span>
  374. \t\t\t\t\t\t\t\t";
  375.         }
  376.         // line 173
  377.         echo "
  378. \t\t\t\t\t\t\t\t";
  379.         // line 174
  380.         if ( !(null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("maxHourSearch"))) {
  381.             // line 175
  382.             echo "\t\t\t\t\t\t\t\t\t";
  383.             $context["maxHourSearch"] = $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("maxHourSearch");
  384.             // line 176
  385.             echo "\t\t\t\t\t\t\t\t";
  386.         } else {
  387.             // line 177
  388.             echo "\t\t\t\t\t\t\t\t\t";
  389.             $context["maxHourSearch"] = "20:15";
  390.             // line 178
  391.             echo "\t\t\t\t\t\t\t\t";
  392.         }
  393.         // line 179
  394.         echo "\t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"maxHourSearch\" value=\"";
  395.         echo twig_escape_filter($this->env, (isset($context["maxHourSearch"]) || array_key_exists("maxHourSearch"$context) ? $context["maxHourSearch"] : (function () { throw new RuntimeError('Variable "maxHourSearch" does not exist.'179$this->source); })()), "html"nulltrue);
  396.         echo "\" hidden/>
  397. \t\t\t\t\t\t\t\t";
  398.         // line 181
  399.         if ( !(null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("OpeningStudiosOur"))) {
  400.             // line 182
  401.             echo "\t\t\t\t\t\t\t\t\t<input id=\"openingOurs\" value=\"";
  402.             echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("OpeningStudiosOur"), "html"nulltrue);
  403.             echo "\" hidden/>
  404. \t\t\t\t\t\t\t\t";
  405.         }
  406.         // line 184
  407.         echo "\t\t\t\t\t\t\t\t";
  408.         if ( !(null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ClosingStudiosOur"))) {
  409.             // line 185
  410.             echo "\t\t\t\t\t\t\t\t\t<input id=\"closingOurs\" value=\"";
  411.             echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ClosingStudiosOur"), "html"nulltrue);
  412.             echo "\" hidden/>
  413. \t\t\t\t\t\t\t\t";
  414.         }
  415.         // line 187
  416.         echo "\t\t\t\t\t\t\t\t";
  417.         if ( !(null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("durationBeforeNextHour"))) {
  418.             // line 188
  419.             echo "\t\t\t\t\t\t\t\t\t<input id=\"durationBeforeNextHour\" value=\"";
  420.             echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("durationBeforeNextHour"), "html"nulltrue);
  421.             echo "\" hidden/>
  422. \t\t\t\t\t\t\t\t";
  423.         }
  424.         // line 190
  425.         echo "\t\t\t\t\t\t\t\t";
  426.         if ( !(null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("defaultSearchStudio"))) {
  427.             // line 191
  428.             echo "\t\t\t\t\t\t\t\t\t<input id=\"defaultSearchStudio\" value=\"";
  429.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("defaultSearchStudio"), "id", [], "any"falsefalsefalse191), "html"nulltrue);
  430.             echo "\" hidden/>
  431. \t\t\t\t\t\t\t\t";
  432.         }
  433.         // line 193
  434.         echo "\t\t\t\t\t\t\t\t";
  435.         if ( !(null === $this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("defaultSearchStudioSubCat"))) {
  436.             // line 194
  437.             echo "\t\t\t\t\t\t\t\t\t<input id=\"defaultSearchStudioSubCat\" value=\"";
  438.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("defaultSearchStudioSubCat"), "id", [], "any"falsefalsefalse194), "html"nulltrue);
  439.             echo "\" hidden/>
  440. \t\t\t\t\t\t\t\t";
  441.         }
  442.         // line 196
  443.         echo "\t\t\t\t\t\t\t\t<div hidden ";
  444.         echo ">
  445. \t\t\t\t\t\t\t\t\t<span>";
  446.         // line 197
  447.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Chose your type of studio"), "html"nulltrue);
  448.         echo "</span>
  449. \t\t\t\t\t\t\t\t</div>
  450. \t\t\t\t\t\t\t\t<div class=\"apk-studios-filters-content\" ";
  451.         // line 199
  452.         echo ">
  453. \t\t\t\t\t\t\t\t\t<div class=\"uk-grid-small uk-grid\" uk-grid uk-height-match=\"target: .apk-studios-filters-type\">
  454. \t\t\t\t\t\t\t\t\t\t";
  455.         // line 201
  456.         $context['_parent'] = $context;
  457.         $context['_seq'] = twig_ensure_traversable((isset($context["studioCategories"]) || array_key_exists("studioCategories"$context) ? $context["studioCategories"] : (function () { throw new RuntimeError('Variable "studioCategories" does not exist.'201$this->source); })()));
  458.         foreach ($context['_seq'] as $context["_key"] => $context["studCat"]) {
  459.             // line 202
  460.             echo "\t\t\t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-2\" ";
  461.             if (twig_get_attribute($this->env$this->source$context["studCat"], "place", [], "any"falsefalsefalse202)) {
  462.                 echo "v-if=\"sLocation == ";
  463.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["studCat"], "place", [], "any"falsefalsefalse202), "id", [], "any"falsefalsefalse202), "html"nulltrue);
  464.                 echo "\"";
  465.             }
  466.             echo ">
  467. \t\t\t\t\t\t\t\t\t\t\t\t";
  468.             // line 204
  469.             echo "\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" class=\"uk-dark uk-checkbox\" name=\"studioCat\" id=\"studioCat_";
  470.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["studCat"], "id", [], "any"falsefalsefalse204), "html"nulltrue);
  471.             echo "\" data-place=\"";
  472.             if (twig_get_attribute($this->env$this->source$context["studCat"], "place", [], "any"falsefalsefalse204)) {
  473.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["studCat"], "place", [], "any"falsefalsefalse204), "id", [], "any"falsefalsefalse204), "html"nulltrue);
  474.             }
  475.             echo "\" value=\"";
  476.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["studCat"], "id", [], "any"falsefalsefalse204), "html"nulltrue);
  477.             echo "\" @change=\"searchStudios()\" v-model=\"studioCats\">
  478. \t\t\t\t\t\t\t\t\t\t\t\t";
  479.             // line 206
  480.             echo "\t\t\t\t\t\t\t\t\t\t\t\t<label class=\"apk-studios-filters-type uk-text-center\" for=\"studioCat_";
  481.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["studCat"], "id", [], "any"falsefalsefalse206), "html"nulltrue);
  482.             echo "\">
  483. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-studios-filters-media\">
  484. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  485.             // line 208
  486.             if (twig_get_attribute($this->env$this->source$context["studCat"], "image", [], "any"falsefalsefalse208)) {
  487.                 // line 209
  488.                 echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img uk-svg width=\"26\" height=\"26\" src=\"";
  489.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["studCat"], "image", [], "any"falsefalsefalse209), "html"nulltrue);
  490.                 echo "\" alt=\"";
  491.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["studCat"], "title", [], "any"falsefalsefalse209), "html"nulltrue);
  492.                 echo "\">
  493. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  494.             }
  495.             // line 211
  496.             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  497. \t\t\t\t\t\t\t\t\t\t\t\t\t<span>";
  498.             // line 212
  499.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["studCat"], "title", [], "any"falsefalsefalse212), "html"nulltrue);
  500.             echo "</span>
  501. \t\t\t\t\t\t\t\t\t\t\t\t</label>
  502. \t\t\t\t\t\t\t\t\t\t\t</div>
  503. \t\t\t\t\t\t\t\t\t\t";
  504.         }
  505.         $_parent $context['_parent'];
  506.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['studCat'], $context['_parent'], $context['loop']);
  507.         $context array_intersect_key($context$_parent) + $_parent;
  508.         // line 216
  509.         echo "\t\t\t\t\t\t\t\t\t</div>
  510. \t\t\t\t\t\t\t\t</div>
  511. \t\t\t\t\t\t\t</div>
  512. \t\t\t\t\t\t</div>
  513. \t\t\t\t\t</div>
  514. \t\t\t\t\t<div style=\"min-height:821px;\">
  515. \t\t\t\t\t\t<div id=\"subcateg\" vue-loading  v-if=\"showSubCats\">
  516. \t\t\t\t\t\t\t<div class=\"apk-studios-filters-subtype uk-flex uk-flex-left@s uk-flex-center uk-text-center uk-width-expand@s uk-child-width-auto uk-grid-collapse uk-width-1-1 uk-grid\"
  517. \t\t\t\t\t\t\t\tuk-grid :class=\"{'apk-display-grid' : (studioSCats.length > 2 && isMobile)}\">
  518. \t\t\t\t\t\t\t\t<div v-for=\"souscateg in studioSCats\"
  519. \t\t\t\t\t\t\t\t:class=\"{'apk-subcategs-inline' : (studioSCats.length > 2 && isMobile)}\">
  520. \t\t\t\t\t\t\t\t\t<input class=\"scateg-checkbox-selector uk-checkbox\" type=\"checkbox\" :name=\"'studioSCat_'+[[souscateg.id]]\" :id=\"'studioSCat_'+[[souscateg.id]]\" :true-value=\"souscateg.id\"
  521.                                            :false-value=\"0\" @change=\"searchStudios()\" v-model=\"studioSCatsSelected\"/>
  522. \t\t\t\t\t\t\t\t\t<label :for=\"'studioSCat_'+[[souscateg.id]]\">
  523. \t\t\t\t\t\t\t\t\t\t<span>[[souscateg.title]]</span>
  524. \t\t\t\t\t\t\t\t\t</label>
  525. \t\t\t\t\t\t\t\t</div>
  526. \t\t\t\t\t\t\t</div>
  527. \t\t\t\t\t\t</div>
  528. \t\t\t\t\t\t
  529. \t\t\t\t\t\t<div id=\"availability\" class=\"apk-studios-filters-results\" :class=\"studioAvailable == 1 ? 'available' : 'unavailable'\" vue-loading>
  530. \t\t\t\t\t\t\t";
  531.         // line 244
  532.         echo "\t\t\t\t\t\t\t<span v-if=\"studioAvailable == 0\">
  533. \t\t\t\t\t\t\t\t";
  534.         // line 245
  535.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Pas de studio libre à la date/heure sélectionnée ci-dessus"), "html"nulltrue);
  536.         echo "
  537. \t\t\t\t\t\t\t</span>
  538. \t\t\t\t\t\t</div>
  539. \t\t\t\t\t\t
  540. \t\t\t\t\t\t<div class=\"apk-studios-list\" vue-loading>
  541. \t\t\t\t\t\t\t
  542. \t\t\t\t\t\t\t";
  543.         // line 262
  544.         echo "\t\t\t\t\t\t\t<div class=\"uk-grid\" uk-grid uk-height-match=\"target: .apk-studios-box-bottom\">
  545. \t
  546. \t\t\t\t\t\t\t\t<div class=\"uk-width-1-3@m uk-width-1-2@s\" v-for=\"studio in studioList\">
  547. \t\t\t\t\t\t\t\t\t<!-- FORM avec action vers le checkout -->
  548. \t\t\t\t\t\t\t\t\t<div class=\"apk-studios-box uk-dark\">
  549. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-studios-box-top\">
  550. \t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-title\">
  551. \t\t\t\t\t\t\t\t\t\t\t\t<div>
  552. \t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"studio.titleTranslated\" class=\"uk-h3\" :class=\"studio.cssFontSizeTitle\" style=\"white-space: pre-wrap;\">
  553. \t\t\t\t\t\t\t\t\t\t\t\t\t\t[[ studio.titleTranslated ]]
  554. \t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  555. \t\t\t\t\t\t\t\t\t\t\t\t\t<span v-else class=\"uk-h3\" :class=\"studio.cssFontSizeTitle\">
  556. \t\t\t\t\t\t\t\t\t\t\t\t\t\t[[ studio.title ]]
  557. \t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  558. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  559. \t\t\t\t\t\t\t\t\t\t\t</div>
  560. \t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-media uk-cover-container\" ";
  561.         // line 278
  562.         echo ">
  563. \t\t\t\t\t\t\t\t\t\t\t\t<div ";
  564.         // line 279
  565.         echo " v-html=\"studio.image\"></div>
  566. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-audience uk-text-center\">
  567. \t\t\t\t\t\t\t\t\t\t\t\t\t<div>
  568. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<img uk-svg width=\"20\" height=\"15\" src=\"/static/img/pictos/audience.svg\" alt=\"\">
  569. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  570. \t\t\t\t\t\t\t\t\t\t\t\t\t<div>
  571. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>[[ studio.maxPersons ]]
  572. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  573.         // line 286
  574.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("max"), "html"nulltrue);
  575.         echo "</span>
  576. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  577. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  578. \t\t\t\t\t\t\t\t\t\t\t</div>
  579. \t
  580. \t\t\t\t\t\t\t\t\t\t\t<!---------------->
  581. \t\t\t\t\t\t\t\t\t\t\t<div v-if=\"studio.shortInfos\" class=\"apk-short-description\" v-html=\"studio.shortInfos\">
  582. \t
  583. \t\t\t\t\t\t\t\t\t\t\t</div>
  584. \t\t\t\t\t\t\t\t\t\t\t<hr class=\"uk-margin-small-top uk-margin-small-bottom\" v-if=\"studio.shortInfos\"/>
  585. \t\t\t\t\t\t\t\t\t\t\t";
  586.         // line 311
  587.         echo "\t
  588. \t\t\t\t\t\t\t\t\t\t\t<!---------------->
  589. \t
  590. \t\t\t\t\t\t\t\t\t\t\t<ul v-if=\"studio.infos\" class=\"apk-infos uk-margin-small-top uk-margin-small-bottom\" uk-accordion>
  591. \t\t\t\t\t\t\t\t\t\t\t\t<li>
  592. \t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"uk-accordion-title apk-infos--title\" href=\"#\">";
  593.         // line 316
  594.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("More info about this studio ?"), "html"nulltrue);
  595.         echo "</a>
  596. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uk-accordion-content\">
  597. \t
  598. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-infos--text uk-margin-small-bottom\" v-html=\"studio.infos\"></div>
  599. \t
  600. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr class=\"uk-margin-remove\"/>
  601. \t
  602. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"uk-margin-small-top apk-infos--text\" v-html=\"studio.gear\"></p>
  603. \t
  604. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  605. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  606. \t\t\t\t\t\t\t\t\t\t\t</ul>
  607. \t\t\t\t\t\t\t\t\t\t\t<span v-if=\"!studio.infos\" class=\"uk-display-block uk-margin-small-top apk-infos--title\">";
  608.         // line 328
  609.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("No infos"), "html"nulltrue);
  610.         echo "</span>
  611. \t\t\t\t\t\t\t\t\t\t</div>
  612. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-studios-box-bottom\">
  613. \t\t\t\t\t\t\t\t\t\t\t<hr/>
  614. \t\t\t\t\t\t\t\t\t\t\t<span :id=\"'exk_vue_booking_'+studio.id\" class=\"exk_vue_booking\" :data-lockText=\"studio.lockText\" :data-placeLock=\"studio.placeLock\" :data-studio=\"studio.id\" :data-searchdate=\"sDate\" :data-searchhour=\"sHour\" :data-searchduration=\"sDuration\" :data-defaultprice=\"studio.defaultPrice\" :data-availability=\"studio.availability\" :data-displaycalendar=\"";
  615.         // line 332
  616.         echo twig_escape_filter($this->env, (isset($context["displayCalendar"]) || array_key_exists("displayCalendar"$context) ? $context["displayCalendar"] : (function () { throw new RuntimeError('Variable "displayCalendar" does not exist.'332$this->source); })()), "html"nulltrue);
  617.         echo "\" :data-detailstudio=\"";
  618.         echo twig_escape_filter($this->env, (isset($context["detailstudio"]) || array_key_exists("detailstudio"$context) ? $context["detailstudio"] : (function () { throw new RuntimeError('Variable "detailstudio" does not exist.'332$this->source); })()), "html"nulltrue);
  619.         echo "\" data-language=\"";
  620.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'332$this->source); })()), "request", [], "any"falsefalsefalse332), "locale", [], "any"falsefalsefalse332), "html"nulltrue);
  621.         echo "\"></span>
  622. \t\t\t\t\t\t\t\t\t\t</div>
  623. \t\t\t\t\t\t\t\t\t</div>
  624. \t\t\t\t\t\t\t\t</div>
  625. \t\t\t\t\t\t\t</div>
  626. \t\t\t\t\t\t</div>\t
  627. \t\t\t\t\t</div>
  628. \t\t\t\t</div>
  629. \t\t\t\t<div id=\"modal-hours\" class=\"uk-flex-top uk-modal\" uk-modal=\"bg-close: false\">
  630. \t\t\t\t\t<div class=\"uk-modal-dialog uk-modal-body uk-margin-auto-vertical\">
  631. \t\t\t\t\t\t<div class=\"apk-modal-promotions uk-dark\">
  632. \t\t\t\t\t\t\t";
  633.         // line 345
  634.         $context['_parent'] = $context;
  635.         $context['_seq'] = twig_ensure_traversable((isset($context["studioCategories"]) || array_key_exists("studioCategories"$context) ? $context["studioCategories"] : (function () { throw new RuntimeError('Variable "studioCategories" does not exist.'345$this->source); })()));
  636.         foreach ($context['_seq'] as $context["_key"] => $context["studCat"]) {
  637.             // line 346
  638.             echo "\t\t\t\t\t\t\t\t";
  639.             $context['_parent'] = $context;
  640.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["studCat"], "categories", [], "any"falsefalsefalse346));
  641.             foreach ($context['_seq'] as $context["_key"] => $context["studSubCat"]) {
  642.                 // line 347
  643.                 echo "\t\t\t\t\t\t\t\t\t";
  644.                 if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["studSubCat"], "pricingGrid", [], "any"falsefalsefalse347), "mobilePromo", [], "any"falsefalsefalse347)) {
  645.                     // line 348
  646.                     echo "\t\t\t\t\t\t\t\t\t\t<div class=\"apk-modal-promotions-inner\" v-if=\"studioSCatsSelectedPromo == ";
  647.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["studSubCat"], "id", [], "any"falsefalsefalse348), "html"nulltrue);
  648.                     echo "\" id=\"";
  649.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["studSubCat"], "id", [], "any"falsefalsefalse348), "html"nulltrue);
  650.                     echo "\">
  651. \t\t\t\t\t\t\t\t\t\t\t";
  652.                     // line 349
  653.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["studSubCat"], "pricingGrid", [], "any"falsefalsefalse349), "mobilePromo", [], "any"falsefalsefalse349), "html"nulltrue);
  654.                     echo "
  655. \t\t\t\t\t\t\t\t\t\t</div>
  656. \t\t\t\t\t\t\t\t\t";
  657.                 }
  658.                 // line 352
  659.                 echo "\t\t\t\t\t\t\t\t";
  660.             }
  661.             $_parent $context['_parent'];
  662.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['studSubCat'], $context['_parent'], $context['loop']);
  663.             $context array_intersect_key($context$_parent) + $_parent;
  664.             // line 353
  665.             echo "\t\t\t\t\t\t\t";
  666.         }
  667.         $_parent $context['_parent'];
  668.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['studCat'], $context['_parent'], $context['loop']);
  669.         $context array_intersect_key($context$_parent) + $_parent;
  670.         // line 354
  671.         echo "\t\t\t\t\t\t</div>
  672. \t\t\t\t\t\t<div class=\"uk-flex\">
  673. \t\t\t\t\t\t\t<div id=\"hourContainer\"></div>
  674. \t\t\t\t\t\t\t<div id=\"durationContainer\"></div>
  675. \t\t\t\t\t\t</div>
  676. \t\t\t\t\t\t<div class=\"uk-text-center uk-margin-top\">
  677. \t\t\t\t\t\t\t<button class=\"uk-button uk-button-black uk-width-1-1 uk-modal-close\" type=\"button\">";
  678.         // line 360
  679.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Done"), "html"nulltrue);
  680.         echo "</button>
  681. \t\t\t\t\t\t</div>
  682. \t\t\t\t\t</div>
  683. \t\t\t\t</div>
  684. \t\t\t</div>
  685. \t\t</section>
  686. \t\t";
  687.         // line 368
  688.         echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context"areablock""bottom-content");
  689.         echo "
  690. \t</main>
  691. \t<!-- end #main -->
  692. \t";
  693.         // line 374
  694.         $this->loadTemplate("studio/booking-studio.html.twig""studio/list.html.twig"374)->display($context);
  695.         // line 375
  696.         echo "
  697. \t";
  698.         // line 377
  699.         echo "\t";
  700.         if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("minify-css-js")) {
  701.             // line 378
  702.             echo "\t\t";
  703.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "/static/js/minified/booking/picker.min.js"], "method"falsefalsefalse378);
  704.             // line 379
  705.             echo "\t\t";
  706.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "/static/js/minified/booking/core.min.js"], "method"falsefalsefalse379);
  707.             // line 380
  708.             echo "\t\t";
  709.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "/static/js/minified/booking/list.min.js"], "method"falsefalsefalse380);
  710.             // line 381
  711.             echo "\t";
  712.         } else {
  713.             // line 382
  714.             echo "\t\t";
  715.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/static/js/booking/picker.js")], "method"falsefalsefalse382);
  716.             // line 383
  717.             echo "\t\t";
  718.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "/static/js/booking/core.js"], "method"falsefalsefalse383);
  719.             // line 384
  720.             echo "\t\t";
  721.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "/static/js/booking/list.js"], "method"falsefalsefalse384);
  722.             // line 385
  723.             echo "\t";
  724.         }
  725.         // line 386
  726.         echo "
  727. \t";
  728.         // line 387
  729.         twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "/static/js/jquery-ui/jquery-ui.1.13.2.min.js"], "method"falsefalsefalse387);
  730.         // line 388
  731.         echo "\t";
  732.         if ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'388$this->source); })()), "request", [], "any"falsefalsefalse388), "locale", [], "any"falsefalsefalse388) == "fr")) {
  733.             // line 389
  734.             echo "\t\t";
  735.             twig_get_attribute($this->env$this->source$this->env->getFunction('pimcore_head_script')->getCallable()(), "appendFile", [=> "/static/js/jquery-ui/locale-fr.min.js"], "method"falsefalsefalse389);
  736.             echo "\t
  737. \t";
  738.         }
  739.         // line 391
  740.         echo "
  741. ";
  742.         
  743.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  744.         
  745.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  746.     }
  747.     // line 394
  748.     public function block_inlinescripts($context, array $blocks = [])
  749.     {
  750.         $macros $this->macros;
  751.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  752.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  753.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  754.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""inlinescripts"));
  755.         // line 395
  756.         echo "\t<script>
  757. \t\t/* \tPicker de d'heures
  758. \t\t\tDocumentation : https://github.com/fengyuanchen/pickerjs/blob/master/README.md */
  759. \t\tjQuery(function (\$) {
  760. \t\t\tif(\$(document).ready(function(){
  761. \t\t\t\t
  762. \t\t\t\tfunction padTo2Digits(num) {
  763. \t\t\t\t\treturn num.toString().padStart(2, '0');
  764. \t\t\t\t};
  765. \t\t
  766. \t\t\t\tfunction formatDate(date) {
  767. \t\t\t\t\treturn [
  768. \t\t\t\t\t\tpadTo2Digits(date.getDate()),
  769. \t\t\t\t\t\tpadTo2Digits(date.getMonth() + 1),
  770. \t\t\t\t\t\tdate.getFullYear(),
  771. \t\t\t\t\t].join('/');
  772. \t\t\t\t};
  773. \t\t\t\tfunction FormatedTextDate (dateSubmited, language) {
  774. \t\t\t\t\tlet languageLocale = \"fr-BE\";
  775. \t\t\t\t\tif(language == \"fr\") {
  776. \t\t\t\t\t\tlanguageLocale = \"fr-BE\";
  777. \t\t\t\t\t} else if(language == \"nl\") {
  778. \t\t\t\t\t\tlanguageLocale = \"nl-BE\";
  779. \t\t\t\t\t} else if(language == \"en\") {
  780. \t\t\t\t\t\tlanguageLocale = \"en-US\";
  781. \t\t\t\t\t}
  782. \t\t\t\t\tlet date = new Date(dateSubmited);
  783. \t\t\t\t\tlet year = date.getFullYear();
  784. \t\t\t\t\tlet dayNumber = date.getDate();
  785. \t\t\t\t\tlet dayText = date.toLocaleDateString(languageLocale, { weekday: \"short\" });
  786. \t\t\t\t\tlet month = date.toLocaleDateString(languageLocale, { month: \"short\" });
  787. \t\t
  788. \t\t\t\t\tlet string = `\${capitalizeFirstLetter(dayText)} \${dayNumber} \${capitalizeFirstLetter(month)}, \${year}`;
  789. \t\t\t\t\treturn string;
  790. \t\t\t\t};
  791. \t\t\t\tfunction capitalizeFirstLetter(string) {
  792. \t\t\t\t\tstring = string.split('.').join(\"\");
  793. \t\t\t\t\treturn string.charAt(0).toUpperCase() + string.slice(1);
  794. \t\t\t\t}
  795. \t\t\t\t
  796. \t\t\t\tfunction focusSubmit() {
  797. \t\t\t\t\t\$('#submit').focus();
  798. \t\t\t\t\tconsole.log(\$('#submit'));
  799. \t\t\t\t}
  800. \t\t
  801. \t\t\t\t\$( \"#bookDate\" ).datepicker({
  802. \t\t\t\t\tminDate: 0,
  803. \t\t\t\t\tshowButtonPanel: true,
  804. \t\t\t\t\tdateFormat: 'dd/mm/yy',
  805. \t\t\t\t\tregional: \"";
  806.         // line 448
  807.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'448$this->source); })()), "request", [], "any"falsefalsefalse448), "locale", [], "any"falsefalsefalse448), "html"nulltrue);
  808.         echo "\",
  809. \t\t\t\t});
  810. \t\t\t\t\$( \"#bookDate\" ).on('change', function(){
  811. \t\t\t\t\tvar date = \$(this).datepicker( \"getDate\", {dateFormat: 'yy-mm-dd'} );
  812. \t\t\t\t\t/* handle timezone */
  813. \t\t\t\t\tconst offset = date.getTimezoneOffset();
  814. \t\t\t\t\tdate = new Date(date.getTime() - (offset*60*1000));
  815. \t\t\t\t\tvar datePicked = date.toISOString().split('T')[0];
  816. \t\t\t\t\t\$(this).attr('data-value', datePicked);
  817. \t\t\t\t\tvar desktopDate = \$(\".bookDateDesktopText\");
  818. \t\t\t\t\tdesktopDate.val(FormatedTextDate(datePicked, '";
  819.         // line 460
  820.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'460$this->source); })()), "request", [], "any"falsefalsefalse460), "locale", [], "any"falsefalsefalse460), "html"nulltrue);
  821.         echo "'));
  822. \t\t\t\t\tfocusSubmit();
  823. \t\t\t\t\t
  824. \t\t\t\t});
  825. \t\t\t\t\$(\".bookDateDesktopText\").on('click', function(){
  826. \t\t\t\t\t\$(\"#bookDate\").datepicker(\"show\");
  827. \t\t\t\t});
  828. \t\t\t\t\$('.apk-studios-filters button#submit').on('click', function(){
  829. \t\t\t\t\t/* console.log('click'); */
  830. \t\t\t\t\tlet headerHeight = \$('header').height();
  831. \t\t\t\t\t\$(window).resize(function(){
  832. \t\t\t\t\t\theaderHeight = \$('header').height();
  833. \t\t\t\t\t});
  834. \t\t\t\t\t\$([document.documentElement, document.body]).animate({
  835. \t\t\t\t\t\tscrollTop: \$(\".apk-studios-list\").offset().top - headerHeight
  836. \t\t\t\t\t}, 1000);
  837. \t\t\t\t});
  838. \t\t\t\tfunction submitClick(noScroll = null) {
  839. \t\t\t\t\t\$('#submit').click();
  840. \t\t\t\t\tif(noScroll) {
  841. \t\t\t\t\t\t\$([document.documentElement, document.body]).animate().stop();
  842. \t\t\t\t\t}
  843. \t\t\t\t};
  844. \t\t\t\tvar bookDate = document.getElementsByClassName('bookDateMobile');
  845. \t\t\t\tvar bookHour = document.getElementsByClassName('bookHourMobile');
  846. \t\t\t\tvar bookDuration = document.getElementsByClassName('bookDurationMobile');
  847. \t\t\t\tvar bookHourDuration = \$('.bookHourDuration');
  848. \t\t\t\tif (bookDate.length && bookDuration.length) {
  849. \t\t\t\t\tbookDate = bookDate[0];
  850. \t\t\t\t\tbookDuration = bookDuration[0];
  851. \t\t\t\t\tbookHour = bookHour[0];
  852. \t\t\t\t\t/* Date d'aujuord'hui + 1h */
  853. \t\t\t\t\tvar nowPlusOne = new Date();
  854. \t\t\t\t\tnowPlusOne.setHours(bookHour.getAttribute('data-value'));
  855. \t\t\t\t\t/* nowPlusOne.setHours(nowPlusOne.getHours() + 1) */
  856. \t\t\t\t\tvar pickerBookHour = new Picker(bookHour, {
  857. \t\t\t\t\t\tdate: nowPlusOne,
  858. \t\t\t\t\t\tcontainer: document.getElementById('hourContainer'),
  859. \t\t\t\t\t\tinline: true,
  860. \t\t\t\t\t\tformat: 'H',
  861. \t\t\t\t\t\t";
  862.         // line 511
  863.         if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("OpeningStudiosOur")) {
  864.             // line 512
  865.             echo "\t\t\t\t\t\tminHour: parseInt(";
  866.             echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("OpeningStudiosOur"), "html"nulltrue);
  867.             echo "),
  868. \t\t\t\t\t\t";
  869.         }
  870.         // line 514
  871.         echo "\t\t\t\t\t\t";
  872.         if ($this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ClosingStudiosOur")) {
  873.             // line 515
  874.             echo "\t\t\t\t\t\tmaxHour: parseInt(";
  875.             echo twig_escape_filter($this->env$this->extensions['Pimcore\Twig\Extension\WebsiteConfigExtension']->getWebsiteConfig("ClosingStudiosOur"), "html"nulltrue);
  876.             echo "),
  877. \t\t\t\t\t\t";
  878.         }
  879.         // line 517
  880.         echo "\t\t\t\t\t\tcontrols: true,
  881. \t\t\t\t\t\theaders: true,
  882. \t\t\t\t\t\tlanguage: \"";
  883.         // line 519
  884.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'519$this->source); })()), "request", [], "any"falsefalsefalse519), "locale", [], "any"falsefalsefalse519), "html"nulltrue);
  885.         echo "\",
  886. \t\t\t\t\t\ttext: {
  887. \t\t\t\t\t\t\ttitle: false, /*title: '";
  888.         // line 521
  889.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select an hour to begin"), "html"nulltrue);
  890.         echo "', */
  891. \t\t\t\t\t\t\tcancel: '";
  892.         // line 522
  893.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cancel"), "html"nulltrue);
  894.         echo "',
  895. \t\t\t\t\t\t\tconfirm: '";
  896.         // line 523
  897.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("OK"), "html"nulltrue);
  898.         echo "',
  899. \t\t\t\t\t\t\tyear: '";
  900.         // line 524
  901.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Year"), "html"nulltrue);
  902.         echo "',
  903. \t\t\t\t\t\t\tmonth: '";
  904.         // line 525
  905.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Month"), "html"nulltrue);
  906.         echo "',
  907. \t\t\t\t\t\t\tday: '";
  908.         // line 526
  909.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Day"), "html"nulltrue);
  910.         echo "',
  911. \t\t\t\t\t\t\thour: '";
  912.         // line 527
  913.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Hout to begin"), "html"nulltrue);
  914.         echo "',
  915. \t\t\t\t\t\t\tminute: '";
  916.         // line 528
  917.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Minute"), "html"nulltrue);
  918.         echo "',
  919. \t\t\t\t\t\t\tsecond: '";
  920.         // line 529
  921.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Second"), "html"nulltrue);
  922.         echo "',
  923. \t\t\t\t\t\t\tmillisecond: '";
  924.         // line 530
  925.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Millisecond"), "html"nulltrue);
  926.         echo "'
  927. \t\t\t\t\t\t},
  928. \t\t\t\t\t});
  929. \t\t\t\t\t
  930. \t\t\t\t\tvar now = new Date();
  931. \t\t\t\t\tvar oneHourDefault = new Date();
  932. \t\t\t\t\tvar defaultHour = 3;
  933. \t\t\t\t\tif(document.getElementById(\"bookDuration\").getAttribute('data-value')) {
  934. \t\t\t\t\t\tdefaultHour = document.getElementById(\"bookDuration\").getAttribute('data-value');
  935. \t\t\t\t\t}
  936. \t\t\t\t\toneHourDefault.setHours(defaultHour);
  937. \t\t\t\t\t
  938. \t\t\t\t\tvar pickerBookDuration = new Picker(bookDuration, {
  939. \t\t\t\t\t\tdate: oneHourDefault,
  940. \t\t\t\t\t\tcontainer: document.getElementById('durationContainer'),
  941. \t\t\t\t\t\tinline: true,
  942. \t\t\t\t\t\tformat: 'H',
  943. \t\t\t\t\t\tminDuration: 1,
  944. \t\t\t\t\t\tmaxDuration: 12,
  945. \t\t\t\t\t\tcontrols: true,
  946. \t\t\t\t\t\theaders: true,
  947. \t\t\t\t\t\tlanguage: \"";
  948.         // line 551
  949.         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'551$this->source); })()), "request", [], "any"falsefalsefalse551), "locale", [], "any"falsefalsefalse551), "html"nulltrue);
  950.         echo "\",
  951. \t\t\t\t\t\ttext: {
  952. \t\t\t\t\t\t\ttitle: '";
  953.         // line 553
  954.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select a duration"), "html"nulltrue);
  955.         echo "',
  956. \t\t\t\t\t\t\tcancel: '";
  957.         // line 554
  958.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Cancel"), "html"nulltrue);
  959.         echo "',
  960. \t\t\t\t\t\t\tconfirm: '";
  961.         // line 555
  962.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("OK"), "html"nulltrue);
  963.         echo "',
  964. \t\t\t\t\t\t\tyear: '";
  965.         // line 556
  966.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Year"), "html"nulltrue);
  967.         echo "',
  968. \t\t\t\t\t\t\tmonth: '";
  969.         // line 557
  970.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Month"), "html"nulltrue);
  971.         echo "',
  972. \t\t\t\t\t\t\tday: '";
  973.         // line 558
  974.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Day"), "html"nulltrue);
  975.         echo "',
  976. \t\t\t\t\t\t\thour: '";
  977.         // line 559
  978.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Duration"), "html"nulltrue);
  979.         echo "',
  980. \t\t\t\t\t\t\tminute: '";
  981.         // line 560
  982.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Minute"), "html"nulltrue);
  983.         echo "',
  984. \t\t\t\t\t\t\tsecond: '";
  985.         // line 561
  986.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Second"), "html"nulltrue);
  987.         echo "',
  988. \t\t\t\t\t\t\tmillisecond: '";
  989.         // line 562
  990.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Millisecond"), "html"nulltrue);
  991.         echo "'
  992. \t\t\t\t\t\t},
  993. \t\t\t\t\t});
  994. \t\t\t\t\tfunction updateValue(e) {
  995. \t\t\t\t\t\tbookDate = e.target.value;
  996. \t\t\t\t\t\t/* console.log('done'); */
  997. \t\t\t\t\t};
  998. \t\t\t\t\tfunction updateHourDuration () {
  999. \t\t\t\t\t\tvar bookHourVal = \$('.bookHourMobile').val();
  1000. \t\t\t\t\t\tvar bookDurationVal = \$('.bookDurationMobile').attr('data-value');
  1001. \t\t\t\t\t\tvar hourType = \"\";
  1002. \t\t\t\t\t\tif(bookDurationVal > 1) {
  1003. \t\t\t\t\t\t\thourType = \"";
  1004.         // line 576
  1005.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("hours"), "html"nulltrue);
  1006.         echo "\";
  1007. \t\t\t\t\t\t} else {
  1008. \t\t\t\t\t\t\thourType = \"";
  1009.         // line 578
  1010.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("hour"), "html"nulltrue);
  1011.         echo "\";
  1012. \t\t\t\t\t\t} 
  1013. \t\t\t\t\t\tvar text = \"";
  1014.         // line 580
  1015.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("duration.before.hour"), "html"nulltrue);
  1016.         echo "\" + \" \" + bookHourVal + \" \" + \"";
  1017.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("duration.middle.hour"), "html"nulltrue);
  1018.         echo "\" + \" \" + bookDurationVal + \" \" + hourType ;
  1019. \t\t\t\t\t\tbookHourDuration.val(text);
  1020. \t\t\t\t\t};
  1021. \t\t\t\t\tupdateHourDuration ();
  1022. \t\t\t\t\tfunction setText() {
  1023. \t\t\t\t\t\t/* \$('#durationContainer .picker-item[data-value=\"0\"]').css({'display': 'none'}); */
  1024. \t\t\t\t\t\t\$('#durationContainer .picker-item').each(function() {
  1025. \t\t\t\t\t\t\tvar txt = \$(this).attr('data-value');
  1026. \t\t\t\t\t\t\tif(txt == \"1\" || txt == \"0\") {
  1027. \t\t\t\t\t\t\t\t\$(this).text(txt + \" \" + \"";
  1028.         // line 590
  1029.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("hour"), "html"nulltrue);
  1030.         echo "\");
  1031. \t\t\t\t\t\t\t} else {
  1032. \t\t\t\t\t\t\t\t\$(this).text(txt + \" \" + \"";
  1033.         // line 592
  1034.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("hours"), "html"nulltrue);
  1035.         echo "\");
  1036. \t\t\t\t\t\t\t}
  1037. \t\t\t\t\t\t});
  1038. \t\t\t\t\t\t\$('#hourContainer .picker-item').each(function() {
  1039. \t\t\t\t\t\t\tvar txt = \$(this).attr('data-value');
  1040. \t\t\t\t\t\t\t\$(this).text(txt + \"";
  1041.         // line 598
  1042.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("h00"), "html"nulltrue);
  1043.         echo "\");
  1044. \t\t\t\t\t\t})
  1045. \t\t\t\t\t};
  1046. \t\t\t\t\tsetText();
  1047. \t\t\t\t\tfunction updateHoursAfterMidnight(parent) {
  1048. \t\t\t\t\t\t\$(parent).find('.picker-list [data-value]').each( function() {
  1049. \t\t\t\t\t\t\tif(parseInt(\$(this).attr('data-value')) >= 24) {
  1050. \t\t\t\t\t\t\t\t\$(this).text(parseInt(\$(this).attr('data-value')) - 24 + 'h00');
  1051. \t\t\t\t\t\t\t}
  1052. \t\t\t\t\t\t});
  1053. \t\t\t\t\t};
  1054. \t\t\t\t\tpickerBookHour.pick = function () {
  1055. \t\t\t\t\t\tvar result = new Date(pickerBookHour.date);
  1056. \t\t\t\t\t\tvar now = new Date();
  1057. \t\t\t\t\t\tdateMinusOnemin = new Date(\$(\"#bookDate\").datepicker( \"getDate\", {dateFormat: 'yy-mm-dd'} ));
  1058. \t\t\t\t\t\tdateMinusOnemin.setHours(result.getHours());
  1059. \t\t\t\t\t\tdateMinusOnemin.setMinutes(now.getMinutes() - 1);
  1060. \t\t\t\t\t\tdateMinusOnemin.setSeconds(now.getSeconds());
  1061. \t\t\t\t\t\t/* console.log(now); */
  1062. \t\t\t\t\t\t/* console.log(dateMinusOnemin); */
  1063. \t\t\t\t\t\t/*
  1064. \t\t\t\t\t\tif(\$('.picker-open .picker-title .uk-alert').length) {
  1065. \t\t\t\t\t\t\tdocument.querySelector('.picker-open .picker-title .uk-alert').remove();
  1066. \t\t\t\t\t\t}
  1067. \t\t\t\t\t\tif (dateMinusOnemin <= now) {
  1068. \t\t\t\t\t\t\tvar pickerTitle = document.querySelector('.picker-open .picker-title');
  1069. \t\t\t\t\t\t\tvar message = '<div class=\"uk-alert-danger\" uk-alert><a class=\"uk-alert-close\" uk-close></a>        ";
  1070.         // line 627
  1071.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("La date ou l'heure sélectionnée est antérieur à la date actuelle."), "html"nulltrue);
  1072.         echo "</div>';
  1073. \t\t\t\t\t\t\tpickerTitle.insertAdjacentHTML('beforeend', message);
  1074. \t\t\t\t\t\t\tsetTimeout(function () {
  1075. \t\t\t\t\t\t\t\tvar alert = document.querySelector('.picker-open .picker-title .uk-alert');
  1076. \t\t\t\t\t\t\t\t//alert.remove();
  1077. \t\t\t\t\t\t\t}, 5000)
  1078. \t\t\t\t\t\t\treturn false;
  1079. \t\t\t\t\t\t}
  1080. \t\t\t\t\t\t*/
  1081. \t\t\t\t\t\tvar hourPicked = result.getHours();
  1082. \t\t\t\t\t\tif(hourPicked >= 24) {
  1083. \t\t\t\t\t\t\thourPicked = hourPicked - 24;
  1084. \t\t\t\t\t\t}
  1085. \t\t\t\t\t\tbookHour.setAttribute('data-value', hourPicked);
  1086. \t\t\t\t\t\tbookHour.value = hourPicked + 'h00';
  1087. \t\t\t\t\t\tbookHour.focus();
  1088. \t\t\t\t\t\t
  1089. \t\t\t\t\t\tpickerBookHour.hide();
  1090. \t\t\t\t\t\tupdateHourDuration();
  1091. \t\t\t\t\t\tsetText();
  1092. \t\t\t\t\t\t\$('#hourContainer .picker-list [data-value]').removeClass('separator');
  1093. \t\t\t\t\t\t\$('#hourContainer .picker-list [data-value=\"'+ pickerBookHour.data.hour.min +'\"]').addClass('separator');
  1094. \t\t\t\t\t\tupdateHoursAfterMidnight('#hourContainer');
  1095. \t\t\t\t\t};
  1096. \t\t\t\t\t
  1097. \t\t\t\t\tupdateHoursAfterMidnight('#hourContainer');
  1098. \t\t\t\t\t
  1099. \t\t\t\t\tpickerBookDuration.pick = function () {
  1100. \t\t\t\t\t\tvar durationPicked = new Date(pickerBookDuration.date).getHours();
  1101. \t\t\t\t\t\tbookDuration.setAttribute('data-value', durationPicked);
  1102. \t\t\t\t\t\tbookDuration.value = durationPicked + 'h00';
  1103. \t\t\t\t\t\tbookDuration.focus();
  1104. \t\t\t\t\t\tpickerBookDuration.hide();
  1105. \t\t\t\t\t\tupdateHourDuration();
  1106. \t\t\t\t\t\tsetText();
  1107. \t\t\t\t\t\t\$('#durationContainer .picker-list [data-value]').removeClass('separator');
  1108. \t\t\t\t\t\t\$('#durationContainer .picker-list [data-value=\"'+ pickerBookDuration.data.hour.min +'\"]').addClass('separator');
  1109. \t\t\t\t\t};
  1110. \t\t\t\t\t\$('#hourContainer .picker-list [data-value=\"'+ pickerBookHour.data.hour.min +'\"]').addClass('separator');
  1111. \t\t\t\t\t\$('#durationContainer .picker-list [data-value=\"'+ pickerBookDuration.data.hour.min +'\"]').addClass('separator');
  1112. \t\t\t\t\t
  1113. \t\t\t\t};
  1114. \t\t\t\t/* Activate a trigger on the input field on button click */
  1115. \t\t\t\tif(\$('#modal-hours').length){
  1116. \t\t\t\t\t\$('#modal-hours .uk-button').on('click', function(e){
  1117. \t\t\t\t\t\tvar inputHour = \$('#bookHourMobile');
  1118. \t\t\t\t\t\t/* \$('#bookDate').focus(); */
  1119. \t\t\t\t\t\t/* \$('#bookDate').datepicker('hide'); */
  1120. \t\t\t\t\t\tfocusSubmit();
  1121. \t\t\t\t\t});
  1122. \t\t\t\t};
  1123. \t\t\t\t
  1124. \t\t\t}));
  1125. \t\t});
  1126. \t</script>
  1127. ";
  1128.         
  1129.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  1130.         
  1131.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  1132.     }
  1133.     public function getTemplateName()
  1134.     {
  1135.         return "studio/list.html.twig";
  1136.     }
  1137.     public function isTraitable()
  1138.     {
  1139.         return false;
  1140.     }
  1141.     public function getDebugInfo()
  1142.     {
  1143.         return array (  1133 => 627,  1101 => 598,  1092 => 592,  1087 => 590,  1072 => 580,  1067 => 578,  1062 => 576,  1045 => 562,  1041 => 561,  1037 => 560,  1033 => 559,  1029 => 558,  1025 => 557,  1021 => 556,  1017 => 555,  1013 => 554,  1009 => 553,  1004 => 551,  980 => 530,  976 => 529,  972 => 528,  968 => 527,  964 => 526,  960 => 525,  956 => 524,  952 => 523,  948 => 522,  944 => 521,  939 => 519,  935 => 517,  929 => 515,  926 => 514,  920 => 512,  918 => 511,  864 => 460,  849 => 448,  794 => 395,  784 => 394,  773 => 391,  767 => 389,  764 => 388,  762 => 387,  759 => 386,  756 => 385,  753 => 384,  750 => 383,  747 => 382,  744 => 381,  741 => 380,  738 => 379,  735 => 378,  732 => 377,  729 => 375,  727 => 374,  718 => 368,  707 => 360,  699 => 354,  693 => 353,  687 => 352,  681 => 349,  674 => 348,  671 => 347,  666 => 346,  662 => 345,  642 => 332,  635 => 328,  620 => 316,  613 => 311,  600 => 286,  591 => 279,  588 => 278,  570 => 262,  561 => 245,  558 => 244,  532 => 216,  522 => 212,  519 => 211,  511 => 209,  509 => 208,  503 => 206,  492 => 204,  483 => 202,  479 => 201,  475 => 199,  470 => 197,  466 => 196,  460 => 194,  457 => 193,  451 => 191,  448 => 190,  442 => 188,  439 => 187,  433 => 185,  430 => 184,  424 => 182,  422 => 181,  416 => 179,  413 => 178,  410 => 177,  407 => 176,  404 => 175,  402 => 174,  399 => 173,  393 => 171,  391 => 170,  387 => 169,  376 => 161,  372 => 159,  367 => 142,  361 => 139,  356 => 135,  349 => 133,  345 => 127,  340 => 126,  335 => 125,  333 => 124,  329 => 123,  323 => 120,  314 => 115,  310 => 112,  307 => 111,  294 => 109,  289 => 108,  287 => 107,  283 => 105,  277 => 104,  274 => 103,  271 => 102,  268 => 101,  262 => 99,  259 => 98,  249 => 96,  246 => 95,  243 => 94,  233 => 92,  230 => 91,  227 => 90,  222 => 89,  220 => 88,  214 => 85,  211 => 84,  209 => 83,  204 => 81,  199 => 79,  185 => 68,  181 => 66,  176 => 62,  166 => 58,  156 => 57,  152 => 56,  149 => 55,  145 => 54,  139 => 52,  133 => 50,  130 => 49,  124 => 47,  122 => 46,  118 => 43,  110 => 37,  102 => 34,  99 => 33,  97 => 32,  90 => 30,  87 => 29,  84 => 28,  81 => 27,  74 => 7,  69 => 4,  59 => 3,  36 => 1,);
  1144.     }
  1145.     public function getSourceContext()
  1146.     {
  1147.         return new Source("{% extends \"layout.html.twig\" %}
  1148. {% block content %}
  1149. \t<!-- #main -->
  1150. \t<main id=\"main\" role=\"main\">
  1151. \t\t{{ pimcore_areablock('top-content') }}
  1152. \t\t<section id=\"sutdios\">
  1153. \t\t\t<div class=\"apk-studios exk_booking_studio_list\">
  1154. \t\t\t\t<div class=\"uk-container apk-container-1400\">
  1155. \t\t\t\t\t{#% for order in orders %}
  1156. \t\t\t\t\t\t\t{% if order.getPayment() %}
  1157. \t\t\t\t\t\t\t\t<div uk-alert class=\"uk-alert-warning\">
  1158. \t\t\t\t\t\t\t\t\t<p>{{'Vous avez une commande en cours de '|trans}}
  1159. \t\t\t\t\t\t\t\t\t\t{{order.getPayment().getTotalPrice()}}€.
  1160. \t\t\t\t\t\t\t\t\t\t{{'Cliquez sur le bouton pour continuer la commande'|trans}}</p>
  1161. \t\t\t\t\t\t\t\t\t<a class=\"uk-button\" href=\"{{path('checkout', {order: order.id})}}\">{{'Continuer' | trans}}</a>
  1162. \t\t\t\t\t\t\t\t</div>
  1163. \t\t\t\t\t\t\t{% else %}
  1164. \t\t\t\t\t\t\t\t<div uk-alert class=\"uk-alert-warning\">
  1165. \t\t\t\t\t\t\t\t\t<p>{{'Vous avez une commande en cours'|trans}}.
  1166. \t\t\t\t\t\t\t\t\t\t{{'Cliquez sur le bouton pour continuer la commande'|trans}}</p>
  1167. \t\t\t\t\t\t\t\t\t<a class=\"uk-button\" href=\"{{path('checkout', {order: order.id})}}\">{{'Continuer' | trans}}</a>
  1168. \t\t\t\t\t\t\t\t</div>
  1169. \t\t\t\t\t\t\t{% endif %}
  1170. \t\t\t\t\t\t{% endfor %#}
  1171. \t\t\t\t\t{% set orderLink = '<a href=\"' ~ path(\"account_orders\") ~ '\">' ~ \"cliquez ici\"|trans ~ '</a>' %}
  1172. \t\t\t\t\t{% if orders|length == 1 %}
  1173. \t\t\t\t\t\t<div class=\"apk-alert-orange apk-f-24\" uk-alert>\t
  1174. \t\t\t\t\t\t\t<p>{{ \"Vous avez une réservation en cours. Pour consulter votre réservation\"|trans }} {{ orderLink|raw }}.</p>
  1175. \t\t\t\t\t\t</div>
  1176. \t\t\t\t\t{% elseif orders|length > 1 %}
  1177. \t\t\t\t\t\t<div class=\"apk-alert-orange apk-f-24\" uk-alert>
  1178. \t\t\t\t\t\t\t<p>{{ \"Vous avez des réservations en cours. Pour consulter vos réservations\"|trans }} {{ orderLink|raw }}.</p>
  1179. \t\t\t\t\t\t</div>
  1180. \t\t\t\t\t{% endif %}
  1181. \t\t\t\t\t<div class=\"apk-studios-filters\">
  1182. \t\t\t\t\t\t<div class=\"uk-grid-medium uk-grid\" uk-grid uk-height-match=\"target: .apk-label-input-style , .apk-studios-filters-type\">
  1183. \t\t\t\t\t\t\t
  1184. \t\t\t\t\t\t\t<div class=\"uk-width-2-3@m apk-studios-filters-inputs\">
  1185. \t\t\t\t\t\t\t\t<span class=\"apk-studios-filters--title uk-visible@s\">{{ \"Session\"|trans }}</span>
  1186. \t\t\t\t\t\t\t\t<div class=\"uk-child-width-1-4@s uk-grid-collapse uk-grid apk-studios-filters-inputs-upper\" uk-grid>
  1187. \t\t\t\t\t\t\t\t\t{#-- Ajout de la localisation --#}
  1188. \t\t\t\t\t\t\t\t\t{% if document.property('defaultSearchPlace') %}
  1189. \t\t\t\t\t\t\t\t\t\t<span id=\"defaultSearchPlaceId\" hidden apk-data-id=\"{{ document.property('defaultSearchPlace').id }}\"></span>
  1190. \t\t\t\t\t\t\t\t\t{% endif %}
  1191.                                     {% if document.property('defaultSearchPlace') %}
  1192.                                         <span id=\"defaultHoursSelected\" hidden apk-data-id=\"{{ pimcore_website_config('minimum_hours_selected', 1) }}\"></span>
  1193.                                     {% endif %}
  1194. \t\t\t\t\t\t\t\t\t<span id=\"pageLanguage\" hidden apk-data-id=\"{{ app.request.locale }}\"></span>
  1195. \t\t\t\t\t\t\t\t\t{% for l in locations %}
  1196. \t\t\t\t\t\t\t\t\t<div class=\"uk-width-auto@s uk-width-1-3@s uk-width-1-2 apk-width-75-2\">
  1197. \t\t\t\t\t\t\t\t\t\t<label for=\"{{ l.id }}\" class=\"apk-label-input-style is-radio-type\">
  1198. \t\t\t\t\t\t\t\t\t\t\t<input value=\"{{ l.id }}\" class=\"uk-checkbox\" type=\"radio\" id=\"{{ l.id }}\" data-studiodefault=\"{% if l.defaultCategory %}{{ l.defaultCategory.id }}{% endif %}\" required v-model=\"sLocation\" @change=\"searchStudios()\">
  1199. \t\t\t\t\t\t\t\t\t\t\t<span class=\"apk-label\">{{ l.name }}</span>
  1200. \t\t\t\t\t\t\t\t\t\t</label>
  1201. \t\t\t\t\t\t\t\t\t</div>
  1202. \t\t\t\t\t\t\t\t\t{% endfor %}
  1203. \t\t\t\t\t\t\t\t</div>
  1204. \t\t\t\t\t\t\t\t<div class=\"uk-child-width-1-4@s uk-grid-collapse uk-grid\" uk-grid>
  1205. \t\t\t\t\t\t\t\t\t{# ----- #}
  1206. \t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-4@m uk-width-1-3@s uk-width-2-5\">
  1207. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-label-input-style\" style=\"position:relative;\">
  1208. \t\t\t\t\t\t\t\t\t\t\t<label for=\"bookDate\" class=\"uk-visible@s\">{{ \"Date\"|trans }}</label>
  1209. \t\t\t\t\t\t\t\t\t\t\t<!-- Date Desktop text -->
  1210. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"!isMobile\" class=\"bookDateDesktop\" :class=\"{ 'exk-form-input-danger' : sDateNotValid }\" type=\"text\" name=\"bookDate\" id=\"bookDate\" :data-value=\"sDate\" v-model=\"sDateDesktop\" required style=\"position:absolute; bottom:0; z-index: -1;\">
  1211. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"!isMobile\" class=\"uk-input apk-input-date hide-browser-calendar bookDateDesktopText\" type=\"text\" :data-value=\"sDate\" v-model=\"sDateDesktopText\" required readonly=\"readonly\">
  1212. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"isMobile\" class=\"uk-input apk-input-date hide-browser-calendar bookDateMobile\" :class=\"{ 'exk-form-input-danger' : sDateNotValid }\" type=\"text\" name=\"bookDate\" id=\"bookDate\" required :value=\"sDateMobile\" :data-value=\"sDate\" readonly=\"readonly\">
  1213. \t\t\t\t\t\t\t\t\t\t</div>
  1214. \t\t\t\t\t\t\t\t\t</div>
  1215. \t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-4@m uk-width-1-3@s uk-visible@s\">
  1216. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-label-input-style\">
  1217. \t\t\t\t\t\t\t\t\t\t\t<label for=\"bookDate\" class=\"uk-visible@s\">{{ \"Hour\"|trans }}</label>
  1218. \t\t\t\t\t\t\t\t\t\t\t<select v-if=\"!isMobile\" class=\"hide-browser-calendar uk-select apk-input-hour\" :class=\"{ 'exk-form-input-danger' : sHourNotValid }\" name=\"bookHour\" id=\"bookHour\" v-model=\"sHour\" @change=\"searchStudios()\" required>
  1219. \t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">{{ \"Select an hour\"|trans }}</option>
  1220. \t\t\t\t\t\t\t\t\t\t\t\t
  1221. \t\t\t\t\t\t\t\t\t\t\t\t{% set ii = [0 ,1 , 2, 3, 4, 5, 6, 7, 8 ,9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23] %}
  1222. \t\t\t\t\t\t\t\t\t\t\t\t{% if pimcore_website_config('OpeningStudiosOur') and pimcore_website_config('ClosingStudiosOur') %}\t
  1223. \t\t\t\t\t\t\t\t\t\t\t\t\t\t
  1224. \t\t\t\t\t\t\t\t\t\t\t\t\t
  1225. \t\t\t\t\t\t\t\t\t\t\t\t\t{% set hourSeparator = null %}
  1226. \t\t\t\t\t\t\t\t\t\t\t\t\t{% for i in ii %}
  1227. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if pimcore_website_config('OpeningStudiosOur') < pimcore_website_config('ClosingStudiosOur') %}
  1228. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if i >= pimcore_website_config('OpeningStudiosOur') and  i < pimcore_website_config('ClosingStudiosOur') %}
  1229. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ i }}\" v-if=\"{{ i }} >= minHourAllowed\">{{i}}h00</option>
  1230. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1231. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1232. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if i < pimcore_website_config('ClosingStudiosOur') or i >= pimcore_website_config('OpeningStudiosOur') %}
  1233. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ i }}\" v-if=\"{{ i }} >= minHourAllowed\">{{i}}h00</option>
  1234. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1235. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if not hourSeparator %}
  1236. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\" v-if=\"{{ i }} >= minHourAllowed\" disabled>---------------</option>
  1237. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1238. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% set hourSeparator = true %}
  1239. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1240. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1241. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1242. \t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1243. \t\t\t\t\t\t\t\t\t\t\t\t\t{# si pas d'heures de début et de fin #}
  1244. \t\t\t\t\t\t\t\t\t\t\t\t\t{% for i in ii %}
  1245. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ i }}\" v-if=\"{{ i }} >= minHourAllowed\">{{i}}h00</option>
  1246. \t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1247. \t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1248. \t\t\t\t\t\t\t\t\t\t\t</select>
  1249. \t\t\t\t\t\t\t\t\t\t\t{# SELECTION DE L'heure MOBILE #}
  1250. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"isMobile\" type=\"text\" class=\"uk-select apk-input-hour bookHourMobile uk-visible@s\" :class=\"{ 'exk-form-input-danger' : sHourNotValid }\" name=\"bookHour\" id=\"bookHour\" @focus=\"searchStudios()\" placeholder=\"{{ \"Select an hour\"|trans }}\" required :data-value=\"sHour\" v-model=\"sHourMobile\" uk-toggle=\"target: #modal-hours\">
  1251. \t\t\t\t\t\t\t\t\t\t</div>
  1252. \t\t\t\t\t\t\t\t\t</div>
  1253. \t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-4@m uk-width-1-3@s uk-width-3-5\">
  1254. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-label-input-style\">
  1255. \t\t\t\t\t\t\t\t\t\t\t<label for=\"bookDuration\" class=\"uk-visible@s\">{{ \"Duration\"|trans }}</label>
  1256. \t\t\t\t\t\t\t\t\t\t\t<select v-if=\"!isMobile\" class=\"uk-select apk-duration\" :class=\"{ 'exk-form-input-danger' : sDurationNotValid }\" name=\"bookDuration\" id=\"bookDuration\" v-model=\"sDuration\" @change=\"searchStudios()\" required>
  1257. \t\t\t\t\t\t\t\t\t\t\t\t<!-- DEBUT OPTIONS A DYNAMISER -->
  1258. \t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">{{ \"Select a duration\"|trans }}</option>
  1259. \t\t\t\t\t\t\t\t\t\t\t\t{% set hh = [1 , 2, 3, 4, 5, 6, 7, 8 ,9, 10, 11, 12] %}
  1260. \t\t\t\t\t\t\t\t\t\t\t\t{% for h in hh %}
  1261. \t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{ h }}\">
  1262. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{{h}}h00
  1263. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{#% if h > 1 %}
  1264. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{{h}} {{\"hours\"|trans}}\t
  1265. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% else %}
  1266. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{{h}} {{\"hour\"|trans}}\t
  1267. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %#}
  1268. \t\t\t\t\t\t\t\t\t\t\t\t\t</option>
  1269. \t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1270. \t\t\t\t\t\t\t\t\t\t\t\t<!-- FIN OPTIONS A DYNAMISER -->
  1271. \t\t\t\t\t\t\t\t\t\t\t</select>
  1272. \t
  1273. \t\t\t\t\t\t\t\t\t\t\t{# SELECTION DE LA DUREE MOBILE #}
  1274. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"isMobile\" type=\"text\" class=\"uk-select apk-duration bookDurationMobile uk-visible@s\" :class=\"{ 'exk-form-input-danger' : sDurationNotValid }\" name=\"bookDuration\" id=\"bookDuration\" placeholder=\"{{ \"Select a duration\"|trans }}\" required :data-value=\"sDuration\" readonly=\"readonly\" v-model=\"sDurationMobile\" uk-toggle=\"target: #modal-hours\">
  1275. \t
  1276. \t\t\t\t\t\t\t\t\t\t\t{# input qui affiche le texte des selections d'heure' et durées #}
  1277. \t\t\t\t\t\t\t\t\t\t\t<input v-if=\"isMobile\" type=\"text\" class=\"uk-input bookHourDuration uk-hidden@s apk-duration\" readonly=\"readonly\" uk-toggle=\"target: #modal-hours\">  
  1278. \t\t\t\t\t\t\t\t\t\t</div>
  1279. \t\t\t\t\t\t\t\t\t</div>
  1280. \t\t\t\t\t\t\t\t\t{#
  1281. \t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-1@s uk-width-auto\" apk-absolute-mobile>
  1282. \t\t\t\t\t\t\t\t\t\t<div class=\"uk-text-right@s uk-text-center\">
  1283. \t\t\t\t\t\t\t\t\t\t\t<button class=\"uk-button uk-button-white\" id=\"submit\" @click=\"searchStudios()\">
  1284. \t\t\t\t\t\t\t\t\t\t\t\t{{ \"Recherche\"|trans }}
  1285. \t\t\t\t\t\t\t\t\t\t\t</button>
  1286. \t\t\t\t\t\t\t\t\t\t\t<div class=\"uk-margin-top uk-visible@s\">
  1287. \t\t\t\t\t\t\t\t\t\t\t\t<a class=\"uk-button uk-button-white\" href=\"{{ path(\"studioList\") }}?reset=1\">
  1288. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ \"Réinitialiser\"|trans }}
  1289. \t\t\t\t\t\t\t\t\t\t\t\t</a>
  1290. \t\t\t\t\t\t\t\t\t\t\t</div>
  1291. \t\t\t\t\t\t\t\t\t\t</div>
  1292. \t\t\t\t\t\t\t\t\t</div>
  1293. \t\t\t\t\t\t\t\t\t#}
  1294. \t\t\t\t\t\t\t\t\t<div class=\"uk-position-relative\">
  1295. \t\t\t\t\t\t\t\t\t\t<button id=\"submit\" @focus=\"searchStudios()\" style=\"width:1px; height:1px; position: absolute; top: 0; left: 0; z-index: -1;\">
  1296. \t\t\t\t\t\t\t\t\t\t\t{{ \"Recherche\"|trans }}
  1297. \t\t\t\t\t\t\t\t\t\t</button>
  1298. \t\t\t\t\t\t\t\t\t</div>
  1299. \t\t\t\t\t\t\t\t</div>
  1300. \t\t\t\t\t\t\t\t
  1301. \t\t\t\t\t\t\t</div>
  1302. \t\t\t\t\t\t\t<div class=\"uk-width-1-3@m uk-flex-first@m apk-margin-small-mobile\">
  1303. \t\t\t\t\t\t\t\t<span class=\"apk-studios-filters--title uk-visible@s\">{{ \"Studio type\"|trans }}</span>
  1304. \t\t\t\t\t\t\t\t{% if app.request.get('studioTypeId') is defined %}
  1305. \t\t\t\t\t\t\t\t\t<span id=\"predefinedStudio\" predefinedStudio=\"{{app.request.get('studioTypeId')}}\" hidden></span>
  1306. \t\t\t\t\t\t\t\t{% endif %}
  1307. \t\t\t\t\t\t\t\t{% if pimcore_website_config('maxHourSearch') is not null %}
  1308. \t\t\t\t\t\t\t\t\t{% set maxHourSearch = pimcore_website_config('maxHourSearch') %}
  1309. \t\t\t\t\t\t\t\t{% else  %}
  1310. \t\t\t\t\t\t\t\t\t{% set maxHourSearch = '20:15' %}
  1311. \t\t\t\t\t\t\t\t{% endif %}
  1312. \t\t\t\t\t\t\t\t\t<input type=\"text\" id=\"maxHourSearch\" value=\"{{maxHourSearch}}\" hidden/>
  1313. \t\t\t\t\t\t\t\t{% if pimcore_website_config('OpeningStudiosOur') is not null %}
  1314. \t\t\t\t\t\t\t\t\t<input id=\"openingOurs\" value=\"{{pimcore_website_config('OpeningStudiosOur')}}\" hidden/>
  1315. \t\t\t\t\t\t\t\t{% endif %}
  1316. \t\t\t\t\t\t\t\t{% if pimcore_website_config('ClosingStudiosOur') is not null %}
  1317. \t\t\t\t\t\t\t\t\t<input id=\"closingOurs\" value=\"{{pimcore_website_config('ClosingStudiosOur')}}\" hidden/>
  1318. \t\t\t\t\t\t\t\t{% endif %}
  1319. \t\t\t\t\t\t\t\t{% if pimcore_website_config('durationBeforeNextHour') is not null %}
  1320. \t\t\t\t\t\t\t\t\t<input id=\"durationBeforeNextHour\" value=\"{{pimcore_website_config('durationBeforeNextHour')}}\" hidden/>
  1321. \t\t\t\t\t\t\t\t{% endif %}
  1322. \t\t\t\t\t\t\t\t{% if pimcore_website_config('defaultSearchStudio') is not null %}
  1323. \t\t\t\t\t\t\t\t\t<input id=\"defaultSearchStudio\" value=\"{{pimcore_website_config('defaultSearchStudio').id}}\" hidden/>
  1324. \t\t\t\t\t\t\t\t{% endif %}
  1325. \t\t\t\t\t\t\t\t{% if pimcore_website_config('defaultSearchStudioSubCat') is not null %}
  1326. \t\t\t\t\t\t\t\t\t<input id=\"defaultSearchStudioSubCat\" value=\"{{pimcore_website_config('defaultSearchStudioSubCat').id}}\" hidden/>
  1327. \t\t\t\t\t\t\t\t{% endif %}
  1328. \t\t\t\t\t\t\t\t<div hidden {#apk-mobile-show#}>
  1329. \t\t\t\t\t\t\t\t\t<span>{{ \"Chose your type of studio\"|trans }}</span>
  1330. \t\t\t\t\t\t\t\t</div>
  1331. \t\t\t\t\t\t\t\t<div class=\"apk-studios-filters-content\" {#apk-mobile-dropdown#}>
  1332. \t\t\t\t\t\t\t\t\t<div class=\"uk-grid-small uk-grid\" uk-grid uk-height-match=\"target: .apk-studios-filters-type\">
  1333. \t\t\t\t\t\t\t\t\t\t{% for studCat in studioCategories %}
  1334. \t\t\t\t\t\t\t\t\t\t\t<div class=\"uk-width-1-2\" {% if studCat.place %}v-if=\"sLocation == {{ studCat.place.id }}\"{% endif %}>
  1335. \t\t\t\t\t\t\t\t\t\t\t\t{# --Checkbox lié à la catégorie (à laisser au dessus et au même niveau que le label pour le style)-- #}
  1336. \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" class=\"uk-dark uk-checkbox\" name=\"studioCat\" id=\"studioCat_{{ studCat.id }}\" data-place=\"{% if studCat.place %}{{ studCat.place.id }}{% endif %}\" value=\"{{ studCat.id }}\" @change=\"searchStudios()\" v-model=\"studioCats\">
  1337. \t\t\t\t\t\t\t\t\t\t\t\t{# ---- #}
  1338. \t\t\t\t\t\t\t\t\t\t\t\t<label class=\"apk-studios-filters-type uk-text-center\" for=\"studioCat_{{ studCat.id }}\">
  1339. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-studios-filters-media\">
  1340. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% if studCat.image %}
  1341. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img uk-svg width=\"26\" height=\"26\" src=\"{{ studCat.image }}\" alt=\"{{ studCat.title }}\">
  1342. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1343. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1344. \t\t\t\t\t\t\t\t\t\t\t\t\t<span>{{ studCat.title }}</span>
  1345. \t\t\t\t\t\t\t\t\t\t\t\t</label>
  1346. \t\t\t\t\t\t\t\t\t\t\t</div>
  1347. \t\t\t\t\t\t\t\t\t\t{% endfor %}
  1348. \t\t\t\t\t\t\t\t\t</div>
  1349. \t\t\t\t\t\t\t\t</div>
  1350. \t\t\t\t\t\t\t</div>
  1351. \t\t\t\t\t\t</div>
  1352. \t\t\t\t\t</div>
  1353. \t\t\t\t\t<div style=\"min-height:821px;\">
  1354. \t\t\t\t\t\t<div id=\"subcateg\" vue-loading  v-if=\"showSubCats\">
  1355. \t\t\t\t\t\t\t<div class=\"apk-studios-filters-subtype uk-flex uk-flex-left@s uk-flex-center uk-text-center uk-width-expand@s uk-child-width-auto uk-grid-collapse uk-width-1-1 uk-grid\"
  1356. \t\t\t\t\t\t\t\tuk-grid :class=\"{'apk-display-grid' : (studioSCats.length > 2 && isMobile)}\">
  1357. \t\t\t\t\t\t\t\t<div v-for=\"souscateg in studioSCats\"
  1358. \t\t\t\t\t\t\t\t:class=\"{'apk-subcategs-inline' : (studioSCats.length > 2 && isMobile)}\">
  1359. \t\t\t\t\t\t\t\t\t<input class=\"scateg-checkbox-selector uk-checkbox\" type=\"checkbox\" :name=\"'studioSCat_'+[[souscateg.id]]\" :id=\"'studioSCat_'+[[souscateg.id]]\" :true-value=\"souscateg.id\"
  1360.                                            :false-value=\"0\" @change=\"searchStudios()\" v-model=\"studioSCatsSelected\"/>
  1361. \t\t\t\t\t\t\t\t\t<label :for=\"'studioSCat_'+[[souscateg.id]]\">
  1362. \t\t\t\t\t\t\t\t\t\t<span>[[souscateg.title]]</span>
  1363. \t\t\t\t\t\t\t\t\t</label>
  1364. \t\t\t\t\t\t\t\t</div>
  1365. \t\t\t\t\t\t\t</div>
  1366. \t\t\t\t\t\t</div>
  1367. \t\t\t\t\t\t
  1368. \t\t\t\t\t\t<div id=\"availability\" class=\"apk-studios-filters-results\" :class=\"studioAvailable == 1 ? 'available' : 'unavailable'\" vue-loading>
  1369. \t\t\t\t\t\t\t{# <span v-if=\"studioAvailable == 1\">
  1370. \t\t\t\t\t\t\t\t[[ studioList.length ]] {{ \"studio(s) libres(s) à l'heure/date choisie\"|trans }}
  1371. \t\t\t\t\t\t\t</span>
  1372. \t\t\t\t\t\t\t #}
  1373. \t\t\t\t\t\t\t<span v-if=\"studioAvailable == 0\">
  1374. \t\t\t\t\t\t\t\t{{ \"Pas de studio libre à la date/heure sélectionnée ci-dessus\"|trans }}
  1375. \t\t\t\t\t\t\t</span>
  1376. \t\t\t\t\t\t</div>
  1377. \t\t\t\t\t\t
  1378. \t\t\t\t\t\t<div class=\"apk-studios-list\" vue-loading>
  1379. \t\t\t\t\t\t\t
  1380. \t\t\t\t\t\t\t{#<div v-if=\"studioAvailable == true\" class=\"apk-result\">
  1381. \t\t\t\t\t\t\t\t<small v-if=\"studioList.length\">[[ studioList.length ]]
  1382. \t\t\t\t\t\t\t\t\t{{ \"studios found\"|trans }}</small>
  1383. \t\t\t\t\t\t\t\t<small v-else>{{ \"No studios found\"|trans }}</small>
  1384. \t\t\t\t\t\t\t</div>
  1385. \t\t\t\t\t\t\t<div v-else class=\"apk-result\">
  1386. \t\t\t\t\t\t\t\t<small v-if=\"studioList.length\">
  1387. \t\t\t\t\t\t\t\t\t{{ \"No available studios found\"|trans }}</small>
  1388. \t\t\t\t\t\t\t\t<small v-else>{{ \"No studios found\"|trans }}</small>
  1389. \t\t\t\t\t\t\t</div>
  1390. \t\t\t\t\t\t\t#}
  1391. \t\t\t\t\t\t\t<div class=\"uk-grid\" uk-grid uk-height-match=\"target: .apk-studios-box-bottom\">
  1392. \t
  1393. \t\t\t\t\t\t\t\t<div class=\"uk-width-1-3@m uk-width-1-2@s\" v-for=\"studio in studioList\">
  1394. \t\t\t\t\t\t\t\t\t<!-- FORM avec action vers le checkout -->
  1395. \t\t\t\t\t\t\t\t\t<div class=\"apk-studios-box uk-dark\">
  1396. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-studios-box-top\">
  1397. \t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-title\">
  1398. \t\t\t\t\t\t\t\t\t\t\t\t<div>
  1399. \t\t\t\t\t\t\t\t\t\t\t\t\t<span v-if=\"studio.titleTranslated\" class=\"uk-h3\" :class=\"studio.cssFontSizeTitle\" style=\"white-space: pre-wrap;\">
  1400. \t\t\t\t\t\t\t\t\t\t\t\t\t\t[[ studio.titleTranslated ]]
  1401. \t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  1402. \t\t\t\t\t\t\t\t\t\t\t\t\t<span v-else class=\"uk-h3\" :class=\"studio.cssFontSizeTitle\">
  1403. \t\t\t\t\t\t\t\t\t\t\t\t\t\t[[ studio.title ]]
  1404. \t\t\t\t\t\t\t\t\t\t\t\t\t</span>
  1405. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  1406. \t\t\t\t\t\t\t\t\t\t\t</div>
  1407. \t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-media uk-cover-container\" {#apk-show-more#}>
  1408. \t\t\t\t\t\t\t\t\t\t\t\t<div {#}:href=\"studio.detailURL\"#} v-html=\"studio.image\"></div>
  1409. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-audience uk-text-center\">
  1410. \t\t\t\t\t\t\t\t\t\t\t\t\t<div>
  1411. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<img uk-svg width=\"20\" height=\"15\" src=\"/static/img/pictos/audience.svg\" alt=\"\">
  1412. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1413. \t\t\t\t\t\t\t\t\t\t\t\t\t<div>
  1414. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<span>[[ studio.maxPersons ]]
  1415. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t{{ \"max\"|trans }}</span>
  1416. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1417. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  1418. \t\t\t\t\t\t\t\t\t\t\t</div>
  1419. \t
  1420. \t\t\t\t\t\t\t\t\t\t\t<!---------------->
  1421. \t\t\t\t\t\t\t\t\t\t\t<div v-if=\"studio.shortInfos\" class=\"apk-short-description\" v-html=\"studio.shortInfos\">
  1422. \t
  1423. \t\t\t\t\t\t\t\t\t\t\t</div>
  1424. \t\t\t\t\t\t\t\t\t\t\t<hr class=\"uk-margin-small-top uk-margin-small-bottom\" v-if=\"studio.shortInfos\"/>
  1425. \t\t\t\t\t\t\t\t\t\t\t{#
  1426. \t\t\t\t\t\t\t\t\t\t\t<ul class=\"apk-promo-inline\">
  1427. \t\t\t\t\t\t\t\t\t\t\t\t
  1428. \t\t\t\t\t\t\t\t\t\t\t\t<li>
  1429. \t\t\t\t\t\t\t\t\t\t\t\t\t{{ \"Jacks specials\"|trans|raw }}
  1430. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  1431. \t\t\t\t\t\t\t\t\t\t\t\t
  1432. \t\t\t\t\t\t\t\t\t\t\t\t<li v-if=\"studio.promoLeft\">
  1433. \t\t\t\t\t\t\t\t\t\t\t\t\t<span :class=\"studio.promoLeftSize\">[[ studio.promoLeft ]]</span>
  1434. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  1435. \t\t\t\t\t\t\t\t\t\t\t\t<li v-if=\"studio.promoRight\">
  1436. \t\t\t\t\t\t\t\t\t\t\t\t\t<span :class=\"studio.promoRightSize\">[[ studio.promoRight ]]</span>
  1437. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  1438. \t\t\t\t\t\t\t\t\t\t\t</ul>
  1439. \t\t\t\t\t\t\t\t\t\t\t#}
  1440. \t
  1441. \t\t\t\t\t\t\t\t\t\t\t<!---------------->
  1442. \t
  1443. \t\t\t\t\t\t\t\t\t\t\t<ul v-if=\"studio.infos\" class=\"apk-infos uk-margin-small-top uk-margin-small-bottom\" uk-accordion>
  1444. \t\t\t\t\t\t\t\t\t\t\t\t<li>
  1445. \t\t\t\t\t\t\t\t\t\t\t\t\t<a class=\"uk-accordion-title apk-infos--title\" href=\"#\">{{ \"More info about this studio ?\"|trans }}</a>
  1446. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uk-accordion-content\">
  1447. \t
  1448. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"apk-infos--text uk-margin-small-bottom\" v-html=\"studio.infos\"></div>
  1449. \t
  1450. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<hr class=\"uk-margin-remove\"/>
  1451. \t
  1452. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<p class=\"uk-margin-small-top apk-infos--text\" v-html=\"studio.gear\"></p>
  1453. \t
  1454. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1455. \t\t\t\t\t\t\t\t\t\t\t\t</li>
  1456. \t\t\t\t\t\t\t\t\t\t\t</ul>
  1457. \t\t\t\t\t\t\t\t\t\t\t<span v-if=\"!studio.infos\" class=\"uk-display-block uk-margin-small-top apk-infos--title\">{{ \"No infos\"|trans }}</span>
  1458. \t\t\t\t\t\t\t\t\t\t</div>
  1459. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-studios-box-bottom\">
  1460. \t\t\t\t\t\t\t\t\t\t\t<hr/>
  1461. \t\t\t\t\t\t\t\t\t\t\t<span :id=\"'exk_vue_booking_'+studio.id\" class=\"exk_vue_booking\" :data-lockText=\"studio.lockText\" :data-placeLock=\"studio.placeLock\" :data-studio=\"studio.id\" :data-searchdate=\"sDate\" :data-searchhour=\"sHour\" :data-searchduration=\"sDuration\" :data-defaultprice=\"studio.defaultPrice\" :data-availability=\"studio.availability\" :data-displaycalendar=\"{{ displayCalendar }}\" :data-detailstudio=\"{{ detailstudio }}\" data-language=\"{{ app.request.locale }}\"></span>
  1462. \t\t\t\t\t\t\t\t\t\t</div>
  1463. \t\t\t\t\t\t\t\t\t</div>
  1464. \t\t\t\t\t\t\t\t</div>
  1465. \t\t\t\t\t\t\t</div>
  1466. \t\t\t\t\t\t</div>\t
  1467. \t\t\t\t\t</div>
  1468. \t\t\t\t</div>
  1469. \t\t\t\t<div id=\"modal-hours\" class=\"uk-flex-top uk-modal\" uk-modal=\"bg-close: false\">
  1470. \t\t\t\t\t<div class=\"uk-modal-dialog uk-modal-body uk-margin-auto-vertical\">
  1471. \t\t\t\t\t\t<div class=\"apk-modal-promotions uk-dark\">
  1472. \t\t\t\t\t\t\t{% for studCat in studioCategories %}
  1473. \t\t\t\t\t\t\t\t{% for studSubCat in studCat.categories %}
  1474. \t\t\t\t\t\t\t\t\t{% if studSubCat.pricingGrid.mobilePromo %}
  1475. \t\t\t\t\t\t\t\t\t\t<div class=\"apk-modal-promotions-inner\" v-if=\"studioSCatsSelectedPromo == {{studSubCat.id}}\" id=\"{{studSubCat.id}}\">
  1476. \t\t\t\t\t\t\t\t\t\t\t{{studSubCat.pricingGrid.mobilePromo}}
  1477. \t\t\t\t\t\t\t\t\t\t</div>
  1478. \t\t\t\t\t\t\t\t\t{% endif %}
  1479. \t\t\t\t\t\t\t\t{% endfor %}
  1480. \t\t\t\t\t\t\t{% endfor %}
  1481. \t\t\t\t\t\t</div>
  1482. \t\t\t\t\t\t<div class=\"uk-flex\">
  1483. \t\t\t\t\t\t\t<div id=\"hourContainer\"></div>
  1484. \t\t\t\t\t\t\t<div id=\"durationContainer\"></div>
  1485. \t\t\t\t\t\t</div>
  1486. \t\t\t\t\t\t<div class=\"uk-text-center uk-margin-top\">
  1487. \t\t\t\t\t\t\t<button class=\"uk-button uk-button-black uk-width-1-1 uk-modal-close\" type=\"button\">{{ \"Done\"|trans }}</button>
  1488. \t\t\t\t\t\t</div>
  1489. \t\t\t\t\t</div>
  1490. \t\t\t\t</div>
  1491. \t\t\t</div>
  1492. \t\t</section>
  1493. \t\t{{ pimcore_areablock('bottom-content') }}
  1494. \t</main>
  1495. \t<!-- end #main -->
  1496. \t{% include \"studio/booking-studio.html.twig\" %}
  1497. \t{# condition pour le dev et prod #}
  1498. \t{% if pimcore_website_config('minify-css-js') %}
  1499. \t\t{% do pimcore_head_script().appendFile('/static/js/minified/booking/picker.min.js') %}
  1500. \t\t{% do pimcore_head_script().appendFile('/static/js/minified/booking/core.min.js') %}
  1501. \t\t{% do pimcore_head_script().appendFile('/static/js/minified/booking/list.min.js') %}
  1502. \t{% else %}
  1503. \t\t{% do pimcore_head_script().appendFile(asset('/static/js/booking/picker.js')) %}
  1504. \t\t{% do pimcore_head_script().appendFile('/static/js/booking/core.js') %}
  1505. \t\t{% do pimcore_head_script().appendFile('/static/js/booking/list.js') %}
  1506. \t{% endif %}
  1507. \t{% do pimcore_head_script().appendFile('/static/js/jquery-ui/jquery-ui.1.13.2.min.js') %}
  1508. \t{% if app.request.locale == \"fr\" %}
  1509. \t\t{% do pimcore_head_script().appendFile('/static/js/jquery-ui/locale-fr.min.js') %}\t
  1510. \t{% endif %}
  1511. {% endblock %}
  1512. {% block inlinescripts %}
  1513. \t<script>
  1514. \t\t/* \tPicker de d'heures
  1515. \t\t\tDocumentation : https://github.com/fengyuanchen/pickerjs/blob/master/README.md */
  1516. \t\tjQuery(function (\$) {
  1517. \t\t\tif(\$(document).ready(function(){
  1518. \t\t\t\t
  1519. \t\t\t\tfunction padTo2Digits(num) {
  1520. \t\t\t\t\treturn num.toString().padStart(2, '0');
  1521. \t\t\t\t};
  1522. \t\t
  1523. \t\t\t\tfunction formatDate(date) {
  1524. \t\t\t\t\treturn [
  1525. \t\t\t\t\t\tpadTo2Digits(date.getDate()),
  1526. \t\t\t\t\t\tpadTo2Digits(date.getMonth() + 1),
  1527. \t\t\t\t\t\tdate.getFullYear(),
  1528. \t\t\t\t\t].join('/');
  1529. \t\t\t\t};
  1530. \t\t\t\tfunction FormatedTextDate (dateSubmited, language) {
  1531. \t\t\t\t\tlet languageLocale = \"fr-BE\";
  1532. \t\t\t\t\tif(language == \"fr\") {
  1533. \t\t\t\t\t\tlanguageLocale = \"fr-BE\";
  1534. \t\t\t\t\t} else if(language == \"nl\") {
  1535. \t\t\t\t\t\tlanguageLocale = \"nl-BE\";
  1536. \t\t\t\t\t} else if(language == \"en\") {
  1537. \t\t\t\t\t\tlanguageLocale = \"en-US\";
  1538. \t\t\t\t\t}
  1539. \t\t\t\t\tlet date = new Date(dateSubmited);
  1540. \t\t\t\t\tlet year = date.getFullYear();
  1541. \t\t\t\t\tlet dayNumber = date.getDate();
  1542. \t\t\t\t\tlet dayText = date.toLocaleDateString(languageLocale, { weekday: \"short\" });
  1543. \t\t\t\t\tlet month = date.toLocaleDateString(languageLocale, { month: \"short\" });
  1544. \t\t
  1545. \t\t\t\t\tlet string = `\${capitalizeFirstLetter(dayText)} \${dayNumber} \${capitalizeFirstLetter(month)}, \${year}`;
  1546. \t\t\t\t\treturn string;
  1547. \t\t\t\t};
  1548. \t\t\t\tfunction capitalizeFirstLetter(string) {
  1549. \t\t\t\t\tstring = string.split('.').join(\"\");
  1550. \t\t\t\t\treturn string.charAt(0).toUpperCase() + string.slice(1);
  1551. \t\t\t\t}
  1552. \t\t\t\t
  1553. \t\t\t\tfunction focusSubmit() {
  1554. \t\t\t\t\t\$('#submit').focus();
  1555. \t\t\t\t\tconsole.log(\$('#submit'));
  1556. \t\t\t\t}
  1557. \t\t
  1558. \t\t\t\t\$( \"#bookDate\" ).datepicker({
  1559. \t\t\t\t\tminDate: 0,
  1560. \t\t\t\t\tshowButtonPanel: true,
  1561. \t\t\t\t\tdateFormat: 'dd/mm/yy',
  1562. \t\t\t\t\tregional: \"{{ app.request.locale }}\",
  1563. \t\t\t\t});
  1564. \t\t\t\t\$( \"#bookDate\" ).on('change', function(){
  1565. \t\t\t\t\tvar date = \$(this).datepicker( \"getDate\", {dateFormat: 'yy-mm-dd'} );
  1566. \t\t\t\t\t/* handle timezone */
  1567. \t\t\t\t\tconst offset = date.getTimezoneOffset();
  1568. \t\t\t\t\tdate = new Date(date.getTime() - (offset*60*1000));
  1569. \t\t\t\t\tvar datePicked = date.toISOString().split('T')[0];
  1570. \t\t\t\t\t\$(this).attr('data-value', datePicked);
  1571. \t\t\t\t\tvar desktopDate = \$(\".bookDateDesktopText\");
  1572. \t\t\t\t\tdesktopDate.val(FormatedTextDate(datePicked, '{{app.request.locale}}'));
  1573. \t\t\t\t\tfocusSubmit();
  1574. \t\t\t\t\t
  1575. \t\t\t\t});
  1576. \t\t\t\t\$(\".bookDateDesktopText\").on('click', function(){
  1577. \t\t\t\t\t\$(\"#bookDate\").datepicker(\"show\");
  1578. \t\t\t\t});
  1579. \t\t\t\t\$('.apk-studios-filters button#submit').on('click', function(){
  1580. \t\t\t\t\t/* console.log('click'); */
  1581. \t\t\t\t\tlet headerHeight = \$('header').height();
  1582. \t\t\t\t\t\$(window).resize(function(){
  1583. \t\t\t\t\t\theaderHeight = \$('header').height();
  1584. \t\t\t\t\t});
  1585. \t\t\t\t\t\$([document.documentElement, document.body]).animate({
  1586. \t\t\t\t\t\tscrollTop: \$(\".apk-studios-list\").offset().top - headerHeight
  1587. \t\t\t\t\t}, 1000);
  1588. \t\t\t\t});
  1589. \t\t\t\tfunction submitClick(noScroll = null) {
  1590. \t\t\t\t\t\$('#submit').click();
  1591. \t\t\t\t\tif(noScroll) {
  1592. \t\t\t\t\t\t\$([document.documentElement, document.body]).animate().stop();
  1593. \t\t\t\t\t}
  1594. \t\t\t\t};
  1595. \t\t\t\tvar bookDate = document.getElementsByClassName('bookDateMobile');
  1596. \t\t\t\tvar bookHour = document.getElementsByClassName('bookHourMobile');
  1597. \t\t\t\tvar bookDuration = document.getElementsByClassName('bookDurationMobile');
  1598. \t\t\t\tvar bookHourDuration = \$('.bookHourDuration');
  1599. \t\t\t\tif (bookDate.length && bookDuration.length) {
  1600. \t\t\t\t\tbookDate = bookDate[0];
  1601. \t\t\t\t\tbookDuration = bookDuration[0];
  1602. \t\t\t\t\tbookHour = bookHour[0];
  1603. \t\t\t\t\t/* Date d'aujuord'hui + 1h */
  1604. \t\t\t\t\tvar nowPlusOne = new Date();
  1605. \t\t\t\t\tnowPlusOne.setHours(bookHour.getAttribute('data-value'));
  1606. \t\t\t\t\t/* nowPlusOne.setHours(nowPlusOne.getHours() + 1) */
  1607. \t\t\t\t\tvar pickerBookHour = new Picker(bookHour, {
  1608. \t\t\t\t\t\tdate: nowPlusOne,
  1609. \t\t\t\t\t\tcontainer: document.getElementById('hourContainer'),
  1610. \t\t\t\t\t\tinline: true,
  1611. \t\t\t\t\t\tformat: 'H',
  1612. \t\t\t\t\t\t{% if pimcore_website_config('OpeningStudiosOur') %}
  1613. \t\t\t\t\t\tminHour: parseInt({{pimcore_website_config('OpeningStudiosOur')}}),
  1614. \t\t\t\t\t\t{% endif %}
  1615. \t\t\t\t\t\t{% if pimcore_website_config('ClosingStudiosOur') %}
  1616. \t\t\t\t\t\tmaxHour: parseInt({{pimcore_website_config('ClosingStudiosOur')}}),
  1617. \t\t\t\t\t\t{% endif %}
  1618. \t\t\t\t\t\tcontrols: true,
  1619. \t\t\t\t\t\theaders: true,
  1620. \t\t\t\t\t\tlanguage: \"{{ app.request.locale }}\",
  1621. \t\t\t\t\t\ttext: {
  1622. \t\t\t\t\t\t\ttitle: false, /*title: '{{ \"Select an hour to begin\"|trans }}', */
  1623. \t\t\t\t\t\t\tcancel: '{{ \"Cancel\"|trans }}',
  1624. \t\t\t\t\t\t\tconfirm: '{{ \"OK\"|trans }}',
  1625. \t\t\t\t\t\t\tyear: '{{ \"Year\"|trans }}',
  1626. \t\t\t\t\t\t\tmonth: '{{ \"Month\"|trans }}',
  1627. \t\t\t\t\t\t\tday: '{{ \"Day\"|trans }}',
  1628. \t\t\t\t\t\t\thour: '{{ \"Hout to begin\"|trans }}',
  1629. \t\t\t\t\t\t\tminute: '{{ \"Minute\"|trans }}',
  1630. \t\t\t\t\t\t\tsecond: '{{ \"Second\"|trans }}',
  1631. \t\t\t\t\t\t\tmillisecond: '{{ \"Millisecond\"|trans }}'
  1632. \t\t\t\t\t\t},
  1633. \t\t\t\t\t});
  1634. \t\t\t\t\t
  1635. \t\t\t\t\tvar now = new Date();
  1636. \t\t\t\t\tvar oneHourDefault = new Date();
  1637. \t\t\t\t\tvar defaultHour = 3;
  1638. \t\t\t\t\tif(document.getElementById(\"bookDuration\").getAttribute('data-value')) {
  1639. \t\t\t\t\t\tdefaultHour = document.getElementById(\"bookDuration\").getAttribute('data-value');
  1640. \t\t\t\t\t}
  1641. \t\t\t\t\toneHourDefault.setHours(defaultHour);
  1642. \t\t\t\t\t
  1643. \t\t\t\t\tvar pickerBookDuration = new Picker(bookDuration, {
  1644. \t\t\t\t\t\tdate: oneHourDefault,
  1645. \t\t\t\t\t\tcontainer: document.getElementById('durationContainer'),
  1646. \t\t\t\t\t\tinline: true,
  1647. \t\t\t\t\t\tformat: 'H',
  1648. \t\t\t\t\t\tminDuration: 1,
  1649. \t\t\t\t\t\tmaxDuration: 12,
  1650. \t\t\t\t\t\tcontrols: true,
  1651. \t\t\t\t\t\theaders: true,
  1652. \t\t\t\t\t\tlanguage: \"{{ app.request.locale }}\",
  1653. \t\t\t\t\t\ttext: {
  1654. \t\t\t\t\t\t\ttitle: '{{ \"Select a duration\"|trans }}',
  1655. \t\t\t\t\t\t\tcancel: '{{ \"Cancel\"|trans }}',
  1656. \t\t\t\t\t\t\tconfirm: '{{ \"OK\"|trans }}',
  1657. \t\t\t\t\t\t\tyear: '{{ \"Year\"|trans }}',
  1658. \t\t\t\t\t\t\tmonth: '{{ \"Month\"|trans }}',
  1659. \t\t\t\t\t\t\tday: '{{ \"Day\"|trans }}',
  1660. \t\t\t\t\t\t\thour: '{{ \"Duration\"|trans }}',
  1661. \t\t\t\t\t\t\tminute: '{{ \"Minute\"|trans }}',
  1662. \t\t\t\t\t\t\tsecond: '{{ \"Second\"|trans }}',
  1663. \t\t\t\t\t\t\tmillisecond: '{{ \"Millisecond\"|trans }}'
  1664. \t\t\t\t\t\t},
  1665. \t\t\t\t\t});
  1666. \t\t\t\t\tfunction updateValue(e) {
  1667. \t\t\t\t\t\tbookDate = e.target.value;
  1668. \t\t\t\t\t\t/* console.log('done'); */
  1669. \t\t\t\t\t};
  1670. \t\t\t\t\tfunction updateHourDuration () {
  1671. \t\t\t\t\t\tvar bookHourVal = \$('.bookHourMobile').val();
  1672. \t\t\t\t\t\tvar bookDurationVal = \$('.bookDurationMobile').attr('data-value');
  1673. \t\t\t\t\t\tvar hourType = \"\";
  1674. \t\t\t\t\t\tif(bookDurationVal > 1) {
  1675. \t\t\t\t\t\t\thourType = \"{{'hours'|trans}}\";
  1676. \t\t\t\t\t\t} else {
  1677. \t\t\t\t\t\t\thourType = \"{{'hour'|trans}}\";
  1678. \t\t\t\t\t\t} 
  1679. \t\t\t\t\t\tvar text = \"{{ \"duration.before.hour\"|trans }}\" + \" \" + bookHourVal + \" \" + \"{{ \"duration.middle.hour\"|trans }}\" + \" \" + bookDurationVal + \" \" + hourType ;
  1680. \t\t\t\t\t\tbookHourDuration.val(text);
  1681. \t\t\t\t\t};
  1682. \t\t\t\t\tupdateHourDuration ();
  1683. \t\t\t\t\tfunction setText() {
  1684. \t\t\t\t\t\t/* \$('#durationContainer .picker-item[data-value=\"0\"]').css({'display': 'none'}); */
  1685. \t\t\t\t\t\t\$('#durationContainer .picker-item').each(function() {
  1686. \t\t\t\t\t\t\tvar txt = \$(this).attr('data-value');
  1687. \t\t\t\t\t\t\tif(txt == \"1\" || txt == \"0\") {
  1688. \t\t\t\t\t\t\t\t\$(this).text(txt + \" \" + \"{{\"hour\"|trans}}\");
  1689. \t\t\t\t\t\t\t} else {
  1690. \t\t\t\t\t\t\t\t\$(this).text(txt + \" \" + \"{{\"hours\"|trans}}\");
  1691. \t\t\t\t\t\t\t}
  1692. \t\t\t\t\t\t});
  1693. \t\t\t\t\t\t\$('#hourContainer .picker-item').each(function() {
  1694. \t\t\t\t\t\t\tvar txt = \$(this).attr('data-value');
  1695. \t\t\t\t\t\t\t\$(this).text(txt + \"{{\"h00\"|trans}}\");
  1696. \t\t\t\t\t\t})
  1697. \t\t\t\t\t};
  1698. \t\t\t\t\tsetText();
  1699. \t\t\t\t\tfunction updateHoursAfterMidnight(parent) {
  1700. \t\t\t\t\t\t\$(parent).find('.picker-list [data-value]').each( function() {
  1701. \t\t\t\t\t\t\tif(parseInt(\$(this).attr('data-value')) >= 24) {
  1702. \t\t\t\t\t\t\t\t\$(this).text(parseInt(\$(this).attr('data-value')) - 24 + 'h00');
  1703. \t\t\t\t\t\t\t}
  1704. \t\t\t\t\t\t});
  1705. \t\t\t\t\t};
  1706. \t\t\t\t\tpickerBookHour.pick = function () {
  1707. \t\t\t\t\t\tvar result = new Date(pickerBookHour.date);
  1708. \t\t\t\t\t\tvar now = new Date();
  1709. \t\t\t\t\t\tdateMinusOnemin = new Date(\$(\"#bookDate\").datepicker( \"getDate\", {dateFormat: 'yy-mm-dd'} ));
  1710. \t\t\t\t\t\tdateMinusOnemin.setHours(result.getHours());
  1711. \t\t\t\t\t\tdateMinusOnemin.setMinutes(now.getMinutes() - 1);
  1712. \t\t\t\t\t\tdateMinusOnemin.setSeconds(now.getSeconds());
  1713. \t\t\t\t\t\t/* console.log(now); */
  1714. \t\t\t\t\t\t/* console.log(dateMinusOnemin); */
  1715. \t\t\t\t\t\t/*
  1716. \t\t\t\t\t\tif(\$('.picker-open .picker-title .uk-alert').length) {
  1717. \t\t\t\t\t\t\tdocument.querySelector('.picker-open .picker-title .uk-alert').remove();
  1718. \t\t\t\t\t\t}
  1719. \t\t\t\t\t\tif (dateMinusOnemin <= now) {
  1720. \t\t\t\t\t\t\tvar pickerTitle = document.querySelector('.picker-open .picker-title');
  1721. \t\t\t\t\t\t\tvar message = '<div class=\"uk-alert-danger\" uk-alert><a class=\"uk-alert-close\" uk-close></a>        {{ \"La date ou l\\'heure sélectionnée est antérieur à la date actuelle.\"|trans }}</div>';
  1722. \t\t\t\t\t\t\tpickerTitle.insertAdjacentHTML('beforeend', message);
  1723. \t\t\t\t\t\t\tsetTimeout(function () {
  1724. \t\t\t\t\t\t\t\tvar alert = document.querySelector('.picker-open .picker-title .uk-alert');
  1725. \t\t\t\t\t\t\t\t//alert.remove();
  1726. \t\t\t\t\t\t\t}, 5000)
  1727. \t\t\t\t\t\t\treturn false;
  1728. \t\t\t\t\t\t}
  1729. \t\t\t\t\t\t*/
  1730. \t\t\t\t\t\tvar hourPicked = result.getHours();
  1731. \t\t\t\t\t\tif(hourPicked >= 24) {
  1732. \t\t\t\t\t\t\thourPicked = hourPicked - 24;
  1733. \t\t\t\t\t\t}
  1734. \t\t\t\t\t\tbookHour.setAttribute('data-value', hourPicked);
  1735. \t\t\t\t\t\tbookHour.value = hourPicked + 'h00';
  1736. \t\t\t\t\t\tbookHour.focus();
  1737. \t\t\t\t\t\t
  1738. \t\t\t\t\t\tpickerBookHour.hide();
  1739. \t\t\t\t\t\tupdateHourDuration();
  1740. \t\t\t\t\t\tsetText();
  1741. \t\t\t\t\t\t\$('#hourContainer .picker-list [data-value]').removeClass('separator');
  1742. \t\t\t\t\t\t\$('#hourContainer .picker-list [data-value=\"'+ pickerBookHour.data.hour.min +'\"]').addClass('separator');
  1743. \t\t\t\t\t\tupdateHoursAfterMidnight('#hourContainer');
  1744. \t\t\t\t\t};
  1745. \t\t\t\t\t
  1746. \t\t\t\t\tupdateHoursAfterMidnight('#hourContainer');
  1747. \t\t\t\t\t
  1748. \t\t\t\t\tpickerBookDuration.pick = function () {
  1749. \t\t\t\t\t\tvar durationPicked = new Date(pickerBookDuration.date).getHours();
  1750. \t\t\t\t\t\tbookDuration.setAttribute('data-value', durationPicked);
  1751. \t\t\t\t\t\tbookDuration.value = durationPicked + 'h00';
  1752. \t\t\t\t\t\tbookDuration.focus();
  1753. \t\t\t\t\t\tpickerBookDuration.hide();
  1754. \t\t\t\t\t\tupdateHourDuration();
  1755. \t\t\t\t\t\tsetText();
  1756. \t\t\t\t\t\t\$('#durationContainer .picker-list [data-value]').removeClass('separator');
  1757. \t\t\t\t\t\t\$('#durationContainer .picker-list [data-value=\"'+ pickerBookDuration.data.hour.min +'\"]').addClass('separator');
  1758. \t\t\t\t\t};
  1759. \t\t\t\t\t\$('#hourContainer .picker-list [data-value=\"'+ pickerBookHour.data.hour.min +'\"]').addClass('separator');
  1760. \t\t\t\t\t\$('#durationContainer .picker-list [data-value=\"'+ pickerBookDuration.data.hour.min +'\"]').addClass('separator');
  1761. \t\t\t\t\t
  1762. \t\t\t\t};
  1763. \t\t\t\t/* Activate a trigger on the input field on button click */
  1764. \t\t\t\tif(\$('#modal-hours').length){
  1765. \t\t\t\t\t\$('#modal-hours .uk-button').on('click', function(e){
  1766. \t\t\t\t\t\tvar inputHour = \$('#bookHourMobile');
  1767. \t\t\t\t\t\t/* \$('#bookDate').focus(); */
  1768. \t\t\t\t\t\t/* \$('#bookDate').datepicker('hide'); */
  1769. \t\t\t\t\t\tfocusSubmit();
  1770. \t\t\t\t\t});
  1771. \t\t\t\t};
  1772. \t\t\t\t
  1773. \t\t\t}));
  1774. \t\t});
  1775. \t</script>
  1776. {% endblock %}
  1777. ""studio/list.html.twig""/data/sites/web/plugthejackcom/subsites/ptj.apik-pp.be/templates/studio/list.html.twig");
  1778.     }
  1779. }