protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_802e3c758f6323baa820d5db315295344fc813394a7d2bff4b65279a38ba4516 = $this->env->getExtension("native_profiler");
     $__internal_802e3c758f6323baa820d5db315295344fc813394a7d2bff4b65279a38ba4516->enter($__internal_802e3c758f6323baa820d5db315295344fc813394a7d2bff4b65279a38ba4516_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "SonataAdminBundle:CRUD:base_inline_edit_field.html.twig"));
     // line 11
     echo "\n<div id=\"sonata-ba-field-container-";
     // line 12
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field_element"]) ? $context["field_element"] : $this->getContext($context, "field_element"), "vars", array()), "id", array()), "html", null, true);
     echo "\" class=\"sonata-ba-field sonata-ba-field-";
     echo twig_escape_filter($this->env, isset($context["edit"]) ? $context["edit"] : $this->getContext($context, "edit"), "html", null, true);
     echo "-";
     echo twig_escape_filter($this->env, isset($context["inline"]) ? $context["inline"] : $this->getContext($context, "inline"), "html", null, true);
     echo " ";
     if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field_element"]) ? $context["field_element"] : $this->getContext($context, "field_element"), "vars", array()), "errors", array()))) {
         echo "sonata-ba-field-error";
     }
     echo "\">\n\n    ";
     // line 14
     $this->displayBlock('label', $context, $blocks);
     // line 24
     echo "\n    ";
     // line 25
     $this->displayBlock('field', $context, $blocks);
     // line 26
     echo "\n    <div class=\"sonata-ba-field-error-messages\">\n        ";
     // line 28
     $this->displayBlock('errors', $context, $blocks);
     // line 29
     echo "    </div>\n</div>\n";
     $__internal_802e3c758f6323baa820d5db315295344fc813394a7d2bff4b65279a38ba4516->leave($__internal_802e3c758f6323baa820d5db315295344fc813394a7d2bff4b65279a38ba4516_prof);
 }
 public function block_content($context, array $blocks = array())
 {
     // line 6
     echo "    <div class=\"row\">\n        <div class=\"span12\">\n            <p><strong>Payment request:</strong> ";
     // line 8
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["paymentRequest"]) ? $context["paymentRequest"] : $this->getContext($context, "paymentRequest"), "title", array()), "html", null, true);
     echo " </p>\n            <p><strong>Petition:</strong> ";
     // line 9
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["petition"]) ? $context["petition"] : $this->getContext($context, "petition"), "petitionTitle", array()), "html", null, true);
     echo "</p>\n            <p><strong>Signed:</strong> ";
     // line 10
     echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["users"]) ? $context["users"] : $this->getContext($context, "users")), "html", null, true);
     echo "</p>\n        </div>\n        <br>\n        <br>\n        <div class=\"span12\">\n            <form method=\"post\">\n                ";
     // line 16
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), 'widget');
     echo "\n                <input name=\"user_count\" value=\"";
     // line 17
     echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["users"]) ? $context["users"] : $this->getContext($context, "users")), "html", null, true);
     echo "\" type=\"hidden\">\n                ";
     // line 18
     if (isset($context["hasCard"]) ? $context["hasCard"] : $this->getContext($context, "hasCard")) {
         // line 19
         echo "                    <input type=\"submit\" class=\"btn btn-primary\" value=\"Pay & Publish\">\n                ";
     } else {
         // line 21
         echo "                    <a class=\"btn btn-primary\" data-open-card-from>Add Card</a>\n                ";
     }
     // line 23
     echo "            </form>\n        </div>\n    </div>\n\n    ";
     // line 27
     echo twig_include($this->env, $context, "CivixFrontBundle:PaymentSettings:stripe.html.twig");
     echo "\n";
 }
 public function block_form_errors($context, array $blocks = array())
 {
     // line 4
     if (twig_length_filter($this->env, isset($context["errors"]) ? $context["errors"] : null) > 0) {
         // line 5
         if ($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "parent", array())) {
             echo "<span class=\"help-block\">";
         } else {
             echo "<div class=\"alert alert-danger\">";
         }
         // line 6
         echo "    <ul class=\"list-unstyled\">";
         // line 7
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["errors"]) ? $context["errors"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
             // line 8
             echo "<p class=\"errormsg text-danger\">";
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["error"], "message", array())), "html", null, true);
             echo "</p>";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 10
         echo "</ul>\n    ";
         // line 11
         if ($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "parent", array())) {
             echo "</span>";
         } else {
             echo "</div>";
         }
     }
 }
 public function block_field_errors($context, array $blocks = array())
 {
     // line 2
     echo "    ";
     ob_start();
     // line 3
     echo "        ";
     if (twig_length_filter($this->env, isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors")) > 0) {
         // line 4
         echo "            <div class=\"span\">\n                ";
         // line 5
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors"));
         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
             // line 6
             echo "                    <span class=\"label label-danger\">";
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute(isset($context["error"]) ? $context["error"] : $this->getContext($context, "error"), "messageTemplate"), $this->getAttribute(isset($context["error"]) ? $context["error"] : $this->getContext($context, "error"), "messageParameters"), "validators"), "html", null, true);
             echo "</span>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 8
         echo "            </div>\n        ";
     }
     // line 10
     echo "    ";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<section class=\"generic";
     if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "section"), "modifiers"))) {
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "section"), "modifiers"));
         foreach ($context['_seq'] as $context["_key"] => $context["modifier"]) {
             echo " ";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "modifier"), "className"), "html", null, true);
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['modifier'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
     }
     echo "\">\n\t";
     // line 2
     if ($this->getAttribute($this->getContext($context, "section"), "header")) {
         // line 3
         echo "\t<header>\n\t\t";
         // line 4
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "section"), "header"), "html", null, true);
         echo "\t\n\t</header>\n\t";
     }
     // line 7
     echo "\t";
     if ($this->getAttribute($this->getContext($context, "section"), "body")) {
         // line 8
         echo "\t";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "section"), "body"), "html", null, true);
         echo "\n\t";
     }
     // line 10
     echo "</section>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<tr>\n    <td>Запрашиваетcя поддержка в точке</td>\n    <td style=\"color: #44562a\">";
     // line 3
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : null, "attendance", array()), "full_path", array()), "html", null, true);
     echo "</td>\n</tr>\n\n<tr>\n    <td>Запрос создал</td>\n    <td>\n        ";
     // line 9
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : null, "owner", array()), "login", array()), "html", null, true);
     echo "\n        <br>";
     // line 10
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : null, "owner", array()), "fio", array()), "html", null, true);
     echo ", ";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["request"]) ? $context["request"] : null, "owner", array()), "phone", array()), "html", null, true);
     echo ",\n    </td>\n</tr>\n<tr>\n    <td>Сообщение от пользователя</td>\n    <td>\n        ";
     // line 16
     if (twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "user_message", array()))) {
         // line 17
         echo "            ";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : null, "user_message", array()), "html", null, true);
         echo "\n        ";
     } else {
         // line 19
         echo "            -\n        ";
     }
     // line 21
     echo "    </td>\n</tr>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_609386912737fdeb5c19cfac95533ac6c6640a08b133bbc9c2f1005150fa4bd7 = $this->env->getExtension("native_profiler");
     $__internal_609386912737fdeb5c19cfac95533ac6c6640a08b133bbc9c2f1005150fa4bd7->enter($__internal_609386912737fdeb5c19cfac95533ac6c6640a08b133bbc9c2f1005150fa4bd7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "SonataAdminBundle:CRUD:base_inline_edit_field.html.twig"));
     // line 11
     echo "\n<div id=\"sonata-ba-field-container-";
     // line 12
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field_element"]) ? $context["field_element"] : $this->getContext($context, "field_element"), "vars", array()), "id", array()), "html", null, true);
     echo "\" class=\"sonata-ba-field sonata-ba-field-";
     echo twig_escape_filter($this->env, isset($context["edit"]) ? $context["edit"] : $this->getContext($context, "edit"), "html", null, true);
     echo "-";
     echo twig_escape_filter($this->env, isset($context["inline"]) ? $context["inline"] : $this->getContext($context, "inline"), "html", null, true);
     echo " ";
     if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field_element"]) ? $context["field_element"] : $this->getContext($context, "field_element"), "vars", array()), "errors", array()))) {
         echo "sonata-ba-field-error";
     }
     echo "\">\n\n    ";
     // line 14
     $this->displayBlock('label', $context, $blocks);
     // line 24
     echo "\n    ";
     // line 25
     $this->displayBlock('field', $context, $blocks);
     // line 26
     echo "\n    <div class=\"sonata-ba-field-error-messages\">\n        ";
     // line 28
     $this->displayBlock('errors', $context, $blocks);
     // line 29
     echo "    </div>\n</div>\n";
     $__internal_609386912737fdeb5c19cfac95533ac6c6640a08b133bbc9c2f1005150fa4bd7->leave($__internal_609386912737fdeb5c19cfac95533ac6c6640a08b133bbc9c2f1005150fa4bd7_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549 = $this->env->getExtension("native_profiler");
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549->enter($__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@WebProfiler/Profiler/base_js.html.twig"));
     // line 1
     echo "<script>/*<![CDATA[*/\n    Sfjs = (function() {\n        \"use strict\";\n\n        var noop = function() {},\n\n            collectionToArray = function (collection) {\n                var length = collection.length || 0,\n                    results = new Array(length);\n\n                while (length--) {\n                    results[length] = collection[length];\n                }\n\n                return results;\n            },\n\n            profilerStorageKey = 'sf2/profiler/',\n\n            request = function(url, onSuccess, onError, payload, options) {\n                var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n                options = options || {};\n                options.maxTries = options.maxTries || 0;\n                xhr.open(options.method || 'GET', url, true);\n                xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n                xhr.onreadystatechange = function(state) {\n                    if (4 !== xhr.readyState) {\n                        return null;\n                    }\n\n                    if (xhr.status == 404 && options.maxTries > 1) {\n                        setTimeout(function(){\n                            options.maxTries--;\n                            request(url, onSuccess, onError, payload, options);\n                        }, 500);\n\n                        return null;\n                    }\n\n                    if (200 === xhr.status) {\n                        (onSuccess || noop)(xhr);\n                    } else {\n                        (onError || noop)(xhr);\n                    }\n                };\n                xhr.send(payload || '');\n            },\n\n            hasClass = function(el, klass) {\n                return el.className && el.className.match(new RegExp('\\\\b' + klass + '\\\\b'));\n            },\n\n            removeClass = function(el, klass) {\n                if (el.className) {\n                    el.className = el.className.replace(new RegExp('\\\\b' + klass + '\\\\b'), ' ');\n                }\n            },\n\n            addClass = function(el, klass) {\n                if (!hasClass(el, klass)) {\n                    el.className += \" \" + klass;\n                }\n            },\n\n            getPreference = function(name) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                return localStorage.getItem(profilerStorageKey + name);\n            },\n\n            setPreference = function(name, value) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                localStorage.setItem(profilerStorageKey + name, value);\n            },\n\n            requestStack = [],\n\n            renderAjaxRequests = function() {\n                var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n                if (!requestCounter.length) {\n                    return;\n                }\n\n                var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n                var state = 'ok';\n                if (tbodies.length) {\n                    var tbody = tbodies[0];\n\n                    var rows = document.createDocumentFragment();\n\n                    if (requestStack.length) {\n                        for (var i = 0; i < requestStack.length; i++) {\n                            var request = requestStack[i];\n\n                            var row = document.createElement('tr');\n                            rows.appendChild(row);\n\n                            var methodCell = document.createElement('td');\n                            if (request.error) {\n                                methodCell.className = 'sf-ajax-request-error';\n                            }\n                            methodCell.textContent = request.method;\n                            row.appendChild(methodCell);\n\n                            var pathCell = document.createElement('td');\n                            pathCell.className = 'sf-ajax-request-url';\n                            if ('GET' === request.method) {\n                                var pathLink = document.createElement('a');\n                                pathLink.setAttribute('href', request.url);\n                                pathLink.textContent = request.url;\n                                pathCell.appendChild(pathLink);\n                            } else {\n                                pathCell.textContent = request.url;\n                            }\n                            pathCell.setAttribute('title', request.url);\n                            row.appendChild(pathCell);\n\n                            var durationCell = document.createElement('td');\n                            durationCell.className = 'sf-ajax-request-duration';\n\n                            if (request.duration) {\n                                durationCell.textContent = request.duration + \"ms\";\n                            } else {\n                                durationCell.textContent = '-';\n                            }\n                            row.appendChild(durationCell);\n\n                            row.appendChild(document.createTextNode(' '));\n                            var profilerCell = document.createElement('td');\n\n                            if (request.profilerUrl) {\n                                var profilerLink = document.createElement('a');\n                                profilerLink.setAttribute('href', request.profilerUrl);\n                                profilerLink.textContent = request.profile;\n                                profilerCell.appendChild(profilerLink);\n                            } else {\n                                profilerCell.textContent = 'n/a';\n                            }\n\n                            row.appendChild(profilerCell);\n\n                            var requestState = 'ok';\n                            if (request.error) {\n                                requestState = 'error';\n                                if (state != \"loading\" && i > requestStack.length - 4) {\n                                    state = 'error';\n                                }\n                            } else if (request.loading) {\n                                requestState = 'loading';\n                                state = 'loading';\n                            }\n                            row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n                        }\n\n                        var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n                        var children = collectionToArray(tbody.children);\n                        for (var i = 0; i < children.length; i++) {\n                            tbody.removeChild(children[i]);\n                        }\n                        tbody.appendChild(rows);\n\n                        if (infoSpan) {\n                            var text = requestStack.length + ' call' + (requestStack.length > 1 ? 's' : '');\n                            infoSpan.textContent = text;\n                        }\n                    } else {\n                        var cell = document.createElement('td');\n                        cell.setAttribute('colspan', '4');\n                        cell.textContent = \"No AJAX requests yet.\";\n                        var row = document.createElement('tr');\n                        row.appendChild(cell);\n                        tbody.appendChild(row);\n                    }\n                }\n\n                requestCounter[0].textContent = requestStack.length;\n\n                var className = 'sf-toolbar-ajax-requests sf-toolbar-status';\n                if (state == 'ok') {\n                    className += ' sf-toolbar-status-green';\n                } else if (state == 'error') {\n                    className += ' sf-toolbar-status-red';\n                } else {\n                    className += ' sf-ajax-request-loading';\n                }\n\n                requestCounter[0].className = className;\n            };\n\n        var addEventListener;\n\n        var el = document.createElement('div');\n        if (!'addEventListener' in el) {\n            addEventListener = function (element, eventName, callback) {\n                element.attachEvent('on' + eventName, callback);\n            };\n        } else {\n            addEventListener = function (element, eventName, callback) {\n                element.addEventListener(eventName, callback, false);\n            };\n        }\n\n        ";
     // line 208
     if (array_key_exists("excluded_ajax_paths", $context)) {
         // line 209
         echo "            if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n                var proxied = XMLHttpRequest.prototype.open;\n\n                XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n                    var self = this;\n\n                    /* prevent logging AJAX calls to static and inline files, like templates */\n                    var path = url;\n                    if (url.substr(0, 1) === '/') {\n                        if (0 === url.indexOf('";
         // line 218
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                            path = url.substr(";
         // line 219
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                        }\n                    }\n                    else if (0 === url.indexOf('";
         // line 222
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                        path = url.substr(";
         // line 223
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                    }\n\n                    if (path.substr(0, 1) === '/' && !path.match(new RegExp(";
         // line 226
         echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths"));
         echo "))) {\n                        var stackElement = {\n                            loading: true,\n                            error: false,\n                            url: url,\n                            method: method,\n                            start: new Date()\n                        };\n\n                        requestStack.push(stackElement);\n\n                        this.addEventListener('readystatechange', function() {\n                            if (self.readyState == 4) {\n                                stackElement.duration = new Date() - stackElement.start;\n                                stackElement.loading = false;\n                                stackElement.error = self.status < 200 || self.status >= 400;\n                                stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n                                stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n                                Sfjs.renderAjaxRequests();\n                            }\n                        }, false);\n\n                        Sfjs.renderAjaxRequests();\n                    }\n\n                    proxied.apply(this, Array.prototype.slice.call(arguments));\n                };\n            }\n        ";
     }
     // line 256
     echo "\n        return {\n            hasClass: hasClass,\n\n            removeClass: removeClass,\n\n            addClass: addClass,\n\n            getPreference: getPreference,\n\n            setPreference: setPreference,\n\n            addEventListener: addEventListener,\n\n            request: request,\n\n            renderAjaxRequests: renderAjaxRequests,\n\n            load: function(selector, url, onSuccess, onError, options) {\n                var el = document.getElementById(selector);\n\n                if (el && el.getAttribute('data-sfurl') !== url) {\n                    request(\n                        url,\n                        function(xhr) {\n                            el.innerHTML = xhr.responseText;\n                            el.setAttribute('data-sfurl', url);\n                            removeClass(el, 'loading');\n                            (onSuccess || noop)(xhr, el);\n                        },\n                        function(xhr) { (onError || noop)(xhr, el); },\n                        '',\n                        options\n                    );\n                }\n\n                return this;\n            },\n\n            toggle: function(selector, elOn, elOff) {\n                var tmp = elOn.style.display,\n                    el = document.getElementById(selector);\n\n                elOn.style.display = elOff.style.display;\n                elOff.style.display = tmp;\n\n                if (el) {\n                    el.style.display = 'none' === tmp ? 'none' : 'block';\n                }\n\n                return this;\n            }\n        }\n    })();\n/*]]>*/</script>\n";
     $__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549->leave($__internal_173ad3a50b98e16ee263d504c2c0bfcb6fd12a5e908c76729d1c86f3cc1ec549_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if (isset($context["exception"])) {
         $_exception_ = $context["exception"];
     } else {
         $_exception_ = null;
     }
     if (twig_length_filter($this->env, $this->getAttribute($_exception_, "trace", array()))) {
         // line 2
         if (isset($context["exception"])) {
             $_exception_ = $context["exception"];
         } else {
             $_exception_ = null;
         }
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($_exception_, "trace", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["trace"]) {
             // line 3
             if (isset($context["trace"])) {
                 $_trace_ = $context["trace"];
             } else {
                 $_trace_ = null;
             }
             $this->loadTemplate("TwigBundle:Exception:trace.txt.twig", "TwigBundle:Exception:traces.txt.twig", 3)->display(array("trace" => $_trace_));
             // line 4
             echo "\n";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if (twig_length_filter($this->env, $this->getAttribute(isset($context["loops"]) ? $context["loops"] : null, "quickmod", array()))) {
         // line 2
         echo "<div id=\"quickmod\" class=\"dropdown\">\n  <button class=\"btn btn-default btn-block dropdown-toggle\" type=\"button\" id=\"quickmod-tools\" data-toggle=\"dropdown\" aria-expanded=\"true\">\n   ";
         // line 4
         echo $this->env->getExtension('phpbb')->lang("QUICK_MOD");
         echo "\n    <span class=\"caret\"></span>\n  </button>\n  <ul class=\"dropdown-menu\" role=\"menu\" aria-labelledby=\"quickmod-tools\" style=\"width: 100%;\">\n  <!-- <li role=\"presentation\" class=\"dropdown-header\">Dropdown header</li> -->\n    ";
         // line 9
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["loops"]) ? $context["loops"] : null, "quickmod", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["quickmod"]) {
             // line 10
             echo "\t ";
             $value = twig_in_filter($this->getAttribute($context["quickmod"], "VALUE", array()), array(0 => "lock", 1 => "unlock", 2 => "delete_topic", 3 => "restore_topic", 4 => "make_normal", 5 => "make_sticky", 6 => "make_announce", 7 => "make_global"));
             $context['definition']->set('QUICKMOD_AJAX', $value);
             // line 11
             echo "\t <li role=\"presentation\"><a role=\"menuitem\" tabindex=\"-1\" href=\"";
             echo $this->getAttribute($context["quickmod"], "LINK", array());
             echo "\"";
             if ($this->getAttribute(isset($context["definition"]) ? $context["definition"] : null, "QUICKMOD_AJAX", array())) {
                 echo " data-ajax=\"true\" data-refresh=\"true\"";
             }
             echo ">";
             echo $this->getAttribute($context["quickmod"], "TITLE", array());
             echo "</a></li>\n\t";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['quickmod'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 13
         echo "  </ul>\n</div>\t\t\n";
     }
 }
 public function block_body($context, array $blocks = array())
 {
     $__internal_cc60a2d3ad91da3774514c1bbcc438202ae776283c0d56c7e7c094b65fc32627 = $this->env->getExtension("native_profiler");
     $__internal_cc60a2d3ad91da3774514c1bbcc438202ae776283c0d56c7e7c094b65fc32627->enter($__internal_cc60a2d3ad91da3774514c1bbcc438202ae776283c0d56c7e7c094b65fc32627_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 9
     if (twig_length_filter($this->env, isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities")) > 0) {
         // line 10
         echo "\n        ";
         // line 11
         $context["lotissements"] = isset($context["entities"]) ? $context["entities"] : $this->getContext($context, "entities");
         // line 12
         echo "        ";
         $this->loadTemplate("@LaisoArm/Lotissement/includes/list_lotissement.html.twig", "LaisoArmBundle:Lotissement:index.html.twig", 12)->display($context);
         // line 13
         echo "\n        ";
         // line 14
         $this->loadTemplate("LaisoArmBundle:Shared:paginator.html.twig", "LaisoArmBundle:Lotissement:index.html.twig", 14)->display($context);
         // line 15
         echo "\n        <a class=\"ajax-button button primary\" href=\"";
         // line 16
         echo $this->env->getExtension('routing')->getPath("dao_new");
         echo "\">\n            Créer un nouvel appel d'offre\n        </a>\n    ";
     } else {
         // line 20
         echo "        <div class=\"laiso-bordered margin10 no-margin-left no-margin-right no-margin-bottom padding10 align-center bg-grayLighter\">\n            <h3>Aucun appel d'offre.</h3>\n\n            <a class=\"ajax-button button primary\" href=\"";
         // line 23
         echo $this->env->getExtension('routing')->getPath("dao_new");
         echo "\">\n                Créer un nouvel appel d'offre\n            </a>\n        </div>\n    ";
     }
     $__internal_cc60a2d3ad91da3774514c1bbcc438202ae776283c0d56c7e7c094b65fc32627->leave($__internal_cc60a2d3ad91da3774514c1bbcc438202ae776283c0d56c7e7c094b65fc32627_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "Periodo:\n";
     // line 2
     if (twig_length_filter($this->env, isset($context["Listado_Years"]) ? $context["Listado_Years"] : $this->getContext($context, "Listado_Years")) > 0) {
         // line 3
         echo "        <select id=\"Years\"  style=\"width: 100%\" class=\"form-control\">\n\n            ";
         // line 5
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["Listado_Years"]) ? $context["Listado_Years"] : $this->getContext($context, "Listado_Years"));
         foreach ($context['_seq'] as $context["_key"] => $context["t"]) {
             // line 6
             echo "                <option value=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["t"]) ? $context["t"] : $this->getContext($context, "t"), "periodoTrabajo"), "html", null, true);
             echo "\">\n                    ";
             // line 7
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["t"]) ? $context["t"] : $this->getContext($context, "t"), "periodoTrabajo"), "html", null, true);
             echo "\n                </option>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['t'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 10
         echo "        </select>\n";
     } else {
         // line 12
         echo "\n    <select id=\"Years\"  style=\"width: 100%\" class=\"form-control\">\n        <option value=\"0\">No hay datos a mostrar</option>\n    </select>\n\n";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<ul class=\"archives\">\n\n";
     // line 3
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["archives_data"]) ? $context["archives_data"] : null);
     foreach ($context['_seq'] as $context["month"] => $context["items"]) {
         // line 4
         echo "    <li>\n    \t<a href=\"";
         // line 5
         echo isset($context["base_url"]) ? $context["base_url"] : null;
         echo "/archives_month";
         echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array());
         echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_date_format_filter($this->env, $context["month"], "M_Y")), "url");
         echo "\">\n        <span class=\"archive_date\">";
         // line 6
         echo $context["month"];
         echo "</span>\n        </a>";
         // line 7
         if (isset($context["archives_show_count"]) ? $context["archives_show_count"] : null) {
             echo "<span class=\"label\"> ( ";
             echo twig_length_filter($this->env, $context["items"]);
             echo " )</span>\n        ";
         }
         // line 9
         echo "    </li>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['month'], $context['items'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 11
     echo "</ul>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 11
     echo "\n<div id=\"sonata-ba-field-container-";
     // line 12
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field_element"]) ? $context["field_element"] : $this->getContext($context, "field_element"), "vars", array()), "id", array()), "html", null, true);
     echo "\" class=\"sonata-ba-field sonata-ba-field-";
     echo twig_escape_filter($this->env, isset($context["edit"]) ? $context["edit"] : $this->getContext($context, "edit"), "html", null, true);
     echo "-";
     echo twig_escape_filter($this->env, isset($context["inline"]) ? $context["inline"] : $this->getContext($context, "inline"), "html", null, true);
     echo " ";
     if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field_element"]) ? $context["field_element"] : $this->getContext($context, "field_element"), "vars", array()), "errors", array()))) {
         echo "sonata-ba-field-error";
     }
     echo "\">\n\n    ";
     // line 14
     $this->displayBlock('label', $context, $blocks);
     // line 24
     echo "\n    ";
     // line 25
     $this->displayBlock('field', $context, $blocks);
     // line 26
     echo "\n    <div class=\"sonata-ba-field-error-messages\">\n        ";
     // line 28
     $this->displayBlock('errors', $context, $blocks);
     // line 29
     echo "    </div>\n</div>\n";
 }
 public function block_content_header($context, array $blocks = array())
 {
     // line 10
     echo "    <div class=\"type\">Index</div>\n\n    ";
     // line 12
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(range("A", "Z"));
     foreach ($context['_seq'] as $context["_key"] => $context["letter"]) {
         // line 13
         echo "        ";
         if ($this->getAttribute(isset($context["items"]) ? $context["items"] : null, isset($context["letter"]) ? $context["letter"] : $this->getContext($context, "letter"), array(), "array", true, true) && twig_length_filter($this->env, $this->getAttribute(isset($context["items"]) ? $context["items"] : $this->getContext($context, "items"), isset($context["letter"]) ? $context["letter"] : $this->getContext($context, "letter"), array(), "array")) > 1) {
             // line 14
             echo "            <a href=\"#letter";
             echo twig_escape_filter($this->env, isset($context["letter"]) ? $context["letter"] : $this->getContext($context, "letter"), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, isset($context["letter"]) ? $context["letter"] : $this->getContext($context, "letter"), "html", null, true);
             echo "</a>\n        ";
         } else {
             // line 16
             echo "            ";
             echo twig_escape_filter($this->env, isset($context["letter"]) ? $context["letter"] : $this->getContext($context, "letter"), "html", null, true);
             echo "\n        ";
         }
         // line 18
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['letter'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 public function block_form_errors($context, array $blocks = array())
 {
     // line 24
     echo "    ";
     ob_start();
     // line 25
     echo "        ";
     if (twig_length_filter($this->env, isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors")) > 0) {
         // line 26
         echo "            <ul>\n                ";
         // line 27
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["errors"]) ? $context["errors"] : $this->getContext($context, "errors"));
         foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
             // line 28
             echo "                    <li>";
             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans($this->getAttribute($context["error"], "messageTemplate", array())), "html", null, true);
             echo "</li>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 30
         echo "            </ul>\n        ";
     }
     // line 32
     echo "    ";
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 public function block_pagewrapper($context, array $blocks = array())
 {
     // line 3
     echo "        \n\n<div id=\"pagewrapper\">\n            <div class=\"row\">\n                <div class=\"col-lg-10\">\n                    <h1 class=\"page-header\">Notifications</h1>\n                </div>\n                  <div class=\"col-lg-2\">\n                <img src=\"";
     // line 11
     echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl("img/logo.PNG"), "html", null, true);
     echo "\">   \n            </div>\n                <!-- /.col-lg-12 -->\n            </div>\n            <!-- /.row -->\n            <div class=\"row\">\n                <div class=\"col-lg-6\">\n                    ";
     // line 18
     if (twig_length_filter($this->env, isset($context["prests"]) ? $context["prests"] : $this->getContext($context, "prests")) != 0) {
         // line 19
         echo "                    <div class=\"panel panel-danger\">\n                        <div class=\"panel-heading\">\n                           Notification Prestataire\n                        </div>\n                        <!-- /.panel-heading -->\n                        <div class=\"panel-body\">\n                            \n                           <div class=\"alert alert-warning\">\n                                Il ya ";
         // line 27
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["prests"]) ? $context["prests"] : $this->getContext($context, "prests")), "html", null, true);
         echo " Prestataire a valider .\n                            \n                            </div>\n                             <a href=\"prest_a_Valider\" class=\"btn btn-warning btn-lg btn-block\">Valider Prestataire</a>  \n                            \n                        </div>\n                        <!-- .panel-body -->\n                    </div>\n                                ";
     } else {
         // line 36
         echo "                                    <div class=\"panel panel-primary\">\n                        <div class=\"panel-heading\">\n                           Notification Prestataire\n                        </div>\n                        <!-- /.panel-heading -->\n                        <div class=\"panel-body\">\n                             \n                            \n                                <div class=\"alert alert-success\">\n                                Il ya aucun prestataire a valider .\n                                </div>\n                             \n                            \n                        </div>\n                        <!-- .panel-body -->\n                    </div>\n                                ";
     }
     // line 53
     echo "                    <!-- /.panel -->\n                </div>\n                <!-- /.col-lg-6 -->\n                <div class=\"col-lg-6\">\n                     ";
     // line 57
     if (twig_length_filter($this->env, isset($context["deals"]) ? $context["deals"] : $this->getContext($context, "deals")) != 0) {
         // line 58
         echo "                    <div class=\"panel panel-danger\">\n                        <div class=\"panel-heading\">\n                           Notification Deal\n                        </div>\n                        <!-- /.panel-heading -->\n                        <div class=\"panel-body\">\n                            \n                           <div class=\"alert alert-warning\">\n                                Il ya ";
         // line 66
         echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["deals"]) ? $context["deals"] : $this->getContext($context, "deals")), "html", null, true);
         echo " Deal a valider .\n                            \n                            </div>\n                             <a href=\"deal_a_Valider\" class=\"btn btn-warning btn-lg btn-block\">Valider Deal</a>  \n                            \n                        </div>\n                        <!-- .panel-body -->\n                    </div>\n                                ";
     } else {
         // line 75
         echo "                                    <div class=\"panel panel-primary\">\n                        <div class=\"panel-heading\">\n                           Notification Deal\n                        </div>\n                        <!-- /.panel-heading -->\n                        <div class=\"panel-body\">\n                             \n                            \n                                <div class=\"alert alert-success\">\n                                Il ya aucun Deal a valider .\n                                </div>\n                             \n                            \n                        </div>\n                        <!-- .panel-body -->\n                    </div>\n                                ";
     }
     // line 92
     echo "                    <!-- /.panel -->\n                </div>\n                <!-- /.col-lg-6 -->\n            </div>\n           \n            <!-- /.row -->\n        </div>\n\n    <!-- /#page-wrapper -->\n    ";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34 = $this->env->getExtension("native_profiler");
     $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34->enter($__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "WebProfilerBundle:Profiler:base_js.html.twig"));
     // line 1
     echo "<script>/*<![CDATA[*/\n    ";
     // line 5
     echo "\n    Sfjs = (function() {\n        \"use strict\";\n\n        var classListIsSupported = 'classList' in document.documentElement;\n\n        if (classListIsSupported) {\n            var hasClass = function (el, cssClass) { return el.classList.contains(cssClass); };\n            var removeClass = function(el, cssClass) { el.classList.remove(cssClass); };\n            var addClass = function(el, cssClass) { el.classList.add(cssClass); };\n            var toggleClass = function(el, cssClass) { el.classList.toggle(cssClass); };\n        } else {\n            var hasClass = function (el, cssClass) { return el.className.match(new RegExp('\\\\b' + cssClass + '\\\\b')); };\n            var removeClass = function(el, cssClass) { el.className = el.className.replace(new RegExp('\\\\b' + cssClass + '\\\\b'), ' '); };\n            var addClass = function(el, cssClass) { if (!hasClass(el, cssClass)) { el.className += \" \" + cssClass; } };\n            var toggleClass = function(el, cssClass) { hasClass(el, cssClass) ? removeClass(el, cssClass) : addClass(el, cssClass); };\n        }\n\n        var noop = function() {},\n\n            collectionToArray = function (collection) {\n                var length = collection.length || 0,\n                    results = new Array(length);\n\n                while (length--) {\n                    results[length] = collection[length];\n                }\n\n                return results;\n            },\n\n            profilerStorageKey = 'sf2/profiler/',\n\n            request = function(url, onSuccess, onError, payload, options) {\n                var xhr = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject('Microsoft.XMLHTTP');\n                options = options || {};\n                options.maxTries = options.maxTries || 0;\n                xhr.open(options.method || 'GET', url, true);\n                xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');\n                xhr.onreadystatechange = function(state) {\n                    if (4 !== xhr.readyState) {\n                        return null;\n                    }\n\n                    if (xhr.status == 404 && options.maxTries > 1) {\n                        setTimeout(function(){\n                            options.maxTries--;\n                            request(url, onSuccess, onError, payload, options);\n                        }, 500);\n\n                        return null;\n                    }\n\n                    if (200 === xhr.status) {\n                        (onSuccess || noop)(xhr);\n                    } else {\n                        (onError || noop)(xhr);\n                    }\n                };\n                xhr.send(payload || '');\n            },\n\n            getPreference = function(name) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                return localStorage.getItem(profilerStorageKey + name);\n            },\n\n            setPreference = function(name, value) {\n                if (!window.localStorage) {\n                    return null;\n                }\n\n                localStorage.setItem(profilerStorageKey + name, value);\n            },\n\n            requestStack = [],\n\n            renderAjaxRequests = function() {\n                var requestCounter = document.querySelectorAll('.sf-toolbar-ajax-requests');\n                if (!requestCounter.length) {\n                    return;\n                }\n\n                var ajaxToolbarPanel = document.querySelector('.sf-toolbar-block-ajax');\n                var tbodies = document.querySelectorAll('.sf-toolbar-ajax-request-list');\n                var state = 'ok';\n                if (tbodies.length) {\n                    var tbody = tbodies[0];\n\n                    var rows = document.createDocumentFragment();\n\n                    if (requestStack.length) {\n                        for (var i = 0; i < requestStack.length; i++) {\n                            var request = requestStack[i];\n\n                            var row = document.createElement('tr');\n                            rows.appendChild(row);\n\n                            var methodCell = document.createElement('td');\n                            if (request.error) {\n                                methodCell.className = 'sf-ajax-request-error';\n                            }\n                            methodCell.textContent = request.method;\n                            row.appendChild(methodCell);\n\n                            var pathCell = document.createElement('td');\n                            pathCell.className = 'sf-ajax-request-url';\n                            if ('GET' === request.method) {\n                                var pathLink = document.createElement('a');\n                                pathLink.setAttribute('href', request.url);\n                                pathLink.textContent = request.url;\n                                pathCell.appendChild(pathLink);\n                            } else {\n                                pathCell.textContent = request.url;\n                            }\n                            pathCell.setAttribute('title', request.url);\n                            row.appendChild(pathCell);\n\n                            var durationCell = document.createElement('td');\n                            durationCell.className = 'sf-ajax-request-duration';\n\n                            if (request.duration) {\n                                durationCell.textContent = request.duration + \"ms\";\n                            } else {\n                                durationCell.textContent = '-';\n                            }\n                            row.appendChild(durationCell);\n\n                            row.appendChild(document.createTextNode(' '));\n                            var profilerCell = document.createElement('td');\n\n                            if (request.profilerUrl) {\n                                var profilerLink = document.createElement('a');\n                                profilerLink.setAttribute('href', request.profilerUrl);\n                                profilerLink.textContent = request.profile;\n                                profilerCell.appendChild(profilerLink);\n                            } else {\n                                profilerCell.textContent = 'n/a';\n                            }\n\n                            row.appendChild(profilerCell);\n\n                            var requestState = 'ok';\n                            if (request.error) {\n                                requestState = 'error';\n                                if (state != \"loading\" && i > requestStack.length - 4) {\n                                    state = 'error';\n                                }\n                            } else if (request.loading) {\n                                requestState = 'loading';\n                                state = 'loading';\n                            }\n                            row.className = 'sf-ajax-request sf-ajax-request-' + requestState;\n                        }\n\n                        var infoSpan = document.querySelectorAll(\".sf-toolbar-ajax-info\")[0];\n                        var children = collectionToArray(tbody.children);\n                        for (var i = 0; i < children.length; i++) {\n                            tbody.removeChild(children[i]);\n                        }\n                        tbody.appendChild(rows);\n\n                        if (infoSpan) {\n                            var text = requestStack.length + ' AJAX request' + (requestStack.length > 1 ? 's' : '');\n                            infoSpan.textContent = text;\n                        }\n\n                        ajaxToolbarPanel.style.display = 'block';\n                    } else {\n                        ajaxToolbarPanel.style.display = 'none';\n                    }\n                }\n\n                requestCounter[0].textContent = requestStack.length;\n\n                var className = 'sf-toolbar-ajax-requests sf-toolbar-value';\n                requestCounter[0].className = className;\n\n                if (state == 'ok') {\n                    Sfjs.removeClass(ajaxToolbarPanel, 'sf-ajax-request-loading');\n                    Sfjs.removeClass(ajaxToolbarPanel, 'sf-toolbar-status-red');\n                } else if (state == 'error') {\n                    Sfjs.addClass(ajaxToolbarPanel, 'sf-toolbar-status-red');\n                } else {\n                    Sfjs.addClass(ajaxToolbarPanel, 'sf-ajax-request-loading');\n                }\n            };\n\n        var addEventListener;\n\n        var el = document.createElement('div');\n        if (!'addEventListener' in el) {\n            addEventListener = function (element, eventName, callback) {\n                element.attachEvent('on' + eventName, callback);\n            };\n        } else {\n            addEventListener = function (element, eventName, callback) {\n                element.addEventListener(eventName, callback, false);\n            };\n        }\n\n        ";
     // line 209
     if (array_key_exists("excluded_ajax_paths", $context)) {
         // line 210
         echo "            if (window.XMLHttpRequest && XMLHttpRequest.prototype.addEventListener) {\n                var proxied = XMLHttpRequest.prototype.open;\n\n                XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {\n                    var self = this;\n\n                    /* prevent logging AJAX calls to static and inline files, like templates */\n                    var path = url;\n                    if (url.substr(0, 1) === '/') {\n                        if (0 === url.indexOf('";
         // line 219
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                            path = url.substr(";
         // line 220
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                        }\n                    }\n                    else if (0 === url.indexOf('";
         // line 223
         echo twig_escape_filter($this->env, twig_escape_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array()), "js"), "html", null, true);
         echo "')) {\n                        path = url.substr(";
         // line 224
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "schemeAndHttpHost", array()) . $this->getAttribute(isset($context["request"]) ? $context["request"] : $this->getContext($context, "request"), "basePath", array())), "html", null, true);
         echo ");\n                    }\n\n                    if (path.substr(0, 1) === '/' && !path.match(new RegExp(";
         // line 227
         echo twig_jsonencode_filter(isset($context["excluded_ajax_paths"]) ? $context["excluded_ajax_paths"] : $this->getContext($context, "excluded_ajax_paths"));
         echo "))) {\n                        var stackElement = {\n                            loading: true,\n                            error: false,\n                            url: url,\n                            method: method,\n                            start: new Date()\n                        };\n\n                        requestStack.push(stackElement);\n\n                        this.addEventListener('readystatechange', function() {\n                            if (self.readyState == 4) {\n                                stackElement.duration = new Date() - stackElement.start;\n                                stackElement.loading = false;\n                                stackElement.error = self.status < 200 || self.status >= 400;\n                                stackElement.profile = self.getResponseHeader(\"X-Debug-Token\");\n                                stackElement.profilerUrl = self.getResponseHeader(\"X-Debug-Token-Link\");\n\n                                Sfjs.renderAjaxRequests();\n                            }\n                        }, false);\n\n                        Sfjs.renderAjaxRequests();\n                    }\n\n                    proxied.apply(this, Array.prototype.slice.call(arguments));\n                };\n            }\n        ";
     }
     // line 257
     echo "\n        return {\n            hasClass: hasClass,\n\n            removeClass: removeClass,\n\n            addClass: addClass,\n\n            toggleClass: toggleClass,\n\n            getPreference: getPreference,\n\n            setPreference: setPreference,\n\n            addEventListener: addEventListener,\n\n            request: request,\n\n            renderAjaxRequests: renderAjaxRequests,\n\n            load: function(selector, url, onSuccess, onError, options) {\n                var el = document.getElementById(selector);\n\n                if (el && el.getAttribute('data-sfurl') !== url) {\n                    request(\n                        url,\n                        function(xhr) {\n                            el.innerHTML = xhr.responseText;\n                            el.setAttribute('data-sfurl', url);\n                            removeClass(el, 'loading');\n                            (onSuccess || noop)(xhr, el);\n                        },\n                        function(xhr) { (onError || noop)(xhr, el); },\n                        '',\n                        options\n                    );\n                }\n\n                return this;\n            },\n\n            toggle: function(selector, elOn, elOff) {\n                var tmp = elOn.style.display,\n                    el = document.getElementById(selector);\n\n                elOn.style.display = elOff.style.display;\n                elOff.style.display = tmp;\n\n                if (el) {\n                    el.style.display = 'none' === tmp ? 'none' : 'block';\n                }\n\n                return this;\n            },\n\n            createTabs: function() {\n                var tabGroups = document.querySelectorAll('.sf-tabs');\n\n                /* create the tab navigation for each group of tabs */\n                for (var i = 0; i < tabGroups.length; i++) {\n                    var tabs = tabGroups[i].querySelectorAll('.tab');\n                    var tabNavigation = document.createElement('ul');\n                    tabNavigation.className = 'tab-navigation';\n\n                    for (var j = 0; j < tabs.length; j++) {\n                        var tabId = 'tab-' + i + '-' + j;\n                        var tabTitle = tabs[j].querySelector('.tab-title').innerHTML;\n\n                        var tabNavigationItem = document.createElement('li');\n                        tabNavigationItem.setAttribute('data-tab-id', tabId);\n                        if (j == 0) { Sfjs.addClass(tabNavigationItem, 'active'); }\n                        if (Sfjs.hasClass(tabs[j], 'disabled')) { Sfjs.addClass(tabNavigationItem, 'disabled'); }\n                        tabNavigationItem.innerHTML = tabTitle;\n                        tabNavigation.appendChild(tabNavigationItem);\n\n                        var tabContent = tabs[j].querySelector('.tab-content');\n                        tabContent.parentElement.setAttribute('id', tabId);\n                    }\n\n                    tabGroups[i].insertBefore(tabNavigation, tabGroups[i].firstChild);\n                }\n\n                /* display the active tab and add the 'click' event listeners */\n                for (i = 0; i < tabGroups.length; i++) {\n                    tabNavigation = tabGroups[i].querySelectorAll('.tab-navigation li');\n\n                    for (j = 0; j < tabNavigation.length; j++) {\n                        tabId = tabNavigation[j].getAttribute('data-tab-id');\n                        document.getElementById(tabId).querySelector('.tab-title').className = 'hidden';\n\n                        if (Sfjs.hasClass(tabNavigation[j], 'active')) {\n                            document.getElementById(tabId).className = 'block';\n                        } else {\n                            document.getElementById(tabId).className = 'hidden';\n                        }\n\n                        tabNavigation[j].addEventListener('click', function(e) {\n                            var activeTab = e.target || e.srcElement;\n\n                            /* needed because when the tab contains HTML contents, user can click */\n                            /* on any of those elements instead of their parent '<li>' element */\n                            while (activeTab.tagName.toLowerCase() !== 'li') {\n                                activeTab = activeTab.parentNode;\n                            }\n\n                            /* get the full list of tabs through the parent of the active tab element */\n                            var tabNavigation = activeTab.parentNode.children;\n                            for (var k = 0; k < tabNavigation.length; k++) {\n                                var tabId = tabNavigation[k].getAttribute('data-tab-id');\n                                document.getElementById(tabId).className = 'hidden';\n                                Sfjs.removeClass(tabNavigation[k], 'active');\n                            }\n\n                            Sfjs.addClass(activeTab, 'active');\n                            var activeTabId = activeTab.getAttribute('data-tab-id');\n                            document.getElementById(activeTabId).className = 'block';\n                        });\n                    }\n                }\n            },\n\n            createToggles: function() {\n                var toggles = document.querySelectorAll('.sf-toggle');\n\n                for (var i = 0; i < toggles.length; i++) {\n                    var elementSelector = toggles[i].getAttribute('data-toggle-selector');\n                    var element = document.querySelector(elementSelector);\n\n                    Sfjs.addClass(element, 'sf-toggle-content');\n\n                    if (toggles[i].hasAttribute('data-toggle-initial') && toggles[i].getAttribute('data-toggle-initial') == 'display') {\n                        Sfjs.addClass(element, 'sf-toggle-visible');\n                    } else {\n                        Sfjs.addClass(element, 'sf-toggle-hidden');\n                    }\n\n                    Sfjs.addEventListener(toggles[i], 'click', function(e) {\n                        e.preventDefault();\n\n                        var toggle = e.target || e.srcElement;\n\n                        /* needed because when the toggle contains HTML contents, user can click */\n                        /* on any of those elements instead of their parent '.sf-toggle' element */\n                        while (!Sfjs.hasClass(toggle, 'sf-toggle')) {\n                            toggle = toggle.parentNode;\n                        }\n\n                        var element = document.querySelector(toggle.getAttribute('data-toggle-selector'));\n\n                        Sfjs.toggleClass(element, 'sf-toggle-hidden');\n                        Sfjs.toggleClass(element, 'sf-toggle-visible');\n\n                        /* the toggle doesn't change its contents when clicking on it */\n                        if (!toggle.hasAttribute('data-toggle-alt-content')) {\n                            return;\n                        }\n\n                        if (!toggle.hasAttribute('data-toggle-original-content')) {\n                            toggle.setAttribute('data-toggle-original-content', toggle.innerHTML);\n                        }\n\n                        var currentContent = toggle.innerHTML;\n                        var originalContent = toggle.getAttribute('data-toggle-original-content');\n                        var altContent = toggle.getAttribute('data-toggle-alt-content');\n                        toggle.innerHTML = currentContent !== altContent ? altContent : originalContent;\n                    });\n                }\n            }\n        };\n    })();\n\n    Sfjs.addEventListener(window, 'load', function() {\n        Sfjs.createTabs();\n        Sfjs.createToggles();\n    });\n\n/*]]>*/</script>\n";
     $__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34->leave($__internal_b3a06b7d0e322b7e3a01f7ab3182288c77c6940258883e2ae9f5f2edc60fec34_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div id=\"notificationContainer\">\n    ";
     // line 2
     if (twig_length_filter($this->env, $this->getContext($context, "notifications"))) {
         // line 3
         echo "        ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getContext($context, "notifications"));
         foreach ($context['_seq'] as $context["notificationId"] => $context["n"]) {
             // line 4
             echo "\n            ";
             // line 5
             echo call_user_func_array($this->env->getFilter('notification')->getCallable(), array($this->getAttribute($this->getContext($context, "n"), "message"), array("id" => $this->getContext($context, "notificationId"), "type" => $this->getAttribute($this->getContext($context, "n"), "type"), "title" => $this->getAttribute($this->getContext($context, "n"), "title"), "noclear" => $this->getAttribute($this->getContext($context, "n"), "hasNoClear"), "context" => $this->getAttribute($this->getContext($context, "n"), "context"), "raw" => $this->getAttribute($this->getContext($context, "n"), "raw")), false));
             echo "\n\n        ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['notificationId'], $context['n'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 8
         echo "    ";
     }
     // line 9
     echo "</div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if (isset($context["tabs"]) ? $context["tabs"] : null) {
         if (twig_length_filter($this->env, isset($context["tabs"]) ? $context["tabs"] : null) > 1) {
             // line 2
             echo "    <h2 class=\"nav-tab-wrapper\">\n        ";
             // line 3
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["tabs"]) ? $context["tabs"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["tab"]) {
                 // line 4
                 echo "            <a href=\"?page=";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["tab"]) ? $context["tab"] : null, "settings"), "subpage_slug"), "html", null, true);
                 echo "&tab=";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["tab"]) ? $context["tab"] : null, "settings"), "slug"), "html", null, true);
                 echo "\" class=\"nav-tab ";
                 if ((isset($context["active_tab"]) ? $context["active_tab"] : null) == $this->getAttribute($this->getAttribute(isset($context["tab"]) ? $context["tab"] : null, "settings"), "slug")) {
                     echo "nav-tab-active";
                 }
                 echo "\">\n                ";
                 // line 5
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["tab"]) ? $context["tab"] : null, "settings"), "title"), "html", null, true);
                 echo "\n            </a>\n        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tab'], $context['_parent'], $context['loop']);
             $context = array_merge($_parent, array_intersect_key($context, $_parent));
             // line 8
             echo "    </h2>\n";
         }
     }
 }
 public function block_content($context, array $blocks = array())
 {
     // line 2
     echo "\n<div id=\"spot\" class=\"videodetail\">\n  <!-- overlay -->\n  <div class=\"overlayz\"></div>\n  <!-- lightbulb -->\n  <div class=\"togglelight\" title=\"click to toggle the lights mode\">\n    <i class=\"fa fa-lightbulb-o\"></i>\n  </div>\n\n  <!-- video -->\n";
     // line 12
     if (twig_length_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "urlLink", array())) > 0) {
         // line 13
         echo "  <iframe style=\"margin-top:3%\" src=\"https://www.youtube.com/embed/";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "urlLink", array()), "html", null, true);
         echo "?list=UUaQm6lX79kQ25DJGAn0cFwg\" frameborder=\"0\" allowfullscreen></iframe>\n";
     } elseif (twig_length_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "urlLink2", array())) > 0) {
         // line 15
         echo "    <iframe style=\"margin-top:3%\" src=\"http://www.dailymotion.com/embed/video/";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "urlLink2", array()), "html", null, true);
         echo "\" frameborder=\"0\" allowfullscreen></iframe>\n";
     } elseif (twig_length_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "urlLink3", array())) > 0) {
         // line 17
         echo "    <iframe style=\"margin-top:3%\" src=\"https://player.vimeo.com/video/";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "urlLink3", array()), "html", null, true);
         echo "\" frameborder=\"0\" allowfullscreen></iframe>\n";
     } elseif (twig_length_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "urlLink4", array())) > 0) {
         // line 19
         echo "    <iframe style=\"margin-top:3%\" src=\"https://www.youtube.com/embed/";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "urlLink4", array()), "html", null, true);
         echo "\" frameborder=\"0\" allowfullscreen></iframe>\n";
     }
     // line 21
     echo "  <center>\n    <div style=\"max-width:75%;min-width:50%;margin-top:5%;\" class=\"info\">\n      <h1 style=\"margin-top:0px;\">";
     // line 23
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "title", array()), "html", null, true);
     echo "</h1> ";
     echo $this->getAttribute(isset($context["detail"]) ? $context["detail"] : $this->getContext($context, "detail"), "description", array());
     echo "\n\n      <hr class=\"clear\">\n    </div>\n  </center>\n\n</div>\n<script>\n  /* show/hide overlay & toggle style of button */\n  \$('.togglelight').click(function() {\n    \$(this).toggleClass('lightsoff');\n    \$('.overlayz').fadeToggle(400);\n  });\n\n  /* set video volume to 25% */\n  \$('video')[0].volume = 0.15;\n\n  /* \n   * tested with:\n   * chrome 31 and Firefox 23 @ Win 7\n   *\n   */\n</script>\n\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 11
     echo "\n";
     // line 12
     if ($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "list", array()), "has", array(0 => "batch"), "method") && !$this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array()), "isXmlHttpRequest", array())) {
         // line 13
         echo "    <td class=\"sonata-ba-list-field sonata-ba-list-field-batch\">\n        ";
         // line 14
         echo $this->env->getExtension('sonata_admin')->renderListElement(isset($context["object"]) ? $context["object"] : null, $this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "list", array()), "batch", array(), "array"));
         echo "\n    </td>\n";
     }
     // line 17
     echo "\n<td class=\"sonata-ba-list-field sonata-ba-list-field-inline-fields\" colspan=\"";
     // line 18
     echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "list", array()), "elements", array())) - ($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "list", array()), "has", array(0 => "_action"), "method") + $this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "list", array()), "has", array(0 => "batch"), "method")), "html", null, true);
     echo "\" objectId=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "id", array(0 => isset($context["object"]) ? $context["object"] : null), "method"), "html", null, true);
     echo "\">\n    ";
     // line 19
     $this->displayBlock('row', $context, $blocks);
     // line 20
     echo "</td>\n\n";
     // line 22
     if ($this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "list", array()), "has", array(0 => "_action"), "method") && !$this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "request", array()), "isXmlHttpRequest", array())) {
         // line 23
         echo "    <td class=\"sonata-ba-list-field sonata-ba-list-field-_action\" objectId=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "id", array(0 => isset($context["object"]) ? $context["object"] : null), "method"), "html", null, true);
         echo "\">\n        ";
         // line 24
         echo $this->env->getExtension('sonata_admin')->renderListElement(isset($context["object"]) ? $context["object"] : null, $this->getAttribute($this->getAttribute(isset($context["admin"]) ? $context["admin"] : null, "list", array()), "_action", array(), "array"));
         echo "\n    </td>\n";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"ui-confirm\" id=\"installPluginByUpload\">\n    <h2>";
     // line 2
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CorePluginsAdmin_TeaserExtendPiwikByUpload")), "html", null, true);
     echo "</h2>\n\n    <p class=\"description\"> ";
     // line 4
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CorePluginsAdmin_AllowedUploadFormats")), "html", null, true);
     echo " </p>\n\n    <form enctype=\"multipart/form-data\"\n          method=\"post\"\n          id=\"uploadPluginForm\"\n          action=\"";
     // line 9
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), array(array("action" => "uploadPlugin", "nonce" => isset($context["installNonce"]) ? $context["installNonce"] : $this->getContext($context, "installNonce")))), "html", null, true);
     echo "\">\n        <input type=\"file\" name=\"pluginZip\">\n        <br />\n        <input class=\"startUpload\" type=\"submit\" value=\"";
     // line 12
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CorePluginsAdmin_UploadZipFile")), "html", null, true);
     echo "\">\n    </form>\n</div>\n\n<div class=\"sort\">\n    <a href=\"";
     // line 17
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), array(array("sort" => "popular", "query" => ""))), "html", null, true);
     echo "\" ";
     if ("popular" == (isset($context["sort"]) ? $context["sort"] : $this->getContext($context, "sort"))) {
         echo "class=\"active\"";
     }
     echo ">";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CorePluginsAdmin_SortByPopular")), "html", null, true);
     echo "</a>\n    |\n    <a href=\"";
     // line 19
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), array(array("sort" => "newest", "query" => ""))), "html", null, true);
     echo "\" ";
     if ("newest" == (isset($context["sort"]) ? $context["sort"] : $this->getContext($context, "sort"))) {
         echo "class=\"active\"";
     }
     echo ">";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CorePluginsAdmin_SortByNewest")), "html", null, true);
     echo "</a>\n    |\n    <a href=\"";
     // line 21
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), array(array("sort" => "alpha", "query" => ""))), "html", null, true);
     echo "\" ";
     if ("alpha" == (isset($context["sort"]) ? $context["sort"] : $this->getContext($context, "sort"))) {
         echo "class=\"active\"";
     }
     echo ">";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("CorePluginsAdmin_SortByAlpha")), "html", null, true);
     echo "</a>\n    |\n    <form action=\"";
     // line 23
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('linkTo')->getCallable(), array(array("sort" => ""))), "html", null, true);
     echo "\" method=\"POST\">\n        <input value=\"";
     // line 24
     echo twig_escape_filter($this->env, isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "html", null, true);
     echo "\" placeholder=\"";
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Search")), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, twig_length_filter($this->env, isset($context["plugins"]) ? $context["plugins"] : $this->getContext($context, "plugins")), "html", null, true);
     echo " ";
     echo twig_escape_filter($this->env, lcfirst(call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Plugins"))), "html", null, true);
     echo "...\" type=\"text\" name=\"query\"/>\n        <button type=\"submit\">";
     // line 25
     echo twig_escape_filter($this->env, call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_Search")), "html", null, true);
     echo "</button>\n    </form>\n</div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<style>\n    body {\n        /*background-color: #cff4cb;*/\n        font: \"Georgia\", \"Times New Roman\", serif;\n        font-size: 14px;\n    }\n\n    .mail-table {\n        width: 100%;\n        margin: 0 auto;\n        /*border-left: 1px solid #1B2024;*/\n        background-color: #FFFFFF;\n    }\n\n    .mail-table td {\n        padding: 10px;\n        font-size: 16px;\n        font-family: verdana, arial, helvetica, sans-serif;\n        color: #1B2024;\n    }\n\n    .alt {\n        background-color: #F0F0F0;\n    }\n\n    .code-connect-font {\n        font-family: \"lucida console\", monospace;\n        font-size: 18px;\n        font-weight: bold;\n        color: #FF5346;\n    }\n\n    .table-head td {\n        font-family: \"lucida console\", monospace;\n        background-color: #81AA21;\n        color: #242222 !important;\n    }\n</style>\n<body>\n\n<table class=\"mail-table\">\n\n    <tr>\n        <td colspan=\"2\">\n            <img src=\"";
     // line 45
     echo twig_escape_filter($this->env, isset($context["http_path"]) ? $context["http_path"] : null, "html", null, true);
     echo "images/vkslogo120.png\">\n        </td>\n    </tr>\n    <tr class=\"table-head\">\n        <td colspan=\"2\">\n            <h2>Ваша ВКС #";
     // line 50
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "id", array()), "html", null, true);
     echo " успешно создана</h2>\n        </td>\n    </tr>\n    <tr >\n        <td width=\"30%\">\n            Параметр\n        </td>\n        <td>\n            Значение\n        </td>\n    </tr>\n    <tr>\n        <td>Название</td>\n        <td>";
     // line 63
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "title", array()), "html", null, true);
     echo "</td>\n    </tr>\n    <tr >\n        <td>Вирт. комната (код подключения)</td>\n        <td>\n            ";
     // line 68
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "connectionCode", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["code"]) {
         // line 69
         echo "                <p>\n                <span class=\"code-connect-font\">";
         // line 70
         echo twig_escape_filter($this->env, $this->getAttribute($context["code"], "value", array()), "html", null, true);
         echo "\n                    ";
         // line 71
         if (twig_length_filter($this->env, $this->getAttribute($context["code"], "tip", array()))) {
             // line 72
             echo "                        (";
             echo twig_escape_filter($this->env, $this->getAttribute($context["code"], "tip", array()), "html", null, true);
             echo ")\n                    ";
         }
         // line 74
         echo "                    </span>\n                </p>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['code'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 77
     echo "        </td>\n\n\n    </tr>\n    <tr >\n        <td>Дата начала:</td>\n        <td>";
     // line 83
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "humanized", array()), "date", array()), "html", null, true);
     echo "</td>\n    </tr>\n    <tr>\n        <td>Время:</td>\n        <td>";
     // line 87
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "humanized", array()), "startTime", array()), "html", null, true);
     echo "-";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "humanized", array()), "endTime", array()), "html", null, true);
     echo "</td>\n    </tr>\n\n    <tr>\n        <td>Участники\n            <span class=\"badge\">";
     // line 92
     echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "inside_parp", array())) + $this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "in_place_participants_count", array()), "html", null, true);
     echo "</span>\n        </td>\n        <td class=\"small-td\">\n            C рабочих мест (IP телефон, Lynс, CMA Desktop и т.д.): ";
     // line 95
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "in_place_participants_count", array()), "html", null, true);
     echo "\n\n        </td>\n    </tr>\n\n    <tr>\n        <td>Прямая ссылка на ВКС:</td>\n        <td>";
     // line 102
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["vks"]) ? $context["vks"] : null, "link", array()), "html", null, true);
     echo "</td>\n    </tr>\n\n    <tr>\n        <td colspan=\"2\" align=\"left\"><i>*Сообщение создано в автоматическом режиме</i>\n        </td>\n    </tr>\n    <tr>\n        <td align=\"left\" colspan=\"2\">\n            <a href=\"";
     // line 111
     echo twig_escape_filter($this->env, isset($context["appHttpPath"]) ? $context["appHttpPath"] : null, "html", null, true);
     echo "\">Переход к АС ВКС</a>\n        </td>\n    </tr>\n\n</table>\n</body>";
 }
 public function block_body($context, array $blocks = array())
 {
     $__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c = $this->env->getExtension("native_profiler");
     $__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c->enter($__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "body"));
     // line 3
     echo "    ";
     $this->displayBlock('banner', $context, $blocks);
     // line 26
     echo "\n    <div class=\"container\">\n        <h2 class=\"text-center\">Užsiregistravę meistrai</h2>\n        <hr>\n        <div class=\"row text-center\">\n            ";
     // line 31
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["user"]) ? $context["user"] : $this->getContext($context, "user"));
     foreach ($context['_seq'] as $context["_key"] => $context["userInfo"]) {
         // line 32
         echo "            <div class=\"col-md-3 col-sm-6 worker-box\">\n                <div class=\"thumbnail\">\n                    ";
         // line 34
         $context["runtimeConfig"] = array("thumbnail" => array("size" => array(0 => 240, 1 => 210)));
         // line 35
         echo "                    <img class=\"img-responsive img-rounded\" src=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('liip_imagine')->filter($this->env->getExtension('asset')->getAssetUrl($this->getAttribute($context["userInfo"], "profilePicturePath", array())), "my_thumb", isset($context["runtimeConfig"]) ? $context["runtimeConfig"] : $this->getContext($context, "runtimeConfig")), "html", null, true);
         echo "\">\n                    <div class=\"worker-content\">\n                        <h2>";
         // line 37
         echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "name", array()), "html", null, true);
         echo "</h2>\n                        <h4>Miestas: ";
         // line 38
         echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "city", array()), "html", null, true);
         echo "</h4>\n                        <p>";
         // line 39
         echo twig_escape_filter($this->env, twig_slice($this->env, $this->getAttribute($context["userInfo"], "description", array()), 0, 140), "html", null, true);
         echo " ";
         if (twig_length_filter($this->env, $this->getAttribute($context["userInfo"], "description", array())) > 150) {
             echo "...";
         }
         echo "</p>\n                    </div>\n                    <div class=\"rateit\"  id=\"";
         // line 41
         echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "id", array()), "html", null, true);
         echo "\">\n                        <p>Vertinimas: ";
         // line 42
         echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "Rating", array()), "html", null, true);
         echo ".  Balsavusiųjų ";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["userInfo"], "userRatings", array()), "count", array()), "html", null, true);
         echo "</p>\n                        Vertinti:\n                    </div>\n                    <ul class=\"list-inline\">\n                        <li><a class=\"btn btn-primary\" href=\"";
         // line 46
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("worker_info", array("name" => $this->getAttribute($context["userInfo"], "name", array()))), "html", null, true);
         echo "\" role=\"button\">Registruotis &raquo;</a></li>\n                        <li><a class=\"btn btn-primary messageModal\"  href=\"#\" userId=\"";
         // line 47
         echo twig_escape_filter($this->env, $this->getAttribute($context["userInfo"], "id", array()), "html", null, true);
         echo "\" role=\"button\">Susisiekti &raquo;</a></li>\n                    </ul>\n                </div>\n            </div>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['userInfo'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 52
     echo "        </div>\n    </div>\n        <hr>\n\n    ";
     // line 56
     $this->displayBlock('modals', $context, $blocks);
     $__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c->leave($__internal_04968b4ed1b08b263b23d9238c96c80194bd1be73d78a5f6bf3076f2771e6e2c_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<section class=\"g-grid submenu-selector\">\n    ";
     // line 2
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["item"]) ? $context["item"] : null, "groups", array()));
     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
         $length = count($context['_seq']);
         $context['loop']['revindex0'] = $length - 1;
         $context['loop']['revindex'] = $length;
         $context['loop']['length'] = $length;
         $context['loop']['last'] = 1 === $length;
     }
     foreach ($context['_seq'] as $context["group"] => $context["children"]) {
         // line 3
         echo "        ";
         $context["width"] = twig_number_format_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "columnWidth", array(0 => $context["group"]), "method"), 1);
         // line 4
         echo "        ";
         $context["special"] = array_key_exists("column", $context) && $context["group"] == (isset($context["column"]) ? $context["column"] : null);
         // line 5
         echo "        ";
         $context["target"] = "list-" . $context["group"];
         // line 6
         echo "        <div class=\"g-block\" data-mm-id=\"";
         echo twig_escape_filter($this->env, isset($context["target"]) ? $context["target"] : null);
         echo "\" style=\"flex: 0 1 ";
         echo twig_escape_filter($this->env, twig_round(isset($context["width"]) ? $context["width"] : null, 1), "html", null, true);
         echo "%\">\n            <div class=\"submenu-column\">\n                ";
         // line 8
         $this->loadTemplate("menu/list.html.twig", "@gantry-admin/menu/columns.html.twig", 8)->display(array_merge($context, array("item" => isset($context["special"]) ? $context["special"] : null ? isset($context["override"]) ? $context["override"] : null : (isset($context["item"]) ? $context["item"] : null), "group" => $context["group"])));
         // line 9
         echo "                ";
         $context["size"] = twig_length_filter($this->env, $this->getAttribute(isset($context["item"]) ? $context["item"] : null, "groups", array()));
         // line 10
         echo "            </div>\n            <div class=\"submenu-ratio\">\n                <span class=\"percentage\"><input type=\"text\" class=\"column-pc\" value=\"";
         // line 12
         echo twig_escape_filter($this->env, twig_round(isset($context["width"]) ? $context["width"] : null, 1), "html", null, true);
         echo "\" tabindex=\"";
         echo twig_escape_filter($this->env, $context["group"] + 1, "html", null, true);
         echo "\" min=\"5\" max=\"95\" />%</span>\n            </div>\n        </div>\n    ";
         ++$context['loop']['index0'];
         ++$context['loop']['index'];
         $context['loop']['first'] = false;
         if (isset($context['loop']['length'])) {
             --$context['loop']['revindex0'];
             --$context['loop']['revindex'];
             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['group'], $context['children'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 16
     echo "</section>\n<span class=\"fa fa-plus add-column\"></span>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"communication_list_count\">\n    ";
     // line 2
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["pagination"]) ? $context["pagination"] : null, "getTotalItemCount", array()), "html", null, true);
     echo " communication(s) trouvée(s)\n</div>\n\n";
     // line 11
     echo "\n<div class=\"communication_list_pagination\">\n    ";
     // line 13
     echo $this->env->getExtension('knp_pagination')->render(isset($context["pagination"]) ? $context["pagination"] : null);
     echo "\n</div>\n\n";
     // line 16
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["pagination"]) ? $context["pagination"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["communication"]) {
         // line 17
         echo "    <div class=\"communication_item\" >\n        <table>\n            <tr>\n                <td valign=\"top\">\n\n                    <div class=\"communication_user_and_date\" >\n                        <div class=\"communication_user_image\" >\n                            ";
         // line 27
         echo "                            <a href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("aet_annuaire_communication_view", array("id" => $this->getAttribute($context["communication"], "id", array()))), "html", null, true);
         echo "\">\n                                <img\n                                  src=\"";
         // line 29
         echo twig_escape_filter($this->env, $this->env->getExtension('assets')->getAssetUrl($this->getAttribute($this->getAttribute($context["communication"], "image", array()), "webPath", array())), "html", null, true);
         echo "\"\n                                  alt=\"";
         // line 30
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "image", array()), "alt", array()), "html", null, true);
         echo "\"\n                                />\n                            </a>\n                        </div>\n                        <div class=\"communication_user_name\"><i>Par ";
         // line 34
         echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "user", array()), "firstName", array())), "html", null, true);
         echo " ";
         echo twig_escape_filter($this->env, twig_upper_filter($this->env, $this->getAttribute($this->getAttribute($context["communication"], "user", array()), "lastName", array())), "html", null, true);
         echo "</i></div>\n                        <div class=\"communication_date\"><i>Le ";
         // line 35
         echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["communication"], "date", array()), "d/m/Y"), "html", null, true);
         echo "</i></div>\n                    </div>\n\n                </td>\n                <td valign=\"top\">\n                    <div class=\"communication_title\" >\n                        <a href=\"";
         // line 41
         echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("aet_annuaire_communication_view", array("id" => $this->getAttribute($context["communication"], "id", array()))), "html", null, true);
         echo "\">";
         echo twig_length_filter($this->env, $this->getAttribute($context["communication"], "title", array())) > 80 ? twig_slice($this->env, $this->getAttribute($context["communication"], "title", array()), 0, 80) . "..." : $this->getAttribute($context["communication"], "title", array());
         echo "</a>\n                    </div>\n                    <div class=\"communication_body\" >\n                        ";
         // line 45
         echo "                        ";
         echo twig_escape_filter($this->env, $this->getAttribute($context["communication"], "shortDesc", array()), "html", null, true);
         echo "\n                    </div>\n                </td>\n            </tr>\n\n\n        </table>\n    </div>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['communication'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 54
     echo "\n";
     // line 56
     echo "<div class=\"communication_list_pagination\">\n    ";
     // line 57
     echo $this->env->getExtension('knp_pagination')->render(isset($context["pagination"]) ? $context["pagination"] : null);
     echo "\n</div>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     if (twig_length_filter($this->env, isset($context["available_views"]) ? $context["available_views"] : null) > 1) {
         // line 2
         echo "\t<div class=\"ai1ec-views-dropdown ai1ec-btn-group ai1ec-pull-right\">\n\t\t<a class=\"ai1ec-btn ai1ec-btn-sm ai1ec-btn-default ai1ec-dropdown-toggle\"\n\t\t\tdata-toggle=\"ai1ec-dropdown\">\n\t\t\t<i class=\"ai1ec-icon-";
         // line 5
         echo twig_escape_filter($this->env, isset($context["current_view"]) ? $context["current_view"] : null, "html", null, true);
         echo " ai1ec-view-icon ai1ec-tooltip-trigger\"\n\t\t\t\ttitle=\"";
         // line 6
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["view_names"]) ? $context["view_names"] : null, isset($context["current_view"]) ? $context["current_view"] : null, array(), "array"), "html_attr");
         echo "\"\n\t\t\t\tdata-placement=\"left\"></i>\n\t\t\t<span class=\"ai1ec-hidden-xs ai1ec-hidden-sm\">\n\t\t\t\t";
         // line 9
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["view_names"]) ? $context["view_names"] : null, isset($context["current_view"]) ? $context["current_view"] : null, array(), "array"), "html", null, true);
         echo "\n\t\t\t</span>\n\t\t\t<span class=\"ai1ec-caret\"></span>\n\t\t</a>\n\t\t<div class=\"ai1ec-dropdown-menu\">\n\t\t\t";
         // line 14
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["available_views"]) ? $context["available_views"] : null);
         foreach ($context['_seq'] as $context["key"] => $context["args"]) {
             // line 15
             echo "\t\t\t\t<div class=\"";
             if ((isset($context["key"]) ? $context["key"] : null) == (isset($context["current_view"]) ? $context["current_view"] : null)) {
                 echo "ai1ec-active";
             }
             echo "\"\n\t\t\t\t\tdata-action=\"";
             // line 16
             echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
             echo "\">\n\t\t\t\t\t<a id=\"ai1ec-view-";
             // line 17
             echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
             echo "\"\n\t\t\t\t\t\t";
             // line 18
             echo isset($context["data_type"]) ? $context["data_type"] : null;
             echo "\n\t\t\t\t\t\tclass=\"ai1ec-load-view ";
             // line 19
             echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
             echo "\"\n\t\t\t\t\t\thref=\"";
             // line 20
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["available_views"]) ? $context["available_views"] : null, isset($context["key"]) ? $context["key"] : null, array(), "array"), "href"), "html", null, true);
             echo "\">\n\t\t\t\t\t\t<i class=\"ai1ec-icon-";
             // line 21
             echo twig_escape_filter($this->env, isset($context["key"]) ? $context["key"] : null, "html", null, true);
             echo " ai1ec-view-icon ai1ec-tooltip-trigger\"\n\t\t\t\t\t\t\ttitle=\"";
             // line 22
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["view_names"]) ? $context["view_names"] : null, isset($context["key"]) ? $context["key"] : null, array(), "array"), "html_attr");
             echo "\"\n\t\t\t\t\t\t\tdata-placement=\"left\"></i>\n\t\t\t\t\t\t<span class=\"ai1ec-hidden-xs ai1ec-hidden-sm\">\n\t\t\t\t\t\t\t";
             // line 25
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["available_views"]) ? $context["available_views"] : null, isset($context["key"]) ? $context["key"] : null, array(), "array"), "desc"), "html", null, true);
             echo "\n\t\t\t\t\t\t</span>\n\t\t\t\t\t</a>\n\t\t\t\t</div>\n\t\t\t";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['key'], $context['args'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 30
         echo "\t\t</div>\n\t</div>\n";
     }
 }
 public function block_options($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $this->displayParentBlock("options", $context, $blocks);
     echo "\n    ";
     // line 5
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "menu", array()), "getGroupedItems", array(), "method"));
     foreach ($context['_seq'] as $context["group"] => $context["items"]) {
         // line 6
         echo "        ";
         if (twig_length_filter($this->env, $context["items"])) {
             // line 7
             echo "        <optgroup label=\"";
             echo twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, $context["group"]), "html", null, true);
             echo "\">\n        ";
             // line 8
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($context["items"]);
             foreach ($context['_seq'] as $context["key"] => $context["item"]) {
                 // line 9
                 echo "        <option\n                ";
                 // line 11
                 echo "                ";
                 if ($context["key"] == (isset($context["value"]) ? $context["value"] : null)) {
                     echo "selected=\"selected\"";
                 }
                 // line 12
                 echo "                value=\"";
                 echo twig_escape_filter($this->env, $context["key"]);
                 echo "\"\n                ";
                 // line 14
                 echo "                ";
                 if (twig_in_filter($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array()), "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
                     echo "disabled=\"disabled\"";
                 }
                 // line 15
                 echo "                >";
                 echo $this->getAttribute($context["item"], "spacing", array());
                 echo twig_escape_filter($this->env, $this->getAttribute($context["item"], "label", array()));
                 echo "</option>\n        ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 17
             echo "        </optgroup>\n        ";
         }
         // line 19
         echo "    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['group'], $context['items'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 public function block_content($context, array $blocks = array())
 {
     $__internal_d6b79d91488c33bd22e456121fa2fe87ed61b416757599c9ce10a8847f4694eb = $this->env->getExtension("native_profiler");
     $__internal_d6b79d91488c33bd22e456121fa2fe87ed61b416757599c9ce10a8847f4694eb->enter($__internal_d6b79d91488c33bd22e456121fa2fe87ed61b416757599c9ce10a8847f4694eb_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "content"));
     // line 22
     echo "    <div class=\"sonata-ba-delete\">\n        <h1>";
     // line 23
     echo $this->env->getExtension('translator')->getTranslator()->trans("title_batch_confirmation", array("%action%" => isset($context["action_label"]) ? $context["action_label"] : $this->getContext($context, "action_label")), "SonataAdminBundle");
     echo "</h1>\n\n        ";
     // line 25
     if ($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "all_elements", array())) {
         // line 26
         echo "            ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("message_batch_all_confirmation", array(), "SonataAdminBundle"), "html", null, true);
         echo "\n        ";
     } else {
         // line 28
         echo "            ";
         echo $this->env->getExtension('translator')->getTranslator()->transChoice("message_batch_confirmation", twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "idx", array())), array("%count%" => twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "idx", array()))), "SonataAdminBundle");
         // line 29
         echo "        ";
     }
     // line 30
     echo "\n        <div class=\"well well-small form-actions\">\n            <form action=\"";
     // line 32
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "generateUrl", array(0 => "batch", 1 => array("filter" => $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "filterParameters", array()))), "method"), "html", null, true);
     echo "\" method=\"POST\" >\n                <input type=\"hidden\" name=\"confirmation\" value=\"ok\">\n                <input type=\"hidden\" name=\"data\" value=\"";
     // line 34
     echo twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data")), "html", null, true);
     echo "\">\n                <input type=\"hidden\" name=\"_sonata_csrf_token\" value=\"";
     // line 35
     echo twig_escape_filter($this->env, isset($context["csrf_token"]) ? $context["csrf_token"] : $this->getContext($context, "csrf_token"), "html", null, true);
     echo "\">\n\n                <div style=\"display: none\">\n                    ";
     // line 38
     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), 'rest');
     echo "\n                </div>\n\n                <button type=\"submit\" class=\"btn btn-danger\">";
     // line 41
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("btn_execute_batch_action", array(), "SonataAdminBundle"), "html", null, true);
     echo "</button>\n\n                ";
     // line 43
     if ($this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "hasRoute", array(0 => "list"), "method") && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "isGranted", array(0 => "LIST"), "method")) {
         // line 44
         echo "                    ";
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("delete_or", array(), "SonataAdminBundle"), "html", null, true);
         echo "\n\n                    <a class=\"btn btn-success\" href=\"";
         // line 46
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "generateUrl", array(0 => "list"), "method"), "html", null, true);
         echo "\">\n                        <i class=\"glyphicon glyphicon-th-list\"></i> ";
         // line 47
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("link_action_list", array(), "SonataAdminBundle"), "html", null, true);
         echo "\n                    </a>\n                ";
     }
     // line 50
     echo "            </form>\n        </div>\n    </div>\n";
     $__internal_d6b79d91488c33bd22e456121fa2fe87ed61b416757599c9ce10a8847f4694eb->leave($__internal_d6b79d91488c33bd22e456121fa2fe87ed61b416757599c9ce10a8847f4694eb_prof);
 }