var/cache/dev/twig/9a/9a52407ecc19cdf7172f5c225b558a7f.php line 198

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* catalog/snippets/modal.html.twig */
  15. class __TwigTemplate_637843a4dc5886b17812411ed6d152c1 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->parent false;
  24.         $this->blocks = [
  25.         ];
  26.         $this->sandbox $this->env->getExtension(SandboxExtension::class);
  27.         $this->checkSecurity();
  28.     }
  29.     protected function doDisplay(array $context, array $blocks = [])
  30.     {
  31.         $macros $this->macros;
  32.         $__internal_b91a4435ea3baf1e2b6bfda56133dace $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  33.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->enter($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""catalog/snippets/modal.html.twig"));
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""catalog/snippets/modal.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""catalog/snippets/modal.html.twig"));
  38.         // line 1
  39.         yield "<!-- Modal -->
  40. <div class=\"modal border-0 fade pr-0 catalog-modal\" id=\"catalogModal-";
  41.         // line 3
  42.         ((array_key_exists("article"$context)) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'3$this->source); })()), "id", [], "any"falsefalsetrue3), "html"nulltrue)) : (yield ""));
  43.         yield "\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
  44.     <div class=\"modal-dialog modal-lg modal-dialog-centered\" role=\"document\" style=\"max-width: 680px;\">
  45.         <div class=\"modal-content\">
  46.             <div class=\"modal-header border-0\">
  47.                 <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" style=\"opacity: 1;\">
  48.                 <span aria-hidden=\"true\" class=\"text-indigo\">&times;</span>
  49.                 </button>
  50.             </div>
  51.             <div class=\"modal-body px-5 px-lg-5 px-md-5\">
  52.                 <div class=\"row\">
  53.                     ";
  54.         // line 13
  55.         if (((array_key_exists("addresses"$context) && (isset($context["addresses"]) || array_key_exists("addresses"$context) ? $context["addresses"] : (function () { throw new RuntimeError('Variable "addresses" does not exist.'13$this->source); })())) &&  !(isset($context["lastCatalog"]) || array_key_exists("lastCatalog"$context) ? $context["lastCatalog"] : (function () { throw new RuntimeError('Variable "lastCatalog" does not exist.'13$this->source); })()))) {
  56.             // line 14
  57.             yield "                        <div class=\"col-lg-6\">
  58.                             <h3 class=\"font-weight-bold mb-3 mb-lg-3 mb-md-3\">Order Print Catalog</h3>
  59.                             <div class=\"order-catalog-text\">
  60.                                 <small class=\"font-weight-bold text-silver\">
  61.                                     DEFAULT SHIPPING ADDRESS
  62.                                 </small>
  63.                             </div>
  64.                             ";
  65.             // line 22
  66.             $context['_parent'] = $context;
  67.             $context['_seq'] = CoreExtension::ensureTraversable((isset($context["addresses"]) || array_key_exists("addresses"$context) ? $context["addresses"] : (function () { throw new RuntimeError('Variable "addresses" does not exist.'22$this->source); })()));
  68.             foreach ($context['_seq'] as $context["_key"] => $context["address"]) {
  69.                 // line 23
  70.                 yield "                                <div class=\"";
  71.                 yield ((((isset($context["defaultShippingAddress"]) || array_key_exists("defaultShippingAddress"$context) ? $context["defaultShippingAddress"] : (function () { throw new RuntimeError('Variable "defaultShippingAddress" does not exist.'23$this->source); })()) != CoreExtension::getAttribute($this->env$this->source$context["address"], "id", [], "any"falsefalsetrue23))) ? ("d-none") : (""));
  72.                 yield "\" data-address-id=\"";
  73.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "id", [], "any"falsefalsetrue23), 23$this->source), "html"nulltrue);
  74.                 yield "\">
  75.                                     <p class=\"mb-0 text-deepGray mt-3 mt-lg-3 mt-md-3\">";
  76.                 // line 24
  77.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "fullname", [], "any"falsefalsetrue24), 24$this->source), "html"nulltrue);
  78.                 yield "</p>
  79.                                     <p class=\"mb-0 text-deepGray\">";
  80.                 // line 25
  81.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "street_address", [], "any"falsefalsetrue25), 25$this->source), "html"nulltrue);
  82.                 yield "</p>
  83.                                     <p class=\"mb-0 text-deepGray\">";
  84.                 // line 26
  85.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "zip_code", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  86.                 yield " ";
  87.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "city", [], "any"falsefalsetrue26), 26$this->source), "html"nulltrue);
  88.                 yield "</p>
  89.                                     <p class=\"mb-0 text-deepGray\">";
  90.                 // line 27
  91.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "stateDisplay", [], "any"falsefalsetrue27), 27$this->source), "html"nulltrue);
  92.                 yield "</p>
  93.                                     <p class=\"mb-0 text-deepGray\">";
  94.                 // line 28
  95.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "countryName", [], "any"falsefalsetrue28), 28$this->source), "html"nulltrue);
  96.                 yield "</p>
  97.                                     <p class=\"mb-0 text-deepGray\">";
  98.                 // line 29
  99.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "phone", [], "any"falsefalsetrue29), 29$this->source), "html"nulltrue);
  100.                 yield "</p>
  101.                                 </div>
  102.                             ";
  103.             }
  104.             $_parent $context['_parent'];
  105.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['address'], $context['_parent'], $context['loop']);
  106.             $context array_intersect_key($context$_parent) + $_parent;
  107.             // line 32
  108.             yield "                            <div class=\"select-ghost\" style=\"margin-left: -27px;\">
  109.                                 <select name=\"catalog_shipping_addresses\" id=\"catalog_shipping_addresses-";
  110.             // line 33
  111.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'33$this->source); })()), "id", [], "any"falsefalsetrue33), 33$this->source), "html"nulltrue);
  112.             yield "\" style=\"max-width: 200px;\">
  113.                                     ";
  114.             // line 34
  115.             if (array_key_exists("addresses"$context)) {
  116.                 // line 35
  117.                 yield "                                        <option value=\"\" disabled selected>
  118.                                             SELECT OTHER ADDRESS
  119.                                         </option>
  120.                                         ";
  121.                 // line 38
  122.                 $context['_parent'] = $context;
  123.                 $context['_seq'] = CoreExtension::ensureTraversable((isset($context["addresses"]) || array_key_exists("addresses"$context) ? $context["addresses"] : (function () { throw new RuntimeError('Variable "addresses" does not exist.'38$this->source); })()));
  124.                 foreach ($context['_seq'] as $context["_key"] => $context["address"]) {
  125.                     // line 39
  126.                     yield "                                            <option value=\"";
  127.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "id", [], "any"falsefalsetrue39), 39$this->source), "html"nulltrue);
  128.                     yield "\">
  129.                                                 ";
  130.                     // line 40
  131.                     yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source$context["address"], "label", [], "any"falsefalsetrue40), 40$this->source), "html"nulltrue);
  132.                     yield "
  133.                                             </option>
  134.                                         ";
  135.                 }
  136.                 $_parent $context['_parent'];
  137.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['address'], $context['_parent'], $context['loop']);
  138.                 $context array_intersect_key($context$_parent) + $_parent;
  139.                 // line 43
  140.                 yield "                                    ";
  141.             }
  142.             // line 44
  143.             yield "                                        <option value=\"new\">";
  144.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add new"), "html"nulltrue);
  145.             yield "</option>
  146.                                 </select>
  147.                             </div>
  148.                         </div>
  149.                     ";
  150.         } else {
  151.             // line 49
  152.             yield "                        <div class=\"col-lg-6\">
  153.                             <h3 class=\"font-weight-bold mb-3 mb-lg-3 mb-md-3\">Order Print</h3>
  154.                             <div class=\"order-catalog-text\">
  155.                                 <p>Please complete the form to receive your free product catalog from Stoelting Co.</p>
  156.                             </div>
  157.                         </div>
  158.                     ";
  159.         }
  160.         // line 56
  161.         yield "                    <div class=\"col-lg-6 d-flex justify-content-center\">
  162.                         ";
  163.         // line 57
  164.         yield $this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'57$this->source); })()), "feature_image", [], "any"falsefalsetrue57), "getThumbnail", ["catalog"], "method"falsefalsetrue57), "getHtml", [["class" => "mb-2 mb-lg-2 mb-md-2""alt" => CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'57$this->source); })()), "title", [], "any"falsefalsetrue57)]], "method"falsefalsetrue57), 57$this->source);
  165.         yield "
  166.                     </div>
  167.                 </div>
  168.                 <div class=\"row\">
  169.                     <div class=\"col-lg-12\">
  170.                         ";
  171.         // line 62
  172.         yield from         $this->loadTemplate("catalog/snippets/form.html.twig""catalog/snippets/modal.html.twig"62)->unwrap()->yield(CoreExtension::merge($contextCoreExtension::getAttribute($this->env$this->source, (isset($context["modalForms"]) || array_key_exists("modalForms"$context) ? $context["modalForms"] : (function () { throw new RuntimeError('Variable "modalForms" does not exist.'62$this->source); })()), CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'62$this->source); })()), "id", [], "any"falsefalsetrue62), [], "array"falsefalsetrue62)));
  173.         // line 63
  174.         yield "                    </div>
  175.                 </div>
  176.             </div>
  177.             <div class=\"modal-footer border-0 mb-3 mb-lg-3 mb-md-3 px-5 px-lg-5 px-md-5 ";
  178.         // line 66
  179.         yield ((( !(isset($context["addresses"]) || array_key_exists("addresses"$context) ? $context["addresses"] : (function () { throw new RuntimeError('Variable "addresses" does not exist.'66$this->source); })()) || (isset($context["lastCatalog"]) || array_key_exists("lastCatalog"$context) ? $context["lastCatalog"] : (function () { throw new RuntimeError('Variable "lastCatalog" does not exist.'66$this->source); })()))) ? ("d-none") : (""));
  180.         yield "\">
  181.                 <!-- <a class=\"btn btn-primary btn-primary--ghost\" data-dismiss=\"modal\">
  182.                     Anwser no
  183.                 </a> -->
  184.                 <form action=\"";
  185.         // line 70
  186.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("catalog_email_send", ["division" => $this->extensions['App\Twig\AppExtension']->getSiteDivision()]), "html"nulltrue);
  187.         yield "\" method=\"POST\" class=\"m-0 d-flex w-100 align-items-end\">
  188.                     <div class=\"d-flex flex-column mr-auto\">
  189.                         <div class=\"mb-1 mb-lg-1 mb-md-1 text-deepGray\">
  190.                             Quantity
  191.                         </div>
  192.                         <div class=\"border border-pearl d-flex custom-input-number\" style=\"width: 105px;\">
  193.                             <button type=\"button\" disabled=\"disabled\" class=\"custom-input-number-button custom-input-number-button--down\"><span class=\"custom-input-number-arrow\"></span></button>
  194.                                 <input type=\"number\" class=\"text-deepGray\" id=\"quantity-";
  195.         // line 77
  196.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'77$this->source); })()), "id", [], "any"falsefalsetrue77), 77$this->source), "html"nulltrue);
  197.         yield "\" name=\"quantity\" required=\"required\" placeholder=\"stoelting.quantity\" min=\"1\" max=\"100\" value=\"1\">
  198.                             <button type=\"button\" class=\"custom-input-number-button custom-input-number-button--up\"><span class=\"custom-input-number-arrow custom-input-number-arrow--up\"></span></button>
  199.                         </div>
  200.                     </div>
  201.                     <input type=\"text\" name=\"address\" value=\"";
  202.         // line 81
  203.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed((isset($context["defaultShippingAddress"]) || array_key_exists("defaultShippingAddress"$context) ? $context["defaultShippingAddress"] : (function () { throw new RuntimeError('Variable "defaultShippingAddress" does not exist.'81$this->source); })()), 81$this->source), "html"nulltrue);
  204.         yield "\" hidden>
  205.                     <input type=\"text\" name=\"catalog\" value=\"";
  206.         // line 82
  207.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->sandbox->ensureToStringAllowed(CoreExtension::getAttribute($this->env$this->source, (isset($context["article"]) || array_key_exists("article"$context) ? $context["article"] : (function () { throw new RuntimeError('Variable "article" does not exist.'82$this->source); })()), "id", [], "any"falsefalsetrue82), 82$this->source), "html"nulltrue);
  208.         yield "\" hidden>
  209.                     <button type=\"submit\" class=\"btn btn-primary ml-4 ml-lg-0 ml-md-0\" >
  210.                         Submit
  211.                     </button>
  212.                 </form>
  213.             </div>
  214.         </div>
  215.     </div>
  216. </div>";
  217.         
  218.         $__internal_b91a4435ea3baf1e2b6bfda56133dace->leave($__internal_b91a4435ea3baf1e2b6bfda56133dace_prof);
  219.         
  220.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  221.         
  222.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  223.         return; yield '';
  224.     }
  225.     /**
  226.      * @codeCoverageIgnore
  227.      */
  228.     public function getTemplateName()
  229.     {
  230.         return "catalog/snippets/modal.html.twig";
  231.     }
  232.     /**
  233.      * @codeCoverageIgnore
  234.      */
  235.     public function isTraitable()
  236.     {
  237.         return false;
  238.     }
  239.     /**
  240.      * @codeCoverageIgnore
  241.      */
  242.     public function getDebugInfo()
  243.     {
  244.         return array (  219 => 82,  215 => 81,  208 => 77,  198 => 70,  191 => 66,  186 => 63,  184 => 62,  176 => 57,  173 => 56,  164 => 49,  155 => 44,  152 => 43,  143 => 40,  138 => 39,  134 => 38,  129 => 35,  127 => 34,  123 => 33,  120 => 32,  111 => 29,  107 => 28,  103 => 27,  97 => 26,  93 => 25,  89 => 24,  82 => 23,  78 => 22,  68 => 14,  66 => 13,  53 => 3,  49 => 1,);
  245.     }
  246.     public function getSourceContext()
  247.     {
  248.         return new Source("<!-- Modal -->
  249. <div class=\"modal border-0 fade pr-0 catalog-modal\" id=\"catalogModal-{{ article is defined ? article.id }}\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
  250.     <div class=\"modal-dialog modal-lg modal-dialog-centered\" role=\"document\" style=\"max-width: 680px;\">
  251.         <div class=\"modal-content\">
  252.             <div class=\"modal-header border-0\">
  253.                 <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" style=\"opacity: 1;\">
  254.                 <span aria-hidden=\"true\" class=\"text-indigo\">&times;</span>
  255.                 </button>
  256.             </div>
  257.             <div class=\"modal-body px-5 px-lg-5 px-md-5\">
  258.                 <div class=\"row\">
  259.                     {% if addresses is defined and addresses and not lastCatalog %}
  260.                         <div class=\"col-lg-6\">
  261.                             <h3 class=\"font-weight-bold mb-3 mb-lg-3 mb-md-3\">Order Print Catalog</h3>
  262.                             <div class=\"order-catalog-text\">
  263.                                 <small class=\"font-weight-bold text-silver\">
  264.                                     DEFAULT SHIPPING ADDRESS
  265.                                 </small>
  266.                             </div>
  267.                             {% for address in addresses %}
  268.                                 <div class=\"{{ defaultShippingAddress != address.id ? 'd-none' }}\" data-address-id=\"{{ address.id }}\">
  269.                                     <p class=\"mb-0 text-deepGray mt-3 mt-lg-3 mt-md-3\">{{ address.fullname }}</p>
  270.                                     <p class=\"mb-0 text-deepGray\">{{ address.street_address }}</p>
  271.                                     <p class=\"mb-0 text-deepGray\">{{ address.zip_code }} {{ address.city }}</p>
  272.                                     <p class=\"mb-0 text-deepGray\">{{ address.stateDisplay }}</p>
  273.                                     <p class=\"mb-0 text-deepGray\">{{ address.countryName }}</p>
  274.                                     <p class=\"mb-0 text-deepGray\">{{ address.phone }}</p>
  275.                                 </div>
  276.                             {% endfor %}
  277.                             <div class=\"select-ghost\" style=\"margin-left: -27px;\">
  278.                                 <select name=\"catalog_shipping_addresses\" id=\"catalog_shipping_addresses-{{article.id}}\" style=\"max-width: 200px;\">
  279.                                     {% if addresses is defined %}
  280.                                         <option value=\"\" disabled selected>
  281.                                             SELECT OTHER ADDRESS
  282.                                         </option>
  283.                                         {% for address in addresses %}
  284.                                             <option value=\"{{ address.id }}\">
  285.                                                 {{ address.label }}
  286.                                             </option>
  287.                                         {% endfor %}
  288.                                     {% endif %}
  289.                                         <option value=\"new\">{{ 'Add new' | trans }}</option>
  290.                                 </select>
  291.                             </div>
  292.                         </div>
  293.                     {% else %}
  294.                         <div class=\"col-lg-6\">
  295.                             <h3 class=\"font-weight-bold mb-3 mb-lg-3 mb-md-3\">Order Print</h3>
  296.                             <div class=\"order-catalog-text\">
  297.                                 <p>Please complete the form to receive your free product catalog from Stoelting Co.</p>
  298.                             </div>
  299.                         </div>
  300.                     {% endif %}
  301.                     <div class=\"col-lg-6 d-flex justify-content-center\">
  302.                         {{ article.feature_image.getThumbnail('catalog').getHtml({class: 'mb-2 mb-lg-2 mb-md-2', alt: article.title}) | raw }}
  303.                     </div>
  304.                 </div>
  305.                 <div class=\"row\">
  306.                     <div class=\"col-lg-12\">
  307.                         {% include 'catalog/snippets/form.html.twig' with modalForms[article.id] %}
  308.                     </div>
  309.                 </div>
  310.             </div>
  311.             <div class=\"modal-footer border-0 mb-3 mb-lg-3 mb-md-3 px-5 px-lg-5 px-md-5 {{ not addresses or lastCatalog ? 'd-none' }}\">
  312.                 <!-- <a class=\"btn btn-primary btn-primary--ghost\" data-dismiss=\"modal\">
  313.                     Anwser no
  314.                 </a> -->
  315.                 <form action=\"{{ path('catalog_email_send', {'division': getSiteDivision()}) }}\" method=\"POST\" class=\"m-0 d-flex w-100 align-items-end\">
  316.                     <div class=\"d-flex flex-column mr-auto\">
  317.                         <div class=\"mb-1 mb-lg-1 mb-md-1 text-deepGray\">
  318.                             Quantity
  319.                         </div>
  320.                         <div class=\"border border-pearl d-flex custom-input-number\" style=\"width: 105px;\">
  321.                             <button type=\"button\" disabled=\"disabled\" class=\"custom-input-number-button custom-input-number-button--down\"><span class=\"custom-input-number-arrow\"></span></button>
  322.                                 <input type=\"number\" class=\"text-deepGray\" id=\"quantity-{{ article.id }}\" name=\"quantity\" required=\"required\" placeholder=\"stoelting.quantity\" min=\"1\" max=\"100\" value=\"1\">
  323.                             <button type=\"button\" class=\"custom-input-number-button custom-input-number-button--up\"><span class=\"custom-input-number-arrow custom-input-number-arrow--up\"></span></button>
  324.                         </div>
  325.                     </div>
  326.                     <input type=\"text\" name=\"address\" value=\"{{ defaultShippingAddress }}\" hidden>
  327.                     <input type=\"text\" name=\"catalog\" value=\"{{ article.id }}\" hidden>
  328.                     <button type=\"submit\" class=\"btn btn-primary ml-4 ml-lg-0 ml-md-0\" >
  329.                         Submit
  330.                     </button>
  331.                 </form>
  332.             </div>
  333.         </div>
  334.     </div>
  335. </div>""catalog/snippets/modal.html.twig""/var/www/webovi/stoelting/pimcore/templates/catalog/snippets/modal.html.twig");
  336.     }
  337.     
  338.     public function checkSecurity()
  339.     {
  340.         static $tags = array("if" => 13"for" => 22"include" => 62);
  341.         static $filters = array("escape" => 3"trans" => 44"raw" => 57);
  342.         static $functions = array("path" => 70"getSiteDivision" => 70);
  343.         try {
  344.             $this->sandbox->checkSecurity(
  345.                 ['if''for''include'],
  346.                 ['escape''trans''raw'],
  347.                 ['path''getSiteDivision'],
  348.                 $this->source
  349.             );
  350.         } catch (SecurityError $e) {
  351.             $e->setSourceContext($this->source);
  352.             if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
  353.                 $e->setTemplateLine($tags[$e->getTagName()]);
  354.             } elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
  355.                 $e->setTemplateLine($filters[$e->getFilterName()]);
  356.             } elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
  357.                 $e->setTemplateLine($functions[$e->getFunctionName()]);
  358.             }
  359.             throw $e;
  360.         }
  361.     }
  362. }