<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* @ContaoInstallation/main.html.twig */
class __TwigTemplate_6bf7bd65b3db767a841b739acba17144a255a05a648845ecaf1616f26d388103 extends \Twig\Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $this->blocks = [
            'main' => [$this, 'block_main'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "@ContaoInstallation/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ContaoInstallation/main.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@ContaoInstallation/main.html.twig"));

        $this->parent = $this->loadTemplate("@ContaoInstallation/layout.html.twig", "@ContaoInstallation/main.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 4
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));

        // line 5
        echo "  <fieldset class=\"tl_tbox";
        if ((twig_test_empty((isset($context["sql_form"]) || array_key_exists("sql_form", $context) ? $context["sql_form"] : (function () { throw new RuntimeError('Variable "sql_form" does not exist.', 5, $this->source); })())) && twig_test_empty((isset($context["sql_message"]) || array_key_exists("sql_message", $context) ? $context["sql_message"] : (function () { throw new RuntimeError('Variable "sql_message" does not exist.', 5, $this->source); })())))) {
            echo " collapsed";
        }
        echo "\">
    <legend onclick=\"this.getParent().toggleClass('collapsed')\">";
        // line 6
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("update_tables", [], "ContaoInstallationBundle"), "html", null, true);
        echo "</legend>
    <div>
      <h3>";
        // line 8
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("update_tables", [], "ContaoInstallationBundle"), "html", null, true);
        echo "</h3>
      ";
        // line 9
        if (twig_test_empty((isset($context["sql_form"]) || array_key_exists("sql_form", $context) ? $context["sql_form"] : (function () { throw new RuntimeError('Variable "sql_form" does not exist.', 9, $this->source); })()))) {
            // line 10
            echo "        <p class=\"tl_confirm\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("update_tables_confirm", [], "ContaoInstallationBundle"), "html", null, true);
            echo "</p>
      ";
        }
        // line 12
        echo "      <p>";
        echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("update_tables_explain", [], "ContaoInstallationBundle");
        echo "</p>
      ";
        // line 13
        if ( !twig_test_empty((isset($context["sql_message"]) || array_key_exists("sql_message", $context) ? $context["sql_message"] : (function () { throw new RuntimeError('Variable "sql_message" does not exist.', 13, $this->source); })()))) {
            // line 14
            echo "        <div id=\"sql_message\">";
            echo (isset($context["sql_message"]) || array_key_exists("sql_message", $context) ? $context["sql_message"] : (function () { throw new RuntimeError('Variable "sql_message" does not exist.', 14, $this->source); })());
            echo "</div>
      ";
        }
        // line 16
        echo "      ";
        if ( !twig_test_empty((isset($context["sql_form"]) || array_key_exists("sql_form", $context) ? $context["sql_form"] : (function () { throw new RuntimeError('Variable "sql_form" does not exist.', 16, $this->source); })()))) {
            // line 17
            echo "        <form method=\"post\">
          <div class=\"tl_formbody\">
            <input type=\"hidden\" name=\"FORM_SUBMIT\" value=\"tl_database_update\">
            <input type=\"hidden\" name=\"REQUEST_TOKEN\" value=\"";
            // line 20
            echo twig_escape_filter($this->env, (isset($context["request_token"]) || array_key_exists("request_token", $context) ? $context["request_token"] : (function () { throw new RuntimeError('Variable "request_token" does not exist.', 20, $this->source); })()), "html", null, true);
            echo "\">
            <div id=\"sql_wrapper\">
              <table id=\"sql_table\">
              ";
            // line 23
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["sql_form"]) || array_key_exists("sql_form", $context) ? $context["sql_form"] : (function () { throw new RuntimeError('Variable "sql_form" does not exist.', 23, $this->source); })()));
            $context['loop'] = [
              '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["category"] => $context["commands"]) {
                // line 24
                echo "                ";
                if ( !twig_test_empty($context["commands"])) {
                    // line 25
                    echo "                  <tr>
                    <td colspan=\"2\" class=\"tl_col_0\">";
                    // line 26
                    echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans($context["category"], [], "ContaoInstallationBundle"), "html", null, true);
                    echo "</td>
                  </tr>
                  <tr>
                    <td class=\"tl_col_1\"><input type=\"checkbox\" id=\"check_all_";
                    // line 29
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 29), "html", null, true);
                    echo "\" class=\"tl_checkbox\" onclick=\"Backend.toggleCheckboxElements(this, '";
                    echo twig_escape_filter($this->env, $context["category"], "html", null, true);
                    echo "')\"";
                    if ((!twig_in_filter("DROP", $context["category"]) || twig_in_filter("DROP INDEX", $context["category"]))) {
                        echo " checked";
                    }
                    echo "></td>
                    <td class=\"tl_col_2\"><label for=\"check_all_";
                    // line 30
                    echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 30), "html", null, true);
                    echo "\" style=\"color:#a6a6a6\"><em>";
                    echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("select_all", [], "ContaoInstallationBundle"), "html", null, true);
                    echo "</em></label></td>
                  </tr>
                  ";
                    // line 32
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($context["commands"]);
                    $context['loop'] = [
                      '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["md5"] => $context["command"]) {
                        // line 33
                        echo "                    <tr>
                      <td class=\"tl_col_1\"><input type=\"checkbox\" name=\"sql[]\" id=\"sql_";
                        // line 34
                        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["loop"], "parent", [], "any", false, false, false, 34), "loop", [], "any", false, false, false, 34), "index", [], "any", false, false, false, 34), "html", null, true);
                        echo "_";
                        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 34), "html", null, true);
                        echo "\" class=\"tl_checkbox ";
                        echo twig_escape_filter($this->env, $context["category"], "html", null, true);
                        echo "\" value=\"";
                        echo twig_escape_filter($this->env, $context["md5"], "html", null, true);
                        echo "\"";
                        if ((!twig_in_filter("DROP", $context["command"]) || twig_in_filter("DROP INDEX", $context["command"]))) {
                            echo " checked";
                        }
                        echo "></td>
                      <td class=\"tl_col_2\"><pre><label for=\"sql_";
                        // line 35
                        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["loop"], "parent", [], "any", false, false, false, 35), "loop", [], "any", false, false, false, 35), "index", [], "any", false, false, false, 35), "html", null, true);
                        echo "_";
                        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 35), "html", null, true);
                        echo "\">";
                        if (twig_in_filter("CREATE", $context["command"])) {
                            echo $this->extensions['Doctrine\Bundle\DoctrineBundle\Twig\DoctrineExtension']->formatQuery($context["command"]);
                        } else {
                            echo twig_escape_filter($this->env, $context["command"], "html", null, true);
                        }
                        echo "</label></pre></td>
                    </tr>
                  ";
                        ++$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['md5'], $context['command'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 38
                    echo "                ";
                }
                // line 39
                echo "              ";
                ++$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['category'], $context['commands'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 40
            echo "              </table>
            </div>
          </div>
          <div class=\"tl_formbody_submit\">
            <div class=\"tl_submit_container\">
              <button type=\"submit\" class=\"tl_submit\">";
            // line 45
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("update_save", [], "ContaoInstallationBundle"), "html", null, true);
            echo "</button>
            </div>
          </div>
        </form>
      ";
        }
        // line 50
        echo "    </div>
  </fieldset>
  <fieldset class=\"tl_box";
        // line 52
        if ((isset($context["has_admin"]) || array_key_exists("has_admin", $context) ? $context["has_admin"] : (function () { throw new RuntimeError('Variable "has_admin" does not exist.', 52, $this->source); })())) {
            echo " collapsed";
        }
        echo "\">
    <legend onclick=\"this.getParent().toggleClass('collapsed')\">";
        // line 53
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("template_import", [], "ContaoInstallationBundle"), "html", null, true);
        echo "</legend>
    <div>
      <h3>";
        // line 55
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("template_import", [], "ContaoInstallationBundle"), "html", null, true);
        echo "</h3>
      ";
        // line 56
        if (array_key_exists("import_error", $context)) {
            // line 57
            echo "        <p class=\"tl_error\">";
            echo nl2br(twig_escape_filter($this->env, (isset($context["import_error"]) || array_key_exists("import_error", $context) ? $context["import_error"] : (function () { throw new RuntimeError('Variable "import_error" does not exist.', 57, $this->source); })()), "html", null, true));
            echo "</p>
      ";
        } elseif (        // line 58
array_key_exists("import_date", $context)) {
            // line 59
            echo "        <p class=\"tl_confirm\">";
            echo twig_escape_filter($this->env, sprintf($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("imported_on", [], "ContaoInstallationBundle"), (isset($context["import_date"]) || array_key_exists("import_date", $context) ? $context["import_date"] : (function () { throw new RuntimeError('Variable "import_date" does not exist.', 59, $this->source); })())), "html", null, true);
            echo "</p>
      ";
        } else {
            // line 61
            echo "        <p class=\"tl_info\">";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("import_data_will_be_deleted", [], "ContaoInstallationBundle"), "html", null, true);
            echo "</p>
      ";
        }
        // line 63
        echo "      <p>";
        echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("template_import_explain", [], "ContaoInstallationBundle");
        echo "</p>
      <form method=\"post\">
        <div class=\"tl_formbody_submit\">
          <input type=\"hidden\" name=\"FORM_SUBMIT\" value=\"tl_template_import\">
          <input type=\"hidden\" name=\"REQUEST_TOKEN\" value=\"";
        // line 67
        echo twig_escape_filter($this->env, (isset($context["request_token"]) || array_key_exists("request_token", $context) ? $context["request_token"] : (function () { throw new RuntimeError('Variable "request_token" does not exist.', 67, $this->source); })()), "html", null, true);
        echo "\">
          <h4><label for=\"template\">";
        // line 68
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("templates", [], "ContaoInstallationBundle"), "html", null, true);
        echo "</label></h4>
          <select name=\"template\" id=\"template\" class=\"tl_select\" required>
            <option value=\"\">-</option>
            ";
        // line 71
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["templates"]) || array_key_exists("templates", $context) ? $context["templates"] : (function () { throw new RuntimeError('Variable "templates" does not exist.', 71, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["template"]) {
            // line 72
            echo "              <option value=\"";
            echo twig_escape_filter($this->env, $context["template"], "html", null, true);
            echo "\">";
            echo twig_escape_filter($this->env, $context["template"], "html", null, true);
            echo "</option>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['template'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 74
        echo "          </select>
          <div class=\"tl_checkbox_container\" style=\"margin-top:3px\">
            <input type=\"checkbox\" name=\"preserve\" id=\"ctrl_preserve\" class=\"tl_checkbox\" value=\"1\"> <label for=\"ctrl_preserve\">";
        // line 76
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("do_not_truncate", [], "ContaoInstallationBundle"), "html", null, true);
        echo "</label>
          </div>
        </div>
        <div class=\"tl_formbody_submit\">
          <div class=\"tl_submit_container\">
            <button type=\"submit\" class=\"tl_submit\" onclick=\"if(!confirm('";
        // line 81
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("import_confirm", [], "ContaoInstallationBundle"), "html", null, true);
        echo "'))return false;Backend.getScrollOffset()\">";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("template_save", [], "ContaoInstallationBundle"), "html", null, true);
        echo "</button>
          </div>
        </div>
      </form>
    </div>
  </fieldset>
  ";
        // line 87
        if ( !(isset($context["hide_admin"]) || array_key_exists("hide_admin", $context) ? $context["hide_admin"] : (function () { throw new RuntimeError('Variable "hide_admin" does not exist.', 87, $this->source); })())) {
            // line 88
            echo "    <fieldset class=\"tl_box";
            if ((isset($context["has_admin"]) || array_key_exists("has_admin", $context) ? $context["has_admin"] : (function () { throw new RuntimeError('Variable "has_admin" does not exist.', 88, $this->source); })())) {
                echo " collapsed";
            }
            echo "\">
      <legend onclick=\"this.getParent().toggleClass('collapsed')\">";
            // line 89
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_create", [], "ContaoInstallationBundle"), "html", null, true);
            echo "</legend>
      <div>
        <h3>";
            // line 91
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_create", [], "ContaoInstallationBundle"), "html", null, true);
            echo "</h3>
        ";
            // line 92
            if (array_key_exists("admin_error", $context)) {
                // line 93
                echo "          <p class=\"tl_error\">";
                echo twig_escape_filter($this->env, (isset($context["admin_error"]) || array_key_exists("admin_error", $context) ? $context["admin_error"] : (function () { throw new RuntimeError('Variable "admin_error" does not exist.', 93, $this->source); })()), "html", null, true);
                echo "</p>
        ";
            } elseif (            // line 94
(isset($context["has_admin"]) || array_key_exists("has_admin", $context) ? $context["has_admin"] : (function () { throw new RuntimeError('Variable "has_admin" does not exist.', 94, $this->source); })())) {
                // line 95
                echo "          <p class=\"tl_confirm\">";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_confirm", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</p>
        ";
            }
            // line 97
            echo "        <p>";
            echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_create_explain", [], "ContaoInstallationBundle"), "html", null, true);
            echo "</p>
        ";
            // line 98
            if ( !(isset($context["has_admin"]) || array_key_exists("has_admin", $context) ? $context["has_admin"] : (function () { throw new RuntimeError('Variable "has_admin" does not exist.', 98, $this->source); })())) {
                // line 99
                echo "          <form method=\"post\">
            <div class=\"tl_formbody\">
              <input type=\"hidden\" name=\"FORM_SUBMIT\" value=\"tl_admin\">
              <input type=\"hidden\" name=\"REQUEST_TOKEN\" value=\"";
                // line 102
                echo twig_escape_filter($this->env, (isset($context["request_token"]) || array_key_exists("request_token", $context) ? $context["request_token"] : (function () { throw new RuntimeError('Variable "request_token" does not exist.', 102, $this->source); })()), "html", null, true);
                echo "\">
              <h4><label for=\"username\">";
                // line 103
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_username", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</label></h4>
              ";
                // line 104
                if (array_key_exists("admin_username_error", $context)) {
                    // line 105
                    echo "                <p class=\"tl_error\">";
                    echo twig_escape_filter($this->env, (isset($context["admin_username_error"]) || array_key_exists("admin_username_error", $context) ? $context["admin_username_error"] : (function () { throw new RuntimeError('Variable "admin_username_error" does not exist.', 105, $this->source); })()), "html", null, true);
                    echo "</p>
              ";
                }
                // line 107
                echo "              <input type=\"text\" name=\"username\" id=\"username\" class=\"tl_text\" value=\"";
                echo twig_escape_filter($this->env, ((array_key_exists("admin_username_value", $context)) ? (_twig_default_filter((isset($context["admin_username_value"]) || array_key_exists("admin_username_value", $context) ? $context["admin_username_value"] : (function () { throw new RuntimeError('Variable "admin_username_value" does not exist.', 107, $this->source); })()))) : ("")), "html", null, true);
                echo "\" required>
              <h4><label for=\"name\">";
                // line 108
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_name", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</label></h4>
              <input type=\"text\" name=\"name\" id=\"name\" class=\"tl_text\" value=\"";
                // line 109
                echo twig_escape_filter($this->env, ((array_key_exists("admin_name_value", $context)) ? (_twig_default_filter((isset($context["admin_name_value"]) || array_key_exists("admin_name_value", $context) ? $context["admin_name_value"] : (function () { throw new RuntimeError('Variable "admin_name_value" does not exist.', 109, $this->source); })()))) : ("")), "html", null, true);
                echo "\" required>
              <h4><label for=\"email\">";
                // line 110
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_email", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</label></h4>
              ";
                // line 111
                if (array_key_exists("admin_email_error", $context)) {
                    // line 112
                    echo "                <p class=\"tl_error\">";
                    echo twig_escape_filter($this->env, (isset($context["admin_email_error"]) || array_key_exists("admin_email_error", $context) ? $context["admin_email_error"] : (function () { throw new RuntimeError('Variable "admin_email_error" does not exist.', 112, $this->source); })()), "html", null, true);
                    echo "</p>
              ";
                }
                // line 114
                echo "              <input type=\"email\" name=\"email\" id=\"email\" class=\"tl_text\" value=\"";
                echo twig_escape_filter($this->env, ((array_key_exists("admin_email_value", $context)) ? (_twig_default_filter((isset($context["admin_email_value"]) || array_key_exists("admin_email_value", $context) ? $context["admin_email_value"] : (function () { throw new RuntimeError('Variable "admin_email_value" does not exist.', 114, $this->source); })()))) : ("")), "html", null, true);
                echo "\" required>
              <h4><label for=\"password\">";
                // line 115
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("password", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</label></h4>
              ";
                // line 116
                if (array_key_exists("admin_password_error", $context)) {
                    // line 117
                    echo "                <p class=\"tl_error\">";
                    echo twig_escape_filter($this->env, (isset($context["admin_password_error"]) || array_key_exists("admin_password_error", $context) ? $context["admin_password_error"] : (function () { throw new RuntimeError('Variable "admin_password_error" does not exist.', 117, $this->source); })()), "html", null, true);
                    echo "</p>
              ";
                }
                // line 119
                echo "              <input type=\"password\" name=\"password\" id=\"password\" class=\"tl_text\" value=\"";
                echo twig_escape_filter($this->env, ((array_key_exists("admin_password_value", $context)) ? (_twig_default_filter((isset($context["admin_password_value"]) || array_key_exists("admin_password_value", $context) ? $context["admin_password_value"] : (function () { throw new RuntimeError('Variable "admin_password_value" does not exist.', 119, $this->source); })()))) : ("")), "html", null, true);
                echo "\" required>
              <h4><label for=\"confirmation\">";
                // line 120
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("confirmation", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</label></h4>
              <input type=\"password\" name=\"confirmation\" id=\"confirmation\" class=\"tl_text\" value=\"";
                // line 121
                echo twig_escape_filter($this->env, ((array_key_exists("admin_confirmation_value", $context)) ? (_twig_default_filter((isset($context["admin_confirmation_value"]) || array_key_exists("admin_confirmation_value", $context) ? $context["admin_confirmation_value"] : (function () { throw new RuntimeError('Variable "admin_confirmation_value" does not exist.', 121, $this->source); })()))) : ("")), "html", null, true);
                echo "\" required>
            </div>
            <div class=\"tl_formbody_submit\">
              <div class=\"tl_submit_container\">
                <button type=\"submit\" class=\"tl_submit\">";
                // line 125
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("admin_save", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</button>
              </div>
            </div>
          </form>
        ";
            }
            // line 130
            echo "      </div>
    </fieldset>
    ";
            // line 132
            if ((isset($context["has_admin"]) || array_key_exists("has_admin", $context) ? $context["has_admin"] : (function () { throw new RuntimeError('Variable "has_admin" does not exist.', 132, $this->source); })())) {
                // line 133
                echo "      <fieldset class=\"tl_box last\">
        <legend onclick=\"this.getParent().toggleClass('collapsed')\">";
                // line 134
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("installation_complete", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</legend>
        <div>
          <h3>";
                // line 136
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("congratulations", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</h3>
          <p class=\"tl_confirm\">";
                // line 137
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("congratulations_explain", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</p>
          <p>";
                // line 138
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("installation_complete_explain", [], "ContaoInstallationBundle"), "html", null, true);
                echo "</p>
        </div>
      </fieldset>
      <p id=\"back_end\"><a href=\"";
                // line 141
                echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("contao_backend", [], true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("back_end", [], "ContaoInstallationBundle"), "html", null, true);
                echo " ›</a></p>
    ";
            }
            // line 143
            echo "  ";
        }
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "@ContaoInstallation/main.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  514 => 143,  507 => 141,  501 => 138,  497 => 137,  493 => 136,  488 => 134,  485 => 133,  483 => 132,  479 => 130,  471 => 125,  464 => 121,  460 => 120,  455 => 119,  449 => 117,  447 => 116,  443 => 115,  438 => 114,  432 => 112,  430 => 111,  426 => 110,  422 => 109,  418 => 108,  413 => 107,  407 => 105,  405 => 104,  401 => 103,  397 => 102,  392 => 99,  390 => 98,  385 => 97,  379 => 95,  377 => 94,  372 => 93,  370 => 92,  366 => 91,  361 => 89,  354 => 88,  352 => 87,  341 => 81,  333 => 76,  329 => 74,  318 => 72,  314 => 71,  308 => 68,  304 => 67,  296 => 63,  290 => 61,  284 => 59,  282 => 58,  277 => 57,  275 => 56,  271 => 55,  266 => 53,  260 => 52,  256 => 50,  248 => 45,  241 => 40,  227 => 39,  224 => 38,  199 => 35,  185 => 34,  182 => 33,  165 => 32,  158 => 30,  148 => 29,  142 => 26,  139 => 25,  136 => 24,  119 => 23,  113 => 20,  108 => 17,  105 => 16,  99 => 14,  97 => 13,  92 => 12,  86 => 10,  84 => 9,  80 => 8,  75 => 6,  68 => 5,  58 => 4,  35 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends \"@ContaoInstallation/layout.html.twig\" %}
{% trans_default_domain 'ContaoInstallationBundle' %}

{% block main %}
  <fieldset class=\"tl_tbox{% if sql_form is empty and sql_message is empty %} collapsed{% endif %}\">
    <legend onclick=\"this.getParent().toggleClass('collapsed')\">{{ 'update_tables'|trans }}</legend>
    <div>
      <h3>{{ 'update_tables'|trans }}</h3>
      {% if sql_form is empty %}
        <p class=\"tl_confirm\">{{ 'update_tables_confirm'|trans }}</p>
      {% endif %}
      <p>{{ 'update_tables_explain'|trans|raw }}</p>
      {% if sql_message is not empty %}
        <div id=\"sql_message\">{{ sql_message|raw }}</div>
      {% endif %}
      {% if sql_form is not empty %}
        <form method=\"post\">
          <div class=\"tl_formbody\">
            <input type=\"hidden\" name=\"FORM_SUBMIT\" value=\"tl_database_update\">
            <input type=\"hidden\" name=\"REQUEST_TOKEN\" value=\"{{ request_token }}\">
            <div id=\"sql_wrapper\">
              <table id=\"sql_table\">
              {% for category, commands in sql_form %}
                {% if commands is not empty %}
                  <tr>
                    <td colspan=\"2\" class=\"tl_col_0\">{{ category|trans }}</td>
                  </tr>
                  <tr>
                    <td class=\"tl_col_1\"><input type=\"checkbox\" id=\"check_all_{{ loop.index }}\" class=\"tl_checkbox\" onclick=\"Backend.toggleCheckboxElements(this, '{{ category }}')\"{% if 'DROP' not in category or 'DROP INDEX' in category %} checked{% endif %}></td>
                    <td class=\"tl_col_2\"><label for=\"check_all_{{ loop.index }}\" style=\"color:#a6a6a6\"><em>{{ 'select_all'|trans }}</em></label></td>
                  </tr>
                  {% for md5, command in commands %}
                    <tr>
                      <td class=\"tl_col_1\"><input type=\"checkbox\" name=\"sql[]\" id=\"sql_{{ loop.parent.loop.index }}_{{ loop.index }}\" class=\"tl_checkbox {{ category }}\" value=\"{{ md5 }}\"{% if 'DROP' not in command or 'DROP INDEX' in command %} checked{% endif %}></td>
                      <td class=\"tl_col_2\"><pre><label for=\"sql_{{ loop.parent.loop.index }}_{{ loop.index }}\">{% if 'CREATE' in command %}{{ command|doctrine_pretty_query }}{% else %}{{ command }}{% endif %}</label></pre></td>
                    </tr>
                  {% endfor %}
                {% endif %}
              {% endfor %}
              </table>
            </div>
          </div>
          <div class=\"tl_formbody_submit\">
            <div class=\"tl_submit_container\">
              <button type=\"submit\" class=\"tl_submit\">{{ 'update_save'|trans }}</button>
            </div>
          </div>
        </form>
      {% endif %}
    </div>
  </fieldset>
  <fieldset class=\"tl_box{% if has_admin %} collapsed{% endif %}\">
    <legend onclick=\"this.getParent().toggleClass('collapsed')\">{{ 'template_import'|trans }}</legend>
    <div>
      <h3>{{ 'template_import'|trans }}</h3>
      {% if import_error is defined %}
        <p class=\"tl_error\">{{ import_error|nl2br }}</p>
      {% elseif import_date is defined %}
        <p class=\"tl_confirm\">{{ 'imported_on'|trans|format(import_date) }}</p>
      {% else %}
        <p class=\"tl_info\">{{ 'import_data_will_be_deleted'|trans }}</p>
      {% endif %}
      <p>{{ 'template_import_explain'|trans|raw }}</p>
      <form method=\"post\">
        <div class=\"tl_formbody_submit\">
          <input type=\"hidden\" name=\"FORM_SUBMIT\" value=\"tl_template_import\">
          <input type=\"hidden\" name=\"REQUEST_TOKEN\" value=\"{{ request_token }}\">
          <h4><label for=\"template\">{{ 'templates'|trans }}</label></h4>
          <select name=\"template\" id=\"template\" class=\"tl_select\" required>
            <option value=\"\">-</option>
            {% for template in templates %}
              <option value=\"{{ template }}\">{{ template }}</option>
            {% endfor %}
          </select>
          <div class=\"tl_checkbox_container\" style=\"margin-top:3px\">
            <input type=\"checkbox\" name=\"preserve\" id=\"ctrl_preserve\" class=\"tl_checkbox\" value=\"1\"> <label for=\"ctrl_preserve\">{{ 'do_not_truncate'|trans }}</label>
          </div>
        </div>
        <div class=\"tl_formbody_submit\">
          <div class=\"tl_submit_container\">
            <button type=\"submit\" class=\"tl_submit\" onclick=\"if(!confirm('{{ 'import_confirm'|trans }}'))return false;Backend.getScrollOffset()\">{{ 'template_save'|trans }}</button>
          </div>
        </div>
      </form>
    </div>
  </fieldset>
  {% if not hide_admin %}
    <fieldset class=\"tl_box{% if has_admin %} collapsed{% endif %}\">
      <legend onclick=\"this.getParent().toggleClass('collapsed')\">{{ 'admin_create'|trans }}</legend>
      <div>
        <h3>{{ 'admin_create'|trans }}</h3>
        {% if admin_error is defined %}
          <p class=\"tl_error\">{{ admin_error }}</p>
        {% elseif has_admin %}
          <p class=\"tl_confirm\">{{ 'admin_confirm'|trans }}</p>
        {% endif %}
        <p>{{ 'admin_create_explain'|trans }}</p>
        {% if not has_admin %}
          <form method=\"post\">
            <div class=\"tl_formbody\">
              <input type=\"hidden\" name=\"FORM_SUBMIT\" value=\"tl_admin\">
              <input type=\"hidden\" name=\"REQUEST_TOKEN\" value=\"{{ request_token }}\">
              <h4><label for=\"username\">{{ 'admin_username'|trans }}</label></h4>
              {% if admin_username_error is defined %}
                <p class=\"tl_error\">{{ admin_username_error }}</p>
              {% endif %}
              <input type=\"text\" name=\"username\" id=\"username\" class=\"tl_text\" value=\"{{ admin_username_value|default }}\" required>
              <h4><label for=\"name\">{{ 'admin_name'|trans }}</label></h4>
              <input type=\"text\" name=\"name\" id=\"name\" class=\"tl_text\" value=\"{{ admin_name_value|default }}\" required>
              <h4><label for=\"email\">{{ 'admin_email'|trans }}</label></h4>
              {% if admin_email_error is defined %}
                <p class=\"tl_error\">{{ admin_email_error }}</p>
              {% endif %}
              <input type=\"email\" name=\"email\" id=\"email\" class=\"tl_text\" value=\"{{ admin_email_value|default }}\" required>
              <h4><label for=\"password\">{{ 'password'|trans }}</label></h4>
              {% if admin_password_error is defined %}
                <p class=\"tl_error\">{{ admin_password_error }}</p>
              {% endif %}
              <input type=\"password\" name=\"password\" id=\"password\" class=\"tl_text\" value=\"{{ admin_password_value|default }}\" required>
              <h4><label for=\"confirmation\">{{ 'confirmation'|trans }}</label></h4>
              <input type=\"password\" name=\"confirmation\" id=\"confirmation\" class=\"tl_text\" value=\"{{ admin_confirmation_value|default }}\" required>
            </div>
            <div class=\"tl_formbody_submit\">
              <div class=\"tl_submit_container\">
                <button type=\"submit\" class=\"tl_submit\">{{ 'admin_save'|trans }}</button>
              </div>
            </div>
          </form>
        {% endif %}
      </div>
    </fieldset>
    {% if has_admin %}
      <fieldset class=\"tl_box last\">
        <legend onclick=\"this.getParent().toggleClass('collapsed')\">{{ 'installation_complete'|trans }}</legend>
        <div>
          <h3>{{ 'congratulations'|trans }}</h3>
          <p class=\"tl_confirm\">{{ 'congratulations_explain'|trans }}</p>
          <p>{{ 'installation_complete_explain'|trans }}</p>
        </div>
      </fieldset>
      <p id=\"back_end\"><a href=\"{{ path('contao_backend', [], true) }}\">{{ 'back_end'|trans }} ›</a></p>
    {% endif %}
  {% endif %}
{% endblock %}
", "@ContaoInstallation/main.html.twig", "/is/htdocs/wp12322556_AW0OHTSSL8/www/vierzehn/vendor/contao/installation-bundle/src/Resources/views/main.html.twig");
    }
}
