protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<ul class=\"g-bookmark-folders fa-ul\">\n    ";
     // line 2
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["folder"]) ? $context["folder"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["bookmarkFolder"]) {
         // line 3
         echo "        <li data-folder=\"";
         echo twig_escape_filter($this->env, twig_jsonencode_filter($context["bookmarkFolder"]), "html_attr");
         echo "\"";
         echo twig_in_filter($this->getAttribute($context["bookmarkFolder"], "pathname", array()), isset($context["active"]) ? $context["active"] : null) ? " class=\"active\"" : "";
         echo "><i class=\"fa-li fa fa-folder-o\"></i> <span class=\"path\" title=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($context["bookmarkFolder"], "filename", array()), "html", null, true);
         echo "\">";
         echo twig_escape_filter($this->env, $this->getAttribute($context["bookmarkFolder"], "filename", array()), "html", null, true);
         echo "</span></li>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['bookmarkFolder'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 5
     echo "</ul>\n";
 }
 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";
     }
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<li class=\"ai1ec-dropdown ai1ec-tag-filter\n\t";
     // line 2
     if (!twig_test_empty(isset($context["selected_tag_ids"]) ? $context["selected_tag_ids"] : null)) {
         echo "ai1ec-active";
     }
     echo "\">\n\t<a class=\"ai1ec-dropdown-toggle\" data-toggle=\"ai1ec-dropdown\">\n\t\t<i class=\"ai1ec-fa ai1ec-fa-tags\"></i>\n\t\t<span class=\"ai1ec-clear-filter ai1ec-tooltip-trigger\"\n\t\t\tdata-href=\"";
     // line 6
     echo twig_escape_filter($this->env, isset($context["clear_filter"]) ? $context["clear_filter"] : null, "html", null, true);
     echo "\"\n\t\t\t";
     // line 7
     echo isset($context["data_type"]) ? $context["data_type"] : null;
     echo "\n\t\t\ttitle=\"";
     // line 8
     echo twig_escape_filter($this->env, isset($context["text_clear_tag_filter"]) ? $context["text_clear_tag_filter"] : null, "html", null, true);
     echo "\">\n\t\t\t<i class=\"ai1ec-fa ai1ec-fa-times-circle\"></i>\n\t\t</span>\n\t\t";
     // line 11
     echo twig_escape_filter($this->env, isset($context["text_tags"]) ? $context["text_tags"] : null, "html", null, true);
     echo "\n\t\t<span class=\"ai1ec-caret\"></span>\n\t</a>\n\t<div class=\"ai1ec-dropdown-menu\">\n\t\t";
     // line 15
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["tags"]) ? $context["tags"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["term"]) {
         // line 16
         echo "\t\t\t<span data-term=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), "html", null, true);
         echo "\"\n\t\t\t\t";
         // line 17
         if (twig_in_filter($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), isset($context["selected_tag_ids"]) ? $context["selected_tag_ids"] : null)) {
             // line 18
             echo "\t\t\t\t\tclass=\"ai1ec-active\"\n\t\t\t\t";
         }
         // line 19
         echo ">\n\t\t\t\t<a class=\"ai1ec-load-view ai1ec-tag\"\n\t\t\t\t\t";
         // line 21
         if (!twig_test_empty($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"))) {
             // line 22
             echo "\t\t\t\t\t\ttitle=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"), "html_attr");
             echo "\"\n\t\t\t\t\t";
         }
         // line 24
         echo "\t\t\t\t\t";
         echo isset($context["data_type"]) ? $context["data_type"] : null;
         echo "\n\t\t\t\t\thref=\"";
         // line 25
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "href"), "html_attr");
         echo "\">\n\t\t\t\t\t";
         // line 26
         echo $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "name");
         echo "\n\t\t\t\t</a>\n\t\t\t</span>\n\t\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['term'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 30
     echo "\t</div>\n</li>\n";
 }
 public function block_input($context, array $blocks = array())
 {
     // line 10
     echo "    <div class=\"form-select-wrapper ";
     echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "size", array());
     echo "\">\n        <select class=\"";
     // line 11
     echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "classes", array());
     echo "\" name=\"";
     echo $this->env->getExtension('GravTwigExtension')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())) . ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array()) ? "[]" : "");
     echo "\"\n                ";
     // line 12
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "autofocus=\"autofocus\"";
     }
     // line 13
     echo "                ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "novalidate", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "novalidate=\"novalidate\"";
     }
     // line 14
     echo "                ";
     if (twig_in_filter($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "required=\"required\"";
     }
     // line 15
     echo "                ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "multiple=\"multiple\"";
     }
     // line 16
     echo "                ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "form", array())) {
         echo "form=\"";
         echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "form", array());
         echo "\"";
     }
     // line 17
     echo "                >\n            ";
     // line 18
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array()));
     foreach ($context['_seq'] as $context["key"] => $context["text"]) {
         // line 19
         echo "            <option ";
         if ($context["key"] == (isset($context["value"]) ? $context["value"] : null) || twig_in_filter($context["text"], isset($context["value"]) ? $context["value"] : null)) {
             echo "selected=\"selected\"";
         }
         echo " value=\"";
         echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "multiple", array()) ? $context["text"] : $context["key"];
         echo "\">";
         echo twig_test_empty($context["key"]) ? $context["text"] : twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", $context["key"]));
         echo "</option>\n            ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 21
     echo "        </select>\n    </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div id=\"menu_buttons\" class=\"well\">\n    ";
     // line 2
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["funcs"]) ? $context["funcs"] : null);
     foreach ($context['_seq'] as $context["key"] => $context["func"]) {
         if ($this->getAttribute($context["func"], "display", array())) {
             // line 3
             echo "        ";
             if (twig_in_filter($context["key"], isset($context["menu_funcs"]) ? $context["menu_funcs"] : null)) {
                 // line 4
                 echo "            <button type=\"button\" class=\"btn btn-primary\"\n                    onclick=\"";
                 // line 5
                 echo twig_escape_filter($this->env, $this->getAttribute($context["func"], "action", array()) . "(\"" . $this->getAttribute(isset($context["menu"]) ? $context["menu"] : null, "url", array()) . "\")", "html", null, true);
                 echo "\">\n                <span class=\"";
                 // line 6
                 echo twig_escape_filter($this->env, $this->getAttribute($context["func"], "icon", array()), "html", null, true);
                 echo "\"></span>&nbsp; ";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["func"], "name", array()), "html", null, true);
                 echo "\n            </button>\n        ";
             }
             // line 9
             echo "    ";
         }
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['key'], $context['func'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 10
     echo "</div>";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<ul class=\"nav nav-tabs\">\n    <li";
     // line 2
     if ((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")) == "files") {
         echo " class=\"active\"";
     }
     echo "><a href=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("branch", array("repo" => isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "branch" => isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"))), "html", null, true);
     echo "\">Files</a></li>\n    <li";
     // line 3
     if (twig_in_filter(isset($context["page"]) ? $context["page"] : $this->getContext($context, "page"), array(0 => "commits", 1 => "searchcommits"))) {
         echo " class=\"active\"";
     }
     echo "><a href=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("commits", array("repo" => isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "commitishPath" => isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"))), "html", null, true);
     echo "\">Commits</a></li>\n    <li";
     // line 4
     if ((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")) == "stats") {
         echo " class=\"active\"";
     }
     echo "><a href=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("stats", array("repo" => isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "branch" => isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"))), "html", null, true);
     echo "\">Stats</a></li>\n  \t<li";
     // line 5
     if ((isset($context["page"]) ? $context["page"] : $this->getContext($context, "page")) == "network") {
         echo " class=\"active\"";
     }
     echo "><a href=\"";
     echo twig_escape_filter($this->env, $this->env->getExtension('routing')->getPath("network", array("repo" => isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "branch" => isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"))), "html", null, true);
     echo "\">Network</a></li>\n</ul>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $context = array_merge($this->env->getGlobals(), $context);
     // line 1
     echo "<ol class=\"traces\">\n    ";
     // line 2
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, 'logs'));
     foreach ($context['_seq'] as $context['_key'] => $context['log']) {
         // line 3
         echo "        <li";
         if (twig_in_filter($this->getAttribute($this->getContext($context, 'log'), "priorityName", array(), "any", false), array(0 => "EMERG", 1 => "ERR", 2 => "CRIT", 3 => "ALERT", 4 => "ERROR", 5 => "CRITICAL"))) {
             echo " class=\"error\"";
         }
         echo ">\n            ";
         // line 4
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, 'log'), "message", array(), "any", false), "html");
         echo "\n        </li>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 7
     echo "</ol>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 11
     echo "\n<td class=\"sonata-ba-list-field sonata-ba-list-field-";
     // line 12
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "type", array()), "html", null, true);
     echo "\" objectId=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), "html", null, true);
     echo "\">\n    ";
     // line 13
     $context["route"] = $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "route", array(), "any", false, true), "name", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "route", array(), "any", false, true), "name", array()), null) : null;
     // line 14
     echo "    ";
     $context["action"] = (isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")) == "show" ? "VIEW" : twig_upper_filter($this->env, isset($context["route"]) ? $context["route"] : $this->getContext($context, "route"));
     // line 15
     echo "\n    ";
     // line 16
     if ($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "identifier", array(), "any", true, true) && (isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")) && (isset($context["action"]) ? $context["action"] : $this->getContext($context, "action")) && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "hasRoute", array(0 => isset($context["route"]) ? $context["route"] : $this->getContext($context, "route")), "method") && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "isGranted", array(0 => isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), 1 => twig_in_filter(isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), array(0 => "VIEW", 1 => "EDIT")) ? isset($context["object"]) ? $context["object"] : $this->getContext($context, "object") : null), "method")) {
         // line 23
         echo "        <a class=\"sonata-link-identifier\" href=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "generateObjectUrl", array(0 => isset($context["route"]) ? $context["route"] : $this->getContext($context, "route"), 1 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object"), 2 => $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "route", array()), "parameters", array())), "method"), "html", null, true);
         echo "\">";
         // line 24
         $this->displayBlock('field', $context, $blocks);
         // line 25
         echo "</a>\n    ";
     } else {
         // line 27
         echo "        ";
         $context["isEditable"] = $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : null, "options", array(), "any", false, true), "editable", array(), "any", true, true) && $this->getAttribute($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "options", array()), "editable", array()) && $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "isGranted", array(0 => "EDIT", 1 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method");
         // line 28
         echo "        ";
         $context["xEditableType"] = $this->env->getExtension('sonata_admin')->getXEditableType($this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "type", array()));
         // line 29
         echo "\n        ";
         // line 30
         if ((isset($context["isEditable"]) ? $context["isEditable"] : $this->getContext($context, "isEditable")) && (isset($context["xEditableType"]) ? $context["xEditableType"] : $this->getContext($context, "xEditableType"))) {
             // line 31
             echo "            ";
             $context["url"] = $this->env->getExtension('routing')->getPath("sonata_admin_set_object_field_value", array("context" => "list", "field" => $this->getAttribute(isset($context["field_description"]) ? $context["field_description"] : $this->getContext($context, "field_description"), "name", array()), "objectId" => $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "id", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method"), "code" => $this->getAttribute(isset($context["admin"]) ? $context["admin"] : $this->getContext($context, "admin"), "code", array(0 => isset($context["object"]) ? $context["object"] : $this->getContext($context, "object")), "method")));
             // line 32
             echo "            <span ";
             $this->displayBlock('field_span_attributes', $context, $blocks);
             echo ">\n                ";
             // line 33
             $this->displayBlock("field", $context, $blocks);
             echo "\n            </span>\n        ";
         } else {
             // line 36
             echo "            ";
             $this->displayBlock("field", $context, $blocks);
             echo "\n        ";
         }
         // line 38
         echo "    ";
     }
     // line 39
     echo "</td>\n";
 }
 public function block_body($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $this->env->loadTemplate("navigation.twig")->display($context);
     // line 5
     echo "\n    <div class=\"container\">\n        <div class=\"row\">\n            <div class=\"span12\">\n                ";
     // line 9
     if (twig_in_filter(isset($context["page"]) ? $context["page"] : $this->getContext($context, "page"), array(0 => "commits", 1 => "searchcommits"))) {
         // line 10
         echo "                <form class=\"form-search pull-right\" action=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request"), "basepath"), "html", null, true);
         echo "/";
         echo twig_escape_filter($this->env, isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "html", null, true);
         echo "/commits/";
         echo twig_escape_filter($this->env, isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"), "html", null, true);
         echo "/search\" method=\"POST\">\n                    <input type=\"text\" name=\"query\" class=\"input-medium search-query\" placeholder=\"Search commits...\" value=\"";
         // line 11
         echo twig_escape_filter($this->env, array_key_exists("query", $context) ? _twig_default_filter(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "") : "", "html", null, true);
         echo "\">\n                </form>\n                ";
     } else {
         // line 14
         echo "                <form class=\"form-search pull-right\" action=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request"), "basepath"), "html", null, true);
         echo "/";
         echo twig_escape_filter($this->env, isset($context["repo"]) ? $context["repo"] : $this->getContext($context, "repo"), "html", null, true);
         echo "/tree/";
         echo twig_escape_filter($this->env, isset($context["branch"]) ? $context["branch"] : $this->getContext($context, "branch"), "html", null, true);
         echo "/search\" method=\"POST\">\n                    <input type=\"text\" name=\"query\" class=\"input-medium search-query\" placeholder=\"Search tree...\" value=\"";
         // line 15
         echo twig_escape_filter($this->env, array_key_exists("query", $context) ? _twig_default_filter(isset($context["query"]) ? $context["query"] : $this->getContext($context, "query"), "") : "", "html", null, true);
         echo "\">\n                </form>\n                ";
     }
     // line 18
     echo "\n                ";
     // line 19
     if (array_key_exists("branches", $context)) {
         // line 20
         echo "                    ";
         $this->env->loadTemplate("branch_menu.twig")->display($context);
         // line 21
         echo "                ";
     }
     // line 22
     echo "\n                ";
     // line 23
     $this->env->loadTemplate("menu.twig")->display($context);
     // line 24
     echo "            </div>\n        </div>\n\n        ";
     // line 27
     $this->displayBlock('content', $context, $blocks);
     // line 28
     echo "\n        ";
     // line 29
     $this->env->loadTemplate("footer.twig")->display($context);
     // line 30
     echo "    </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 3
     $context["start_date"] = twig_in_filter(trim($this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "date", array()), "start", array())), array(0 => "now", 1 => "")) ? call_user_func_array($this->env->getFilter('date')->getCallable(), array("now", "Y")) : twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "date", array()), "start", array()));
     // line 4
     $context["end_date"] = twig_in_filter(trim($this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "date", array()), "end", array())), array(0 => "now", 1 => "")) ? call_user_func_array($this->env->getFilter('date')->getCallable(), array("now", "Y")) : twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["particle"]) ? $context["particle"] : null, "date", array()), "end", array()));
     // line 1
     $this->parent->display($context, array_merge($this->blocks, $blocks));
 }
 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;
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<select class=\"ai1ec-categories-selector ai1ec-select2-multiselect-selector\"\n\tid=\"";
     // line 2
     echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
     echo "\" name=\"";
     echo twig_escape_filter($this->env, isset($context["name"]) ? $context["name"] : null, "html", null, true);
     echo "\"\n\tplaceholder=\"";
     // line 3
     echo twig_escape_filter($this->env, Ai1ec_I18n::__("Categories"), "html_attr");
     echo "\"\n\tdata-placeholder=\"";
     // line 4
     echo twig_escape_filter($this->env, Ai1ec_I18n::__("Categories"), "html_attr");
     echo "\"\n\tmultiple=\"multiple\">\n\t";
     // line 6
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["categories"]) ? $context["categories"] : null);
     foreach ($context['_seq'] as $context["_key"] => $context["term"]) {
         // line 7
         echo "\t\t<option value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), "html", null, true);
         echo "\"\n\t\t\t";
         // line 8
         if (twig_in_filter($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "term_id"), isset($context["selected_cat_ids"]) ? $context["selected_cat_ids"] : null)) {
             // line 9
             echo "      \tselected=\"selected\"\n      ";
         }
         // line 11
         echo "\t\t\t";
         if (!twig_test_empty($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"))) {
             // line 12
             echo "\t\t\t\tdata-description=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "description"), "html_attr");
             echo "\"\n\t\t\t";
         }
         // line 14
         echo "\t\t\t";
         if (!twig_test_empty($this->getAttribute(isset($context["term"]) ? $context["term"] : null, "color"))) {
             // line 15
             echo "\t\t\t\tdata-color=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "color"), "html_attr");
             echo "\"\n\t\t\t";
         }
         // line 17
         echo "\t\t\t>\n\t\t\t";
         // line 18
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["term"]) ? $context["term"] : null, "name"), "html", null, true);
         echo "\n\t\t</option>\n\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['term'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 21
     echo "</select>\n";
 }
 public function block_form_start($context, array $blocks = array())
 {
     // line 2
     ob_start();
     // line 3
     echo "    ";
     $context["method"] = twig_upper_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"));
     // line 4
     echo "    ";
     if (twig_in_filter(isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), array(0 => "GET", 1 => "POST"))) {
         // line 5
         echo "        ";
         $context["form_method"] = isset($context["method"]) ? $context["method"] : $this->getContext($context, "method");
         // line 6
         echo "    ";
     } else {
         // line 7
         echo "        ";
         $context["form_method"] = "POST";
         // line 8
         echo "    ";
     }
     // line 9
     echo "    <form name=\"";
     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : $this->getContext($context, "form"), "vars", array()), "name", array()), "html", null, true);
     echo "\" method=\"";
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")), "html", null, true);
     echo "\" action=\"";
     echo twig_escape_filter($this->env, isset($context["action"]) ? $context["action"] : $this->getContext($context, "action"), "html", null, true);
     echo "\"";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["attr"]) ? $context["attr"] : $this->getContext($context, "attr"));
     foreach ($context['_seq'] as $context["attrname"] => $context["attrvalue"]) {
         echo " ";
         echo twig_escape_filter($this->env, $context["attrname"], "html", null, true);
         echo "=\"";
         echo twig_escape_filter($this->env, $context["attrvalue"], "html", null, true);
         echo "\"";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['attrname'], $context['attrvalue'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     if (isset($context["multipart"]) ? $context["multipart"] : $this->getContext($context, "multipart")) {
         echo " enctype=\"multipart/form-data\"";
     }
     echo " novalidate=\"true\">\n    ";
     // line 10
     if ((isset($context["form_method"]) ? $context["form_method"] : $this->getContext($context, "form_method")) != (isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"))) {
         // line 11
         echo "        <input type=\"hidden\" name=\"_method\" value=\"";
         echo twig_escape_filter($this->env, isset($context["method"]) ? $context["method"] : $this->getContext($context, "method"), "html", null, true);
         echo "\" />\n    ";
     }
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
 public function block_input($context, array $blocks = array())
 {
     // line 10
     echo "        ";
     $context["field"] = twig_array_merge(isset($context["field"]) ? $context["field"] : null, array("style" => "background-color: " . (isset($context["value"]) ? $context["value"] : null), "pattern" => "^#([a-fA-F0-9]{6})|(rgba\\(\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*(0|[1-9]\\d?|1\\d\\d?|2[0-4]\\d|25[0-5])\\s*,\\s*((0.[0-9]+)|[01])\\s*\\))\$"));
     // line 11
     echo "        <div class=\"colorpicker ";
     echo $this->getAttribute($this, "contrast", array(0 => $this->env->getExtension('GantryTwig')->colorContrastFunc(twig_lower_filter($this->env, isset($context["value"]) ? $context["value"] : null))), "method");
     echo "\">\n        <input\n            ";
     // line 14
     echo "            type=\"text\"\n            name=\"";
     // line 15
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
     echo "\"\n            value=\"";
     // line 16
     echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", ")));
     echo "\"\n            ";
     // line 18
     echo "            ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n            ";
     // line 20
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) {
         echo "autocomplete=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()));
         echo "\"";
     }
     // line 21
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "autofocus=\"autofocus\"";
     }
     // line 22
     echo "            ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array(), "any", true, true)) {
         echo "pattern=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "pattern", array()));
         echo "\"";
     }
     // line 23
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "disabled=\"disabled\"";
     }
     // line 24
     echo "            ";
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array(), "any", true, true)) {
         echo "list=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "list", array()));
         echo "\"";
     }
     // line 25
     echo "            />\n            <i class=\"fa fa-tint\"></i>\n        </div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 39
     echo "<div";
     echo twig_drupal_escape_filter($this->env, isset($context["attributes"]) ? $context["attributes"] : null, "html", null, true);
     echo ">\n  ";
     // line 40
     if (twig_in_filter(isset($context["label_display"]) ? $context["label_display"] : null, array(0 => "before", 1 => "invisible"))) {
         // line 41
         echo "    ";
         echo twig_drupal_escape_filter($this->env, isset($context["label"]) ? $context["label"] : null, "html", null, true);
         echo "\n  ";
     }
     // line 43
     echo "  ";
     if (!twig_test_empty(isset($context["prefix"]) ? $context["prefix"] : null)) {
         // line 44
         echo "    <span class=\"field-prefix\">";
         echo twig_drupal_escape_filter($this->env, isset($context["prefix"]) ? $context["prefix"] : null, "html", null, true);
         echo "</span>\n  ";
     }
     // line 46
     echo "  ";
     echo twig_drupal_escape_filter($this->env, isset($context["children"]) ? $context["children"] : null, "html", null, true);
     echo "\n  ";
     // line 47
     if (!twig_test_empty(isset($context["suffix"]) ? $context["suffix"] : null)) {
         // line 48
         echo "    <span class=\"field-suffix\">";
         echo twig_drupal_escape_filter($this->env, isset($context["suffix"]) ? $context["suffix"] : null, "html", null, true);
         echo "</span>\n  ";
     }
     // line 50
     echo "  ";
     if ((isset($context["label_display"]) ? $context["label_display"] : null) == "after") {
         // line 51
         echo "    ";
         echo twig_drupal_escape_filter($this->env, isset($context["label"]) ? $context["label"] : null, "html", null, true);
         echo "\n  ";
     }
     // line 53
     echo "  ";
     if ($this->getAttribute(isset($context["description"]) ? $context["description"] : null, "content")) {
         // line 54
         echo "    <div";
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["description"]) ? $context["description"] : null, "attributes"), "html", null, true);
         echo ">\n      ";
         // line 55
         echo twig_drupal_escape_filter($this->env, $this->getAttribute(isset($context["description"]) ? $context["description"] : null, "content"), "html", null, true);
         echo "\n    </div>\n  ";
     }
     // line 58
     echo "</div>\n";
 }
 public function block_input($context, array $blocks = array())
 {
     // line 16
     echo "    ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array()));
     foreach ($context['_seq'] as $context["key"] => $context["text"]) {
         // line 17
         echo "\n        ";
         // line 18
         $context["id"] = ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "id", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "id", array()), $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())) : $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())) . "-" . $context["key"];
         // line 19
         echo "        ";
         $context["name"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "use", array()) == "keys" ? $context["key"] : (isset($context["id"]) ? $context["id"] : null);
         // line 20
         echo "        ";
         $context["val"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "use", array()) == "keys" ? "1" : $context["key"];
         // line 21
         echo "        ";
         $context["checked"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "use", array()) == "keys" ? $this->getAttribute(isset($context["value"]) ? $context["value"] : null, $context["key"], array(), "array") : twig_in_filter($context["key"], isset($context["value"]) ? $context["value"] : null);
         // line 22
         echo "\n        <span class=\"checkboxes\">\n            <input type=\"checkbox\"\n                   id=\"";
         // line 25
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null);
         echo "\"\n                   value=\"";
         // line 26
         echo twig_escape_filter($this->env, isset($context["val"]) ? $context["val"] : null);
         echo "\"\n                   name=\"";
         // line 27
         echo $this->env->getExtension('GravTwigExtension')->fieldNameFilter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array())) . "[" . (isset($context["name"]) ? $context["name"] : null) . "]";
         echo "\"\n                   ";
         // line 28
         if (isset($context["checked"]) ? $context["checked"] : null) {
             echo "checked=\"checked\"";
         }
         // line 29
         echo "                   ";
         if ($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "required", array())) {
             echo "required=\"required\"";
         }
         // line 30
         echo "            >\n            <label style=\"display: inline\" for=\"";
         // line 31
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null);
         echo "\">";
         echo twig_escape_filter($this->env, $this->env->getExtension('GravTwigExtension')->translate($context["text"]));
         echo "</label>\n        </span>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["allLabel"] = array_key_exists("allLabel", $context) ? $this->getContext($context, "allLabel") : \Craft\Craft::t("All");
     // line 2
     $context["allValue"] = array_key_exists("allValue", $context) ? $this->getContext($context, "allValue") : "*";
     // line 3
     $context["options"] = array_key_exists("options", $context) ? $this->getContext($context, "options") : array();
     // line 4
     $context["values"] = array_key_exists("values", $context) ? $this->getContext($context, "values") : array();
     // line 5
     $context["allChecked"] = twig_test_empty($this->getContext($context, "values")) || $this->getContext($context, "values") == $this->getContext($context, "allValue");
     // line 6
     echo "\n<div class=\"checkbox-select";
     // line 7
     if (array_key_exists("class", $context)) {
         echo " ";
         echo twig_escape_filter($this->env, $this->getContext($context, "class"), "html", null, true);
     }
     echo "\">\n\t<div>\n\t\t";
     // line 9
     $this->env->loadTemplate("_includes/forms/checkbox")->display(array("id" => array_key_exists("id", $context) ? $this->getContext($context, "id") : null, "class" => "all", "label" => "<b>" . (array_key_exists("allLabel", $context) ? $this->getContext($context, "allLabel") : \Craft\Craft::t("All")) . "</b>", "name" => array_key_exists("name", $context) ? $this->getContext($context, "name") : null, "value" => $this->getContext($context, "allValue"), "checked" => $this->getContext($context, "allChecked"), "autofocus" => array_key_exists("autofocus", $context) && $this->getContext($context, "autofocus") && !$this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "request"), "isMobileBrowser", array(0 => true), "method")));
     // line 18
     echo "\t</div>";
     // line 19
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getContext($context, "options"));
     foreach ($context['_seq'] as $context["key"] => $context["option"]) {
         // line 20
         $context["optionLabel"] = $this->getAttribute($this->getContext($context, "option", true), "label", array(), "any", true, true) ? $this->getAttribute($this->getContext($context, "option"), "label") : $this->getContext($context, "option");
         // line 21
         $context["optionValue"] = $this->getAttribute($this->getContext($context, "option", true), "value", array(), "any", true, true) ? $this->getAttribute($this->getContext($context, "option"), "value") : $this->getContext($context, "key");
         // line 22
         if ($this->getContext($context, "optionValue") != $this->getContext($context, "allValue")) {
             // line 23
             echo "\t\t\t<div>\n\t\t\t\t";
             // line 24
             $this->env->loadTemplate("_includes/forms/checkbox")->display(array("label" => $this->getContext($context, "optionLabel"), "name" => array_key_exists("name", $context) ? $this->getContext($context, "name") . "[]" : null, "value" => $this->getContext($context, "optionValue"), "checked" => $this->getContext($context, "allChecked") || twig_in_filter($this->getContext($context, "optionValue"), $this->getContext($context, "values")), "disabled" => $this->getContext($context, "allChecked")));
             // line 31
             echo "\t\t\t</div>\n\t\t";
         }
         // line 33
         echo "\t";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['key'], $context['option'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 34
     echo "</div>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_b22410ccb53be7c3fc899cc9d0eef5ce2877828fea50066ae77bffbeb8fa455b = $this->env->getExtension("native_profiler");
     $__internal_b22410ccb53be7c3fc899cc9d0eef5ce2877828fea50066ae77bffbeb8fa455b->enter($__internal_b22410ccb53be7c3fc899cc9d0eef5ce2877828fea50066ae77bffbeb8fa455b_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@CraueFormFlow/FormFlow/buttons.html.twig"));
     // line 1
     $context["renderBackButton"] = twig_in_filter($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getCurrentStepNumber", array(), "method"), range($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFirstStepNumber", array(), "method") + 1, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getLastStepNumber", array(), "method")));
     // line 2
     echo "<div class=\"craue_formflow_buttons craue_formflow_button_count_";
     if (isset($context["renderBackButton"]) ? $context["renderBackButton"] : $this->getContext($context, "renderBackButton")) {
         echo "3";
     } else {
         echo "2";
     }
     echo "\">\n\t";
     // line 8
     echo "\t<button type=\"submit\" class=\"craue_formflow_button_last\">";
     // line 9
     if ($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getCurrentStepNumber", array(), "method") < $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getLastStepNumber", array(), "method")) {
         // line 10
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.next", array(), "CraueFormFlowBundle"), "html", null, true);
     } else {
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.finish", array(), "CraueFormFlowBundle"), "html", null, true);
     }
     // line 14
     echo "</button>\n\n\t";
     // line 16
     if (isset($context["renderBackButton"]) ? $context["renderBackButton"] : $this->getContext($context, "renderBackButton")) {
         // line 17
         echo "\t\t";
         // line 18
         echo "\t\t<button type=\"submit\" name=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFormTransitionKey", array(), "method"), "html", null, true);
         echo "\" value=\"back\" formnovalidate=\"formnovalidate\">";
         // line 19
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.back", array(), "CraueFormFlowBundle"), "html", null, true);
         // line 20
         echo "</button>\n\t";
     }
     // line 22
     echo "\n\t<button type=\"submit\" class=\"craue_formflow_button_first\" name=\"";
     // line 23
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFormTransitionKey", array(), "method"), "html", null, true);
     echo "\" value=\"reset\" formnovalidate=\"formnovalidate\">";
     // line 24
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.reset", array(), "CraueFormFlowBundle"), "html", null, true);
     // line 25
     echo "</button>\n</div>\n";
     $__internal_b22410ccb53be7c3fc899cc9d0eef5ce2877828fea50066ae77bffbeb8fa455b->leave($__internal_b22410ccb53be7c3fc899cc9d0eef5ce2877828fea50066ae77bffbeb8fa455b_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_4d652986a70e6c66bbcd347ebbfe6e53589f6642f77e15f12779593dae321755 = $this->env->getExtension("native_profiler");
     $__internal_4d652986a70e6c66bbcd347ebbfe6e53589f6642f77e15f12779593dae321755->enter($__internal_4d652986a70e6c66bbcd347ebbfe6e53589f6642f77e15f12779593dae321755_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "CraueFormFlowBundle:FormFlow:buttons.html.twig"));
     // line 1
     $context["renderBackButton"] = twig_in_filter($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getCurrentStepNumber", array(), "method"), range($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFirstStepNumber", array(), "method") + 1, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getLastStepNumber", array(), "method")));
     // line 2
     echo "<div class=\"craue_formflow_buttons craue_formflow_button_count_";
     if (isset($context["renderBackButton"]) ? $context["renderBackButton"] : $this->getContext($context, "renderBackButton")) {
         echo "3";
     } else {
         echo "2";
     }
     echo "\">\n\t";
     // line 8
     echo "\t<button type=\"submit\" class=\"craue_formflow_button_last\">";
     // line 9
     if ($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getCurrentStepNumber", array(), "method") < $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getLastStepNumber", array(), "method")) {
         // line 10
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.next", array(), "CraueFormFlowBundle"), "html", null, true);
     } else {
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.finish", array(), "CraueFormFlowBundle"), "html", null, true);
     }
     // line 14
     echo "</button>\n\n\t";
     // line 16
     if (isset($context["renderBackButton"]) ? $context["renderBackButton"] : $this->getContext($context, "renderBackButton")) {
         // line 17
         echo "\t\t";
         // line 18
         echo "\t\t<button type=\"submit\" name=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFormTransitionKey", array(), "method"), "html", null, true);
         echo "\" value=\"back\" formnovalidate=\"formnovalidate\">";
         // line 19
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.back", array(), "CraueFormFlowBundle"), "html", null, true);
         // line 20
         echo "</button>\n\t";
     }
     // line 22
     echo "\n\t<button type=\"submit\" class=\"craue_formflow_button_first\" name=\"";
     // line 23
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFormTransitionKey", array(), "method"), "html", null, true);
     echo "\" value=\"reset\" formnovalidate=\"formnovalidate\">";
     // line 24
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.reset", array(), "CraueFormFlowBundle"), "html", null, true);
     // line 25
     echo "</button>\n</div>\n";
     $__internal_4d652986a70e6c66bbcd347ebbfe6e53589f6642f77e15f12779593dae321755->leave($__internal_4d652986a70e6c66bbcd347ebbfe6e53589f6642f77e15f12779593dae321755_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 4
     switch ($this->getAttribute($this->getContext($context, "craft"), "locale")) {
         case "en_gb":
             // line 6
             $context["datepickerLocale"] = "en-GB";
             break;
         case "fr_ca":
             // line 8
             $context["datepickerLocale"] = "fr-CA";
             break;
         default:
             // line 10
             $context["language"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "i18n"), "getLocaleData", array(), "method"), "getLanguageID", array(0 => $this->getAttribute($this->getContext($context, "craft"), "locale")), "method");
             // line 11
             if (twig_in_filter($this->getContext($context, "language"), array(0 => "ar", 1 => "de", 2 => "fr", 3 => "it", 4 => "ja", 5 => "nb", 6 => "nl"))) {
                 // line 12
                 $context["datepickerLocale"] = $this->getContext($context, "language");
             }
     }
     // line 18
     if (array_key_exists("datepickerLocale", $context)) {
         // line 19
         \Craft\craft()->templates->includeJsResource("lib/datepicker-i18n/datepicker-" . $this->getContext($context, "datepickerLocale") . ".js", true);
     }
     // line 22
     \Craft\craft()->templates->includeJsResource("js/cp.js", true);
     // line 23
     \Craft\craft()->templates->includeJsResource("js/craft.js", true);
     // line 24
     \Craft\craft()->templates->includeJsResource("lib/garnish-0.1" . ($this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "config"), "useCompressedJs") ? ".min" : "") . ".js", true);
     // line 25
     \Craft\craft()->templates->includeJsResource("lib/fileupload/jquery.fileupload.js", true);
     // line 26
     \Craft\craft()->templates->includeJsResource("lib/fileupload/jquery.ui.widget.js", true);
     // line 27
     \Craft\craft()->templates->includeJsResource("lib/jquery.placeholder" . ($this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "config"), "useCompressedJs") ? ".min" : "") . ".js", true);
     // line 28
     \Craft\craft()->templates->includeJsResource("lib/jquery-ui-1.10.4.custom" . ($this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "config"), "useCompressedJs") ? ".min" : "") . ".js", true);
     // line 29
     \Craft\craft()->templates->includeJsResource("lib/jquery-2.1.0" . ($this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "config"), "useCompressedJs") ? ".min" : "") . ".js", true);
     // line 30
     \Craft\craft()->templates->includeJsResource("lib/xregexp-all" . ($this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "config"), "useCompressedJs") ? "-min" : "") . ".js", true);
     // line 32
     \Craft\craft()->templates->includeTranslations("Show", "Hide");
     // line 34
     $context["orientation"] = $this->getAttribute($this->getAttribute($this->getAttribute($this->getContext($context, "craft"), "i18n"), "getLocaleData", array(), "method"), "getOrientation", array(), "method");
     $this->parent->display($context, array_merge($this->blocks, $blocks));
 }
 public function block_input($context, array $blocks = array())
 {
     // line 4
     echo "    <input\n            ";
     // line 6
     echo "            type=\"checkbox\"\n            name=\"";
     // line 7
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
     echo "\"\n            value=\"";
     // line 8
     echo twig_escape_filter($this->env, twig_join_filter(isset($context["value"]) ? $context["value"] : null, ", "));
     echo "\"\n            ";
     // line 10
     echo "            ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n            ";
     // line 12
     echo "            ";
     if ((isset($context["value"]) ? $context["value"] : null) == true) {
         echo "checked=\"checked\" ";
     }
     // line 13
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()), array(0 => "on", 1 => "off"))) {
         echo "autocomplete=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autocomplete", array()));
         echo "\"";
     }
     // line 14
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "autofocus=\"autofocus\"";
     }
     // line 15
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "disabled=\"disabled\"";
     }
     // line 16
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "required=\"required\"";
     }
     // line 17
     echo "            />\n\n    ";
     // line 19
     $this->displayBlock('reset_field', $context, $blocks);
 }
 public function block_input($context, array $blocks = array())
 {
     // line 4
     echo "    <div class=\"settings-block\"><div class=\"settings-param-field\"><div class=\"input-group\">\n    ";
     // line 5
     $context["label"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label", array()), $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_PICK_PARTICLE")) : $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_PICK_PARTICLE");
     // line 6
     echo "    ";
     $context["alt_label"] = $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label_alt", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "picker_label_alt", array()), $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_PARTICLE")) : $this->env->getExtension('GantryTwig')->transFilter("GANTRY5_PLATFORM_EDIT_PARTICLE");
     // line 7
     echo "    <span class=\"g-instancepicker-title\">";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["value"]) ? $context["value"] : null, "title", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["value"]) ? $context["value"] : null, "title", array()), "") : "", "html", null, true);
     echo "</span><button class=\"button\" data-g-instancepicker=\"";
     echo twig_escape_filter($this->env, twig_jsonencode_filter(array("type" => "particle", "field" => twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null))))), "html_attr");
     echo "\" data-g-instancepicker-text=\"";
     echo twig_escape_filter($this->env, isset($context["label"]) ? $context["label"] : null, "html", null, true);
     echo "\" data-g-instancepicker-alttext=\"";
     echo twig_escape_filter($this->env, isset($context["alt_label"]) ? $context["alt_label"] : null, "html", null, true);
     echo "\">";
     echo twig_escape_filter($this->env, isset($context["value"]) ? $context["value"] : null ? isset($context["alt_label"]) ? $context["alt_label"] : null : (isset($context["label"]) ? $context["label"] : null), "html", null, true);
     echo "</button>\n    <input\n            type=\"hidden\"\n            name=\"";
     // line 10
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
     echo "\"\n            value=\"";
     // line 11
     echo isset($context["value"]) ? $context["value"] : null ? twig_escape_filter($this->env, twig_jsonencode_filter(isset($context["value"]) ? $context["value"] : null, twig_constant("JSON_UNESCAPED_UNICODE"))) : "";
     echo "\"\n            ";
     // line 13
     echo "            ";
     $this->displayBlock("global_attributes", $context, $blocks);
     echo "\n            ";
     // line 15
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "disabled", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "disabled=\"disabled\"";
     }
     // line 16
     echo "            ";
     if (twig_in_filter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "required", array()), array(0 => "on", 1 => "true", 2 => 1))) {
         echo "required=\"required\"";
     }
     // line 17
     echo "            />\n\n    <span class=\"g-reset-field\" data-g-reset-field=\"";
     // line 19
     echo twig_escape_filter($this->env, $this->env->getExtension('GantryTwig')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . (isset($context["name"]) ? $context["name"] : null)));
     echo "\"><i class=\"fa  fa-fw fa-times-circle\"></i></span>\n    </div></div></div>\n";
 }
 public function block_options($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $this->displayParentBlock("options", $context, $blocks);
     echo "\n    ";
     // line 5
     $context["current"] = $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "menu", array()), "getDefaultMenuName", array(), "method");
     // line 6
     echo "    ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "menu", array()), "getMenus", array(), "method"));
     foreach ($context['_seq'] as $context["_key"] => $context["key"]) {
         // line 7
         echo "        ";
         $context["text"] = twig_capitalize_string_filter($this->env, $context["key"]);
         // line 8
         echo "        <option\n                ";
         // line 10
         echo "                ";
         if ($context["key"] == (isset($context["value"]) ? $context["value"] : null)) {
             echo "selected=\"selected\"";
         }
         // line 11
         echo "                value=\"";
         echo twig_escape_filter($this->env, $context["key"]);
         echo "\"\n                ";
         // line 13
         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 14
         echo "                >";
         echo twig_escape_filter($this->env, isset($context["text"]) ? $context["text"] : null);
         echo (isset($context["current"]) ? $context["current"] : null) == $context["key"] && $this->getAttribute($this->getAttribute(isset($context["gantry"]) ? $context["gantry"] : null, "menu", array()), "hasDefaultMenu", array(), "method") ? " ★" : "";
         echo "</option>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['key'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["renderBackButton"] = twig_in_filter($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getCurrentStep", array(), "method"), range($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFirstStep", array(), "method") + 1, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getLastStep", array(), "method")));
     // line 2
     echo "<div class=\"form-actions form-flow-actions\">\n    ";
     // line 8
     echo "    <button type=\"submit\" class=\"btn btn-primary\">";
     // line 9
     if ($this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getCurrentStep", array(), "method") < $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getMaxSteps", array(), "method")) {
         // line 10
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.next", array(), "CraueFormFlowBundle"), "html", null, true);
     } else {
         // line 12
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.finish", array(), "CraueFormFlowBundle"), "html", null, true);
     }
     // line 14
     echo "</button>\n\n    <button type=\"submit\" name=\"";
     // line 16
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFormTransitionKey", array(), "method"), "html", null, true);
     echo "\" value=\"back\" class=\"btn btn-primary";
     if (!(isset($context["renderBackButton"]) ? $context["renderBackButton"] : $this->getContext($context, "renderBackButton"))) {
         echo " disabled";
     }
     echo "\" formnovalidate=\"formnovalidate\"";
     if (!(isset($context["renderBackButton"]) ? $context["renderBackButton"] : $this->getContext($context, "renderBackButton"))) {
         echo " disabled=\"disabled\"";
     }
     echo ">";
     // line 17
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.back", array(), "CraueFormFlowBundle"), "html", null, true);
     // line 18
     echo "</button>\n\n    <button type=\"submit\" name=\"";
     // line 20
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["flow"]) ? $context["flow"] : $this->getContext($context, "flow"), "getFormTransitionKey", array(), "method"), "html", null, true);
     echo "\" value=\"reset\" class=\"btn btn-primary\" formnovalidate=\"formnovalidate\">";
     // line 21
     echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("button.reset", array(), "CraueFormFlowBundle"), "html", null, true);
     // line 22
     echo "</button>\n</div>";
 }
 public function block_form_row($context, array $blocks = array())
 {
     // line 40
     if ($this->getAttribute($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "vars", array()), "freeze_display_text", array())) {
         // line 41
         $context["attr"] = twig_array_merge(isset($context["attr"]) ? $context["attr"] : null, array("class" => $this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array(), "any", true, true) ? _twig_default_filter($this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array()), "") : ""));
         // line 42
         echo "    <dl>\n        <dt>";
         // line 43
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : null, 'label');
         if (isset($context["required"]) ? $context["required"] : null) {
             echo " <span class=\"required\">必須</span>";
         }
         echo "</dt>\n        <dd class=\"form-group";
         // line 44
         if (!(isset($context["valid"]) ? $context["valid"] : null)) {
             echo " has-error";
         }
         if (twig_in_filter("middle", $this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array()))) {
             echo " input_name";
         }
         if (twig_in_filter("short", $this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array()))) {
             echo " input_tel";
         }
         if (twig_in_filter("zip", $this->getAttribute(isset($context["attr"]) ? $context["attr"] : null, "class", array()))) {
             echo " input_zip";
         }
         echo "\">\n            ";
         // line 45
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : null, 'widget');
         echo "\n            ";
         // line 46
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : null, 'errors');
         echo "\n        </dd>\n    </dl>";
     } else {
         // line 50
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : null, 'errors');
         // line 51
         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : null, 'widget');
     }
 }
 public function getmessages($__key__ = null, $__class__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("key" => $__key__, "class" => $__class__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         // line 10
         echo "    ";
         $context["shown"] = array();
         // line 11
         echo "    ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : null, "session", array()), "flashBag", array()), "get", array(0 => isset($context["key"]) ? $context["key"] : null), "method"));
         foreach ($context['_seq'] as $context["_key"] => $context["msg"]) {
             // line 12
             echo "        ";
             if (!twig_in_filter($context["msg"], isset($context["shown"]) ? $context["shown"] : null)) {
                 // line 13
                 echo "            <div class=\"alert alert-";
                 echo twig_escape_filter($this->env, array_key_exists("class", $context) ? _twig_default_filter(isset($context["class"]) ? $context["class"] : null, isset($context["key"]) ? $context["key"] : null) : (isset($context["key"]) ? $context["key"] : null), "html", null, true);
                 echo "\">\n                <button class=\"close\" data-dismiss=\"alert\">×</button>\n                ";
                 // line 15
                 echo $this->env->getExtension('Bolt')->ymllink($context["msg"]);
                 echo "\n            </div>\n            ";
                 // line 17
                 $context["shown"] = twig_array_merge(isset($context["shown"]) ? $context["shown"] : null, array(0 => $context["msg"]));
                 // line 18
                 echo "        ";
             }
             // line 19
             echo "    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['msg'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["value"] = null === (isset($context["value"]) ? $context["value"] : null) ? $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "default", array()) : (isset($context["value"]) ? $context["value"] : null);
     // line 2
     echo "\n<div class=\"form-field\">\n    <div class=\"form-label\">\n        <label>\n            ";
     // line 6
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "help", array())) {
         // line 7
         echo "            <span class=\"tooltip\" data-asTooltip-position=\"w\" title=\"";
         echo $this->env->getExtension('AdminTwigExtension')->tuFilter(twig_escape_filter($this->env, $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "help", array())));
         echo "\">";
         echo $this->env->getExtension('AdminTwigExtension')->tuFilter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()));
         echo "</span>\n            ";
     } else {
         // line 9
         echo "            ";
         echo $this->env->getExtension('AdminTwigExtension')->tuFilter($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "label", array()));
         echo "\n            ";
     }
     // line 11
     echo "            ";
     echo twig_in_filter($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "validate", array()), "required", array()), array(0 => "on", 1 => "true", 2 => 1)) ? "<span class=\"required\">*</span>" : "";
     echo "\n        </label>\n    </div>\n    <div class=\"form-data\">\n        <div class=\"form-frontmatter-wrapper ";
     // line 15
     echo $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "size", array());
     echo "\">\n            <textarea name=\"";
     // line 16
     echo $this->env->getExtension('GravTwigExtension')->fieldNameFilter((isset($context["scope"]) ? $context["scope"] : null) . $this->getAttribute(isset($context["field"]) ? $context["field"] : null, "name", array()));
     echo "\" id=\"frontmatter\">";
     echo twig_join_filter(isset($context["value"]) ? $context["value"] : null, "\n");
     echo "</textarea>\n            <div class=\"dragbar\"></div>\n        </div>\n    </div>\n</div>\n<script>\n    ((function(){\n        var editor = CodeMirror.fromTextArea(document.getElementById('frontmatter'), {\n            mode: 'yaml',\n            theme: 'paper',\n            ";
     // line 26
     if ($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "autofocus", array())) {
         // line 27
         echo "            autofocus: true,\n            ";
     }
     // line 29
     echo "            indentUnit: 4,\n            indentWithTabs: false,\n            extraKeys: {Tab: function(cm) { cm.replaceSelection(\"    \", \"end\"); }}\n        });\n        editor.on('change', editor.save);\n\n        \$('.dragbar').mousedown(function(e){\n            e.preventDefault();\n            var parentOffset = \$(this).parent().offset();\n            \$(document).mousemove(function(e){\n              \$('.form-frontmatter-wrapper .CodeMirror').css('height',e.pageY - parentOffset.top);\n           })\n        });\n        \$(document).mouseup(function(e){\n           \$(document).unbind('mousemove');\n        });\n    })());\n</script>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 2
     echo "\n";
     // line 3
     $context["hasLess"] = false;
     // line 4
     echo "\n";
     // line 5
     // asset "15df054"
     $context["asset_url"] = $this->env->getExtension('asset')->getAssetUrl("css/oro.css");
     // line 6
     echo "    ";
     $context["isLess"] = twig_in_filter("less", twig_split_filter($this->env, isset($context["asset_url"]) ? $context["asset_url"] : null, "."));
     // line 7
     echo "    ";
     $context["hasLess"] = isset($context["isLess"]) ? $context["isLess"] : null ? true : (isset($context["hasLess"]) ? $context["hasLess"] : null);
     // line 8
     echo "\n    <link rel=\"";
     // line 9
     if (isset($context["isLess"]) ? $context["isLess"] : null) {
         echo "stylesheet/less";
     } else {
         echo "stylesheet";
     }
     echo "\" media=\"all\" href=\"";
     echo twig_escape_filter($this->env, isset($context["asset_url"]) ? $context["asset_url"] : null, "html", null, true);
     echo "\" />\n";
     unset($context["asset_url"]);
     // line 11
     echo "\n";
     // line 12
     if (isset($context["hasLess"]) ? $context["hasLess"] : null) {
         // line 13
         echo "    <script type=\"text/javascript\">localStorage.clear();</script>\n    <script type=\"text/javascript\" src=\"";
         // line 14
         echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl("bundles/oroassetic/lib/less-1.3.3.min.js"), "html", null, true);
         echo "\"></script>\n    <script type=\"text/javascript\">less.watch();</script>\n";
     }
 }
 public function block_options($context, array $blocks = array())
 {
     // line 4
     echo "    ";
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array()));
     foreach ($context['_seq'] as $context["key"] => $context["text"]) {
         // line 5
         echo "        <option\n                ";
         // line 7
         echo "                ";
         if ($context["key"] == (isset($context["value"]) ? $context["value"] : null)) {
             echo "selected=\"selected\"";
         }
         // line 8
         echo "                value=\"";
         echo twig_escape_filter($this->env, $context["key"]);
         echo "\"\n                ";
         // line 10
         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 11
         echo "                ";
         if ($this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array(), "any", false, true), "label", array(), "any", true, true)) {
             echo "label=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["field"]) ? $context["field"] : null, "options", array()), "label", array()));
             echo "\"";
         }
         // line 12
         echo "                >";
         echo twig_escape_filter($this->env, twig_test_empty($context["key"]) ? $context["text"] : twig_escape_filter($this->env, twig_date_format_filter($this->env, "now", $context["key"])), "html", null, true);
         echo "</option>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['key'], $context['text'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<ol class=\"traces logs\">\n    ";
     // line 2
     if (isset($context["logs"])) {
         $_logs_ = $context["logs"];
     } else {
         $_logs_ = null;
     }
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($_logs_);
     foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
         // line 3
         echo "        <li";
         if (isset($context["log"])) {
             $_log_ = $context["log"];
         } else {
             $_log_ = null;
         }
         if (twig_in_filter($this->getAttribute($_log_, "priorityName"), array(0 => "EMERG", 1 => "ERR", 2 => "CRIT", 3 => "ALERT", 4 => "ERROR", 5 => "CRITICAL"))) {
             echo " class=\"error\"";
         }
         echo ">\n            ";
         // line 4
         if (isset($context["log"])) {
             $_log_ = $context["log"];
         } else {
             $_log_ = null;
         }
         echo twig_escape_filter($this->env, $this->getAttribute($_log_, "message"), "html", null, true);
         echo "\n        </li>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
     $context = array_merge($_parent, array_intersect_key($context, $_parent));
     // line 7
     echo "</ol>\n";
 }