var/cache/test/twig/8d/8d29c0eb3990d8b766908edce5972377.php line 39

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @PlatformControlPanel/Dashboard/Tenant/list.html.twig */
  14. class __TwigTemplate_b1a60b89b7cbacb62458634b049ce804 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'header' => [$this'block_header'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@PlatformControlPanel/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  39.         $this->parent $this->loadTemplate("@PlatformControlPanel/base.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_header($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  54.         // line 4
  55.         echo "    ";
  56.         $this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/list.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"4"348980033")->display(twig_array_merge(twig_array_merge($context, ["subtitle" => "Tenants""title" => ((( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 6
  57. (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "attributes", [], "any"falsefalsefalse6), "get", [=> "primary"], "method"falsefalsefalse6)) && twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "attributes", [], "any"falsefalsefalse6), "get", [=> "primary"], "method"falsefalsefalse6), twig_constant("Cms\\TenantBundle\\Entity\\TenantTypeEmbeddable::PRIMARY")))) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_sprintf("campussuite.cms.tenant.types.primary.%s"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "attributes", [], "any"falsefalsefalse6), "get", [=> "primary"], "method"falsefalsefalse6)))) : ("All")), "dropdown" => false]), ['_args' => twig_to_array(["subtitle" => "Tenants""title" => ((( !twig_test_empty(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "attributes", [], "any"falsefalsefalse6), "get", [=> "primary"], "method"falsefalsefalse6)) && twig_in_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "attributes", [], "any"falsefalsefalse6), "get", [=> "primary"], "method"falsefalsefalse6), twig_constant("Cms\\TenantBundle\\Entity\\TenantTypeEmbeddable::PRIMARY")))) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_sprintf("campussuite.cms.tenant.types.primary.%s"twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'6$this->source); })()), "request", [], "any"falsefalsefalse6), "attributes", [], "any"falsefalsefalse6), "get", [=> "primary"], "method"falsefalsefalse6)))) : ("All")), "dropdown" => false])]));
  58.         // line 18
  59.         echo "    ";
  60.         $this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/includes/navbar.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"18)->display(twig_array_merge($context, ['_args' => []]));
  61.         
  62.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63.         
  64.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  65.     }
  66.     // line 21
  67.     public function block_content($context, array $blocks = [])
  68.     {
  69.         $macros $this->macros;
  70.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  71.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  73.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  74.         // line 22
  75.         echo "    ";
  76.         echo $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->embedTitle("Control Panel"10);
  77.         echo "
  78.     ";
  79.         // line 23
  80.         echo $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->embedTitle("Tenants"20);
  81.         echo "
  82.     ";
  83.         // line 24
  84.         $this->loadTemplate("@ui/common/flash/default.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"24)->display(twig_array_merge($context, ['_args' => []]));
  85.         // line 25
  86.         echo "
  87.     <h4>Current Tenant <small>(always shows despite filtering)</small></h4>
  88.     ";
  89.         // line 28
  90.         $this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/list.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"28"750285669")->display(twig_array_merge(twig_array_merge($context, ["lazyload" => false]), ['_args' => twig_to_array(["lazyload" => false])]));
  91.         // line 37
  92.         echo "
  93.     <h4>Results <small>(for current filtering selections)</small></h4>
  94.     ";
  95.         // line 40
  96.         $this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/list.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"40"452159898")->display(twig_array_merge(twig_array_merge($context, ["search" =>         // line 41
  97. (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'41$this->source); })())]), ['_args' => twig_to_array(["search" => (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'41$this->source); })())])]));
  98.         // line 49
  99.         echo "
  100.     ";
  101.         // line 50
  102.         $this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/list.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"50"1517164902")->display(twig_array_merge(twig_array_merge($context, ["lazyload" => false]), ['_args' => twig_to_array(["lazyload" => false])]));
  103.         // line 59
  104.         echo "
  105.     ";
  106.         // line 60
  107.         $this->loadTemplate("@CmsCore/includes/Search/empty.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"60)->display(twig_array_merge(twig_array_merge($context, ["results" => twig_length_filter($this->env,         // line 61
  108. (isset($context["tenants"]) || array_key_exists("tenants"$context) ? $context["tenants"] : (function () { throw new RuntimeError('Variable "tenants" does not exist.'61$this->source); })()))]), ['_args' => twig_to_array(["results" => twig_length_filter($this->env, (isset($context["tenants"]) || array_key_exists("tenants"$context) ? $context["tenants"] : (function () { throw new RuntimeError('Variable "tenants" does not exist.'61$this->source); })()))])]));
  109.         // line 63
  110.         echo "
  111.     ";
  112.         // line 64
  113.         ob_start();
  114.         // line 65
  115.         echo "        <script>
  116.             \$(function () {
  117.                 var \$search = \$('[data-campussuite-search-term=\"name\"] input');
  118.                 var \$list = \$('div.action-bar+ul.module-list');
  119.                 var \$items = \$list.children('li');
  120.                 \$search.on('keyup', function (e) {
  121.                     var val = \$search.val().toLowerCase().trim();
  122.                     if (val.length >= 3) {
  123.                         \$items.each(function (index, elem) {
  124.                             var \$elem = \$(elem);
  125.                             \$elem.toggle(\$elem.is('[data-tenant-search*=\"' + val + '\"]'));
  126.                         });
  127.                     } else {
  128.                         \$items.show();
  129.                     }
  130.                 });
  131.                 \$search.focus();
  132.             });
  133.         </script>
  134.     ";
  135.         $context['renderer']->currentScene()->getAssetsOrganizer()->getScripts()->add(new Cms\AssetsBundle\Model\Structure\ScriptStructure\InlineScriptStructure(trim(preg_replace(array('/^<script>/''/<\/script>$/'), ''trim(ob_get_clean()))), "text/javascript"), null"bottom");
  136.         // line 85
  137.         echo "
  138. ";
  139.         
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  141.         
  142.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  143.     }
  144.     public function getTemplateName()
  145.     {
  146.         return "@PlatformControlPanel/Dashboard/Tenant/list.html.twig";
  147.     }
  148.     public function isTraitable()
  149.     {
  150.         return false;
  151.     }
  152.     public function getDebugInfo()
  153.     {
  154.         return array (  158 => 85,  136 => 65,  134 => 64,  131 => 63,  129 => 61,  128 => 60,  125 => 59,  123 => 50,  120 => 49,  118 => 41,  117 => 40,  112 => 37,  110 => 28,  105 => 25,  103 => 24,  99 => 23,  94 => 22,  84 => 21,  73 => 18,  71 => 6,  69 => 4,  59 => 3,  36 => 1,);
  155.     }
  156.     public function getSourceContext()
  157.     {
  158.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  159. {% block header %}
  160.     {% embed '@ui/common/headers/new.html.twig' with {
  161.         subtitle: 'Tenants',
  162.         title: (app.request.attributes.get('primary') is not empty and app.request.attributes.get('primary') in constant('Cms\\\\TenantBundle\\\\Entity\\\\TenantTypeEmbeddable::PRIMARY')) ? 'campussuite.cms.tenant.types.primary.%s'|format(app.request.attributes.get('primary'))|trans : 'All',
  163.         dropdown: false
  164.     } %}
  165.         {% block actions %}
  166.             {% include '@ui/common/buttons/default.html.twig' with {
  167.                 text: 'Tenant',
  168.                 link: path(routes.create),
  169.                 icon: 'plus',
  170.                 helper: 'primary'
  171.             } %}
  172.         {% endblock %}
  173.     {% endembed %}
  174.     {% include '@PlatformControlPanel/Dashboard/Tenant/includes/navbar.html.twig' %}
  175. {% endblock %}
  176. {% block content %}
  177.     {{ embed_title('Control Panel', 10) }}
  178.     {{ embed_title('Tenants', 20) }}
  179.     {% include '@ui/common/flash/default.html.twig' %}
  180.     <h4>Current Tenant <small>(always shows despite filtering)</small></h4>
  181.     {% embed '@ui/common/data/list.html.twig' with {
  182.         lazyload: false,
  183.     } %}
  184.         {% block items %}
  185.             {% for tenant in [current] %}
  186.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  187.             {% endfor %}
  188.         {% endblock %}
  189.     {% endembed %}
  190.     <h4>Results <small>(for current filtering selections)</small></h4>
  191.     {% embed '@ui/common/actionbar/default.html.twig' with {
  192.         search: search
  193.     } %}
  194.         {% block searchbox %}
  195.             {% include '@ui/common/actionbar/searchbox.html.twig' with {
  196.                 term: search.filter('name')
  197.             } %}
  198.         {% endblock %}
  199.     {% endembed %}
  200.     {% embed '@ui/common/data/list.html.twig' with {
  201.         lazyload: false,
  202.     } %}
  203.         {% block items %}
  204.             {% for tenant in tenants %}
  205.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  206.             {% endfor %}
  207.         {% endblock %}
  208.     {% endembed %}
  209.     {% include '@CmsCore/includes/Search/empty.html.twig' with {
  210.         results: tenants|length
  211.     } %}
  212.     {% inline_script %}
  213.         <script>
  214.             \$(function () {
  215.                 var \$search = \$('[data-campussuite-search-term=\"name\"] input');
  216.                 var \$list = \$('div.action-bar+ul.module-list');
  217.                 var \$items = \$list.children('li');
  218.                 \$search.on('keyup', function (e) {
  219.                     var val = \$search.val().toLowerCase().trim();
  220.                     if (val.length >= 3) {
  221.                         \$items.each(function (index, elem) {
  222.                             var \$elem = \$(elem);
  223.                             \$elem.toggle(\$elem.is('[data-tenant-search*=\"' + val + '\"]'));
  224.                         });
  225.                     } else {
  226.                         \$items.show();
  227.                     }
  228.                 });
  229.                 \$search.focus();
  230.             });
  231.         </script>
  232.     {% endinline %}
  233. {% endblock %}
  234. ""@PlatformControlPanel/Dashboard/Tenant/list.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/list.html.twig");
  235.     }
  236. }
  237. /* @PlatformControlPanel/Dashboard/Tenant/list.html.twig */
  238. class __TwigTemplate_b1a60b89b7cbacb62458634b049ce804___348980033 extends \Twig\Template
  239. {
  240.     private $source;
  241.     private $macros = [];
  242.     public function __construct(Environment $env)
  243.     {
  244.         parent::__construct($env);
  245.         $this->source $this->getSourceContext();
  246.         $this->blocks = [
  247.             'actions' => [$this'block_actions'],
  248.         ];
  249.     }
  250.     protected function doGetParent(array $context)
  251.     {
  252.         // line 4
  253.         return "@ui/common/headers/new.html.twig";
  254.     }
  255.     protected function doDisplay(array $context, array $blocks = [])
  256.     {
  257.         $macros $this->macros;
  258.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  259.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  260.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  261.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  262.         $this->parent $this->loadTemplate("@ui/common/headers/new.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"4);
  263.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  264.         
  265.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  266.         
  267.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  268.     }
  269.     // line 9
  270.     public function block_actions($context, array $blocks = [])
  271.     {
  272.         $macros $this->macros;
  273.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  274.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  275.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  276.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  277.         // line 10
  278.         echo "            ";
  279.         $this->loadTemplate("@ui/common/buttons/default.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"10)->display(twig_array_merge(twig_array_merge($context, ["text" => "Tenant""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->source,         // line 12
  280. (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'12$this->source); })()), "create", [], "any"falsefalsefalse12)), "icon" => "plus""helper" => "primary"]), ['_args' => twig_to_array(["text" => "Tenant""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->source, (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'12$this->source); })()), "create", [], "any"falsefalsefalse12)), "icon" => "plus""helper" => "primary"])]));
  281.         // line 16
  282.         echo "        ";
  283.         
  284.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  285.         
  286.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  287.     }
  288.     public function getTemplateName()
  289.     {
  290.         return "@PlatformControlPanel/Dashboard/Tenant/list.html.twig";
  291.     }
  292.     public function isTraitable()
  293.     {
  294.         return false;
  295.     }
  296.     public function getDebugInfo()
  297.     {
  298.         return array (  333 => 16,  331 => 12,  329 => 10,  319 => 9,  296 => 4,  158 => 85,  136 => 65,  134 => 64,  131 => 63,  129 => 61,  128 => 60,  125 => 59,  123 => 50,  120 => 49,  118 => 41,  117 => 40,  112 => 37,  110 => 28,  105 => 25,  103 => 24,  99 => 23,  94 => 22,  84 => 21,  73 => 18,  71 => 6,  69 => 4,  59 => 3,  36 => 1,);
  299.     }
  300.     public function getSourceContext()
  301.     {
  302.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  303. {% block header %}
  304.     {% embed '@ui/common/headers/new.html.twig' with {
  305.         subtitle: 'Tenants',
  306.         title: (app.request.attributes.get('primary') is not empty and app.request.attributes.get('primary') in constant('Cms\\\\TenantBundle\\\\Entity\\\\TenantTypeEmbeddable::PRIMARY')) ? 'campussuite.cms.tenant.types.primary.%s'|format(app.request.attributes.get('primary'))|trans : 'All',
  307.         dropdown: false
  308.     } %}
  309.         {% block actions %}
  310.             {% include '@ui/common/buttons/default.html.twig' with {
  311.                 text: 'Tenant',
  312.                 link: path(routes.create),
  313.                 icon: 'plus',
  314.                 helper: 'primary'
  315.             } %}
  316.         {% endblock %}
  317.     {% endembed %}
  318.     {% include '@PlatformControlPanel/Dashboard/Tenant/includes/navbar.html.twig' %}
  319. {% endblock %}
  320. {% block content %}
  321.     {{ embed_title('Control Panel', 10) }}
  322.     {{ embed_title('Tenants', 20) }}
  323.     {% include '@ui/common/flash/default.html.twig' %}
  324.     <h4>Current Tenant <small>(always shows despite filtering)</small></h4>
  325.     {% embed '@ui/common/data/list.html.twig' with {
  326.         lazyload: false,
  327.     } %}
  328.         {% block items %}
  329.             {% for tenant in [current] %}
  330.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  331.             {% endfor %}
  332.         {% endblock %}
  333.     {% endembed %}
  334.     <h4>Results <small>(for current filtering selections)</small></h4>
  335.     {% embed '@ui/common/actionbar/default.html.twig' with {
  336.         search: search
  337.     } %}
  338.         {% block searchbox %}
  339.             {% include '@ui/common/actionbar/searchbox.html.twig' with {
  340.                 term: search.filter('name')
  341.             } %}
  342.         {% endblock %}
  343.     {% endembed %}
  344.     {% embed '@ui/common/data/list.html.twig' with {
  345.         lazyload: false,
  346.     } %}
  347.         {% block items %}
  348.             {% for tenant in tenants %}
  349.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  350.             {% endfor %}
  351.         {% endblock %}
  352.     {% endembed %}
  353.     {% include '@CmsCore/includes/Search/empty.html.twig' with {
  354.         results: tenants|length
  355.     } %}
  356.     {% inline_script %}
  357.         <script>
  358.             \$(function () {
  359.                 var \$search = \$('[data-campussuite-search-term=\"name\"] input');
  360.                 var \$list = \$('div.action-bar+ul.module-list');
  361.                 var \$items = \$list.children('li');
  362.                 \$search.on('keyup', function (e) {
  363.                     var val = \$search.val().toLowerCase().trim();
  364.                     if (val.length >= 3) {
  365.                         \$items.each(function (index, elem) {
  366.                             var \$elem = \$(elem);
  367.                             \$elem.toggle(\$elem.is('[data-tenant-search*=\"' + val + '\"]'));
  368.                         });
  369.                     } else {
  370.                         \$items.show();
  371.                     }
  372.                 });
  373.                 \$search.focus();
  374.             });
  375.         </script>
  376.     {% endinline %}
  377. {% endblock %}
  378. ""@PlatformControlPanel/Dashboard/Tenant/list.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/list.html.twig");
  379.     }
  380. }
  381. /* @PlatformControlPanel/Dashboard/Tenant/list.html.twig */
  382. class __TwigTemplate_b1a60b89b7cbacb62458634b049ce804___750285669 extends \Twig\Template
  383. {
  384.     private $source;
  385.     private $macros = [];
  386.     public function __construct(Environment $env)
  387.     {
  388.         parent::__construct($env);
  389.         $this->source $this->getSourceContext();
  390.         $this->blocks = [
  391.             'items' => [$this'block_items'],
  392.         ];
  393.     }
  394.     protected function doGetParent(array $context)
  395.     {
  396.         // line 28
  397.         return "@ui/common/data/list.html.twig";
  398.     }
  399.     protected function doDisplay(array $context, array $blocks = [])
  400.     {
  401.         $macros $this->macros;
  402.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  403.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  404.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  405.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  406.         $this->parent $this->loadTemplate("@ui/common/data/list.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"28);
  407.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  408.         
  409.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  410.         
  411.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  412.     }
  413.     // line 31
  414.     public function block_items($context, array $blocks = [])
  415.     {
  416.         $macros $this->macros;
  417.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  418.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items"));
  419.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  420.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items"));
  421.         // line 32
  422.         echo "            ";
  423.         $context['_parent'] = $context;
  424.         $context['_seq'] = twig_ensure_traversable([=> (isset($context["current"]) || array_key_exists("current"$context) ? $context["current"] : (function () { throw new RuntimeError('Variable "current" does not exist.'32$this->source); })())]);
  425.         $context['loop'] = [
  426.           'parent' => $context['_parent'],
  427.           'index0' => 0,
  428.           'index'  => 1,
  429.           'first'  => true,
  430.         ];
  431.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  432.             $length count($context['_seq']);
  433.             $context['loop']['revindex0'] = $length 1;
  434.             $context['loop']['revindex'] = $length;
  435.             $context['loop']['length'] = $length;
  436.             $context['loop']['last'] = === $length;
  437.         }
  438.         foreach ($context['_seq'] as $context["_key"] => $context["tenant"]) {
  439.             // line 33
  440.             echo "                ";
  441.             $this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"33)->display(twig_array_merge($context, ['_args' => []]));
  442.             // line 34
  443.             echo "            ";
  444.             ++$context['loop']['index0'];
  445.             ++$context['loop']['index'];
  446.             $context['loop']['first'] = false;
  447.             if (isset($context['loop']['length'])) {
  448.                 --$context['loop']['revindex0'];
  449.                 --$context['loop']['revindex'];
  450.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  451.             }
  452.         }
  453.         $_parent $context['_parent'];
  454.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tenant'], $context['_parent'], $context['loop']);
  455.         $context array_intersect_key($context$_parent) + $_parent;
  456.         // line 35
  457.         echo "        ";
  458.         
  459.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  460.         
  461.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  462.     }
  463.     public function getTemplateName()
  464.     {
  465.         return "@PlatformControlPanel/Dashboard/Tenant/list.html.twig";
  466.     }
  467.     public function isTraitable()
  468.     {
  469.         return false;
  470.     }
  471.     public function getDebugInfo()
  472.     {
  473.         return array (  538 => 35,  524 => 34,  521 => 33,  503 => 32,  493 => 31,  470 => 28,  333 => 16,  331 => 12,  329 => 10,  319 => 9,  296 => 4,  158 => 85,  136 => 65,  134 => 64,  131 => 63,  129 => 61,  128 => 60,  125 => 59,  123 => 50,  120 => 49,  118 => 41,  117 => 40,  112 => 37,  110 => 28,  105 => 25,  103 => 24,  99 => 23,  94 => 22,  84 => 21,  73 => 18,  71 => 6,  69 => 4,  59 => 3,  36 => 1,);
  474.     }
  475.     public function getSourceContext()
  476.     {
  477.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  478. {% block header %}
  479.     {% embed '@ui/common/headers/new.html.twig' with {
  480.         subtitle: 'Tenants',
  481.         title: (app.request.attributes.get('primary') is not empty and app.request.attributes.get('primary') in constant('Cms\\\\TenantBundle\\\\Entity\\\\TenantTypeEmbeddable::PRIMARY')) ? 'campussuite.cms.tenant.types.primary.%s'|format(app.request.attributes.get('primary'))|trans : 'All',
  482.         dropdown: false
  483.     } %}
  484.         {% block actions %}
  485.             {% include '@ui/common/buttons/default.html.twig' with {
  486.                 text: 'Tenant',
  487.                 link: path(routes.create),
  488.                 icon: 'plus',
  489.                 helper: 'primary'
  490.             } %}
  491.         {% endblock %}
  492.     {% endembed %}
  493.     {% include '@PlatformControlPanel/Dashboard/Tenant/includes/navbar.html.twig' %}
  494. {% endblock %}
  495. {% block content %}
  496.     {{ embed_title('Control Panel', 10) }}
  497.     {{ embed_title('Tenants', 20) }}
  498.     {% include '@ui/common/flash/default.html.twig' %}
  499.     <h4>Current Tenant <small>(always shows despite filtering)</small></h4>
  500.     {% embed '@ui/common/data/list.html.twig' with {
  501.         lazyload: false,
  502.     } %}
  503.         {% block items %}
  504.             {% for tenant in [current] %}
  505.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  506.             {% endfor %}
  507.         {% endblock %}
  508.     {% endembed %}
  509.     <h4>Results <small>(for current filtering selections)</small></h4>
  510.     {% embed '@ui/common/actionbar/default.html.twig' with {
  511.         search: search
  512.     } %}
  513.         {% block searchbox %}
  514.             {% include '@ui/common/actionbar/searchbox.html.twig' with {
  515.                 term: search.filter('name')
  516.             } %}
  517.         {% endblock %}
  518.     {% endembed %}
  519.     {% embed '@ui/common/data/list.html.twig' with {
  520.         lazyload: false,
  521.     } %}
  522.         {% block items %}
  523.             {% for tenant in tenants %}
  524.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  525.             {% endfor %}
  526.         {% endblock %}
  527.     {% endembed %}
  528.     {% include '@CmsCore/includes/Search/empty.html.twig' with {
  529.         results: tenants|length
  530.     } %}
  531.     {% inline_script %}
  532.         <script>
  533.             \$(function () {
  534.                 var \$search = \$('[data-campussuite-search-term=\"name\"] input');
  535.                 var \$list = \$('div.action-bar+ul.module-list');
  536.                 var \$items = \$list.children('li');
  537.                 \$search.on('keyup', function (e) {
  538.                     var val = \$search.val().toLowerCase().trim();
  539.                     if (val.length >= 3) {
  540.                         \$items.each(function (index, elem) {
  541.                             var \$elem = \$(elem);
  542.                             \$elem.toggle(\$elem.is('[data-tenant-search*=\"' + val + '\"]'));
  543.                         });
  544.                     } else {
  545.                         \$items.show();
  546.                     }
  547.                 });
  548.                 \$search.focus();
  549.             });
  550.         </script>
  551.     {% endinline %}
  552. {% endblock %}
  553. ""@PlatformControlPanel/Dashboard/Tenant/list.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/list.html.twig");
  554.     }
  555. }
  556. /* @PlatformControlPanel/Dashboard/Tenant/list.html.twig */
  557. class __TwigTemplate_b1a60b89b7cbacb62458634b049ce804___452159898 extends \Twig\Template
  558. {
  559.     private $source;
  560.     private $macros = [];
  561.     public function __construct(Environment $env)
  562.     {
  563.         parent::__construct($env);
  564.         $this->source $this->getSourceContext();
  565.         $this->blocks = [
  566.             'searchbox' => [$this'block_searchbox'],
  567.         ];
  568.     }
  569.     protected function doGetParent(array $context)
  570.     {
  571.         // line 40
  572.         return "@ui/common/actionbar/default.html.twig";
  573.     }
  574.     protected function doDisplay(array $context, array $blocks = [])
  575.     {
  576.         $macros $this->macros;
  577.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  578.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  579.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  580.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  581.         $this->parent $this->loadTemplate("@ui/common/actionbar/default.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"40);
  582.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  583.         
  584.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  585.         
  586.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  587.     }
  588.     // line 43
  589.     public function block_searchbox($context, array $blocks = [])
  590.     {
  591.         $macros $this->macros;
  592.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  593.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""searchbox"));
  594.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  595.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""searchbox"));
  596.         // line 44
  597.         echo "            ";
  598.         $this->loadTemplate("@ui/common/actionbar/searchbox.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"44)->display(twig_array_merge(twig_array_merge($context, ["term" => twig_get_attribute($this->env$this->source,         // line 45
  599. (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'45$this->source); })()), "filter", [=> "name"], "method"falsefalsefalse45)]), ['_args' => twig_to_array(["term" => twig_get_attribute($this->env$this->source, (isset($context["search"]) || array_key_exists("search"$context) ? $context["search"] : (function () { throw new RuntimeError('Variable "search" does not exist.'45$this->source); })()), "filter", [=> "name"], "method"falsefalsefalse45)])]));
  600.         // line 47
  601.         echo "        ";
  602.         
  603.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  604.         
  605.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  606.     }
  607.     public function getTemplateName()
  608.     {
  609.         return "@PlatformControlPanel/Dashboard/Tenant/list.html.twig";
  610.     }
  611.     public function isTraitable()
  612.     {
  613.         return false;
  614.     }
  615.     public function getDebugInfo()
  616.     {
  617.         return array (  712 => 47,  710 => 45,  708 => 44,  698 => 43,  675 => 40,  538 => 35,  524 => 34,  521 => 33,  503 => 32,  493 => 31,  470 => 28,  333 => 16,  331 => 12,  329 => 10,  319 => 9,  296 => 4,  158 => 85,  136 => 65,  134 => 64,  131 => 63,  129 => 61,  128 => 60,  125 => 59,  123 => 50,  120 => 49,  118 => 41,  117 => 40,  112 => 37,  110 => 28,  105 => 25,  103 => 24,  99 => 23,  94 => 22,  84 => 21,  73 => 18,  71 => 6,  69 => 4,  59 => 3,  36 => 1,);
  618.     }
  619.     public function getSourceContext()
  620.     {
  621.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  622. {% block header %}
  623.     {% embed '@ui/common/headers/new.html.twig' with {
  624.         subtitle: 'Tenants',
  625.         title: (app.request.attributes.get('primary') is not empty and app.request.attributes.get('primary') in constant('Cms\\\\TenantBundle\\\\Entity\\\\TenantTypeEmbeddable::PRIMARY')) ? 'campussuite.cms.tenant.types.primary.%s'|format(app.request.attributes.get('primary'))|trans : 'All',
  626.         dropdown: false
  627.     } %}
  628.         {% block actions %}
  629.             {% include '@ui/common/buttons/default.html.twig' with {
  630.                 text: 'Tenant',
  631.                 link: path(routes.create),
  632.                 icon: 'plus',
  633.                 helper: 'primary'
  634.             } %}
  635.         {% endblock %}
  636.     {% endembed %}
  637.     {% include '@PlatformControlPanel/Dashboard/Tenant/includes/navbar.html.twig' %}
  638. {% endblock %}
  639. {% block content %}
  640.     {{ embed_title('Control Panel', 10) }}
  641.     {{ embed_title('Tenants', 20) }}
  642.     {% include '@ui/common/flash/default.html.twig' %}
  643.     <h4>Current Tenant <small>(always shows despite filtering)</small></h4>
  644.     {% embed '@ui/common/data/list.html.twig' with {
  645.         lazyload: false,
  646.     } %}
  647.         {% block items %}
  648.             {% for tenant in [current] %}
  649.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  650.             {% endfor %}
  651.         {% endblock %}
  652.     {% endembed %}
  653.     <h4>Results <small>(for current filtering selections)</small></h4>
  654.     {% embed '@ui/common/actionbar/default.html.twig' with {
  655.         search: search
  656.     } %}
  657.         {% block searchbox %}
  658.             {% include '@ui/common/actionbar/searchbox.html.twig' with {
  659.                 term: search.filter('name')
  660.             } %}
  661.         {% endblock %}
  662.     {% endembed %}
  663.     {% embed '@ui/common/data/list.html.twig' with {
  664.         lazyload: false,
  665.     } %}
  666.         {% block items %}
  667.             {% for tenant in tenants %}
  668.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  669.             {% endfor %}
  670.         {% endblock %}
  671.     {% endembed %}
  672.     {% include '@CmsCore/includes/Search/empty.html.twig' with {
  673.         results: tenants|length
  674.     } %}
  675.     {% inline_script %}
  676.         <script>
  677.             \$(function () {
  678.                 var \$search = \$('[data-campussuite-search-term=\"name\"] input');
  679.                 var \$list = \$('div.action-bar+ul.module-list');
  680.                 var \$items = \$list.children('li');
  681.                 \$search.on('keyup', function (e) {
  682.                     var val = \$search.val().toLowerCase().trim();
  683.                     if (val.length >= 3) {
  684.                         \$items.each(function (index, elem) {
  685.                             var \$elem = \$(elem);
  686.                             \$elem.toggle(\$elem.is('[data-tenant-search*=\"' + val + '\"]'));
  687.                         });
  688.                     } else {
  689.                         \$items.show();
  690.                     }
  691.                 });
  692.                 \$search.focus();
  693.             });
  694.         </script>
  695.     {% endinline %}
  696. {% endblock %}
  697. ""@PlatformControlPanel/Dashboard/Tenant/list.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/list.html.twig");
  698.     }
  699. }
  700. /* @PlatformControlPanel/Dashboard/Tenant/list.html.twig */
  701. class __TwigTemplate_b1a60b89b7cbacb62458634b049ce804___1517164902 extends \Twig\Template
  702. {
  703.     private $source;
  704.     private $macros = [];
  705.     public function __construct(Environment $env)
  706.     {
  707.         parent::__construct($env);
  708.         $this->source $this->getSourceContext();
  709.         $this->blocks = [
  710.             'items' => [$this'block_items'],
  711.         ];
  712.     }
  713.     protected function doGetParent(array $context)
  714.     {
  715.         // line 50
  716.         return "@ui/common/data/list.html.twig";
  717.     }
  718.     protected function doDisplay(array $context, array $blocks = [])
  719.     {
  720.         $macros $this->macros;
  721.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  722.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  723.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  724.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"));
  725.         $this->parent $this->loadTemplate("@ui/common/data/list.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"50);
  726.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  727.         
  728.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  729.         
  730.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  731.     }
  732.     // line 53
  733.     public function block_items($context, array $blocks = [])
  734.     {
  735.         $macros $this->macros;
  736.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  737.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items"));
  738.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  739.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items"));
  740.         // line 54
  741.         echo "            ";
  742.         $context['_parent'] = $context;
  743.         $context['_seq'] = twig_ensure_traversable((isset($context["tenants"]) || array_key_exists("tenants"$context) ? $context["tenants"] : (function () { throw new RuntimeError('Variable "tenants" does not exist.'54$this->source); })()));
  744.         $context['loop'] = [
  745.           'parent' => $context['_parent'],
  746.           'index0' => 0,
  747.           'index'  => 1,
  748.           'first'  => true,
  749.         ];
  750.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  751.             $length count($context['_seq']);
  752.             $context['loop']['revindex0'] = $length 1;
  753.             $context['loop']['revindex'] = $length;
  754.             $context['loop']['length'] = $length;
  755.             $context['loop']['last'] = === $length;
  756.         }
  757.         foreach ($context['_seq'] as $context["_key"] => $context["tenant"]) {
  758.             // line 55
  759.             echo "                ";
  760.             $this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig""@PlatformControlPanel/Dashboard/Tenant/list.html.twig"55)->display(twig_array_merge($context, ['_args' => []]));
  761.             // line 56
  762.             echo "            ";
  763.             ++$context['loop']['index0'];
  764.             ++$context['loop']['index'];
  765.             $context['loop']['first'] = false;
  766.             if (isset($context['loop']['length'])) {
  767.                 --$context['loop']['revindex0'];
  768.                 --$context['loop']['revindex'];
  769.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  770.             }
  771.         }
  772.         $_parent $context['_parent'];
  773.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tenant'], $context['_parent'], $context['loop']);
  774.         $context array_intersect_key($context$_parent) + $_parent;
  775.         // line 57
  776.         echo "        ";
  777.         
  778.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  779.         
  780.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  781.     }
  782.     public function getTemplateName()
  783.     {
  784.         return "@PlatformControlPanel/Dashboard/Tenant/list.html.twig";
  785.     }
  786.     public function isTraitable()
  787.     {
  788.         return false;
  789.     }
  790.     public function getDebugInfo()
  791.     {
  792.         return array (  917 => 57,  903 => 56,  900 => 55,  882 => 54,  872 => 53,  849 => 50,  712 => 47,  710 => 45,  708 => 44,  698 => 43,  675 => 40,  538 => 35,  524 => 34,  521 => 33,  503 => 32,  493 => 31,  470 => 28,  333 => 16,  331 => 12,  329 => 10,  319 => 9,  296 => 4,  158 => 85,  136 => 65,  134 => 64,  131 => 63,  129 => 61,  128 => 60,  125 => 59,  123 => 50,  120 => 49,  118 => 41,  117 => 40,  112 => 37,  110 => 28,  105 => 25,  103 => 24,  99 => 23,  94 => 22,  84 => 21,  73 => 18,  71 => 6,  69 => 4,  59 => 3,  36 => 1,);
  793.     }
  794.     public function getSourceContext()
  795.     {
  796.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  797. {% block header %}
  798.     {% embed '@ui/common/headers/new.html.twig' with {
  799.         subtitle: 'Tenants',
  800.         title: (app.request.attributes.get('primary') is not empty and app.request.attributes.get('primary') in constant('Cms\\\\TenantBundle\\\\Entity\\\\TenantTypeEmbeddable::PRIMARY')) ? 'campussuite.cms.tenant.types.primary.%s'|format(app.request.attributes.get('primary'))|trans : 'All',
  801.         dropdown: false
  802.     } %}
  803.         {% block actions %}
  804.             {% include '@ui/common/buttons/default.html.twig' with {
  805.                 text: 'Tenant',
  806.                 link: path(routes.create),
  807.                 icon: 'plus',
  808.                 helper: 'primary'
  809.             } %}
  810.         {% endblock %}
  811.     {% endembed %}
  812.     {% include '@PlatformControlPanel/Dashboard/Tenant/includes/navbar.html.twig' %}
  813. {% endblock %}
  814. {% block content %}
  815.     {{ embed_title('Control Panel', 10) }}
  816.     {{ embed_title('Tenants', 20) }}
  817.     {% include '@ui/common/flash/default.html.twig' %}
  818.     <h4>Current Tenant <small>(always shows despite filtering)</small></h4>
  819.     {% embed '@ui/common/data/list.html.twig' with {
  820.         lazyload: false,
  821.     } %}
  822.         {% block items %}
  823.             {% for tenant in [current] %}
  824.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  825.             {% endfor %}
  826.         {% endblock %}
  827.     {% endembed %}
  828.     <h4>Results <small>(for current filtering selections)</small></h4>
  829.     {% embed '@ui/common/actionbar/default.html.twig' with {
  830.         search: search
  831.     } %}
  832.         {% block searchbox %}
  833.             {% include '@ui/common/actionbar/searchbox.html.twig' with {
  834.                 term: search.filter('name')
  835.             } %}
  836.         {% endblock %}
  837.     {% endembed %}
  838.     {% embed '@ui/common/data/list.html.twig' with {
  839.         lazyload: false,
  840.     } %}
  841.         {% block items %}
  842.             {% for tenant in tenants %}
  843.                 {% include '@PlatformControlPanel/Dashboard/Tenant/includes/tenant.html.twig' %}
  844.             {% endfor %}
  845.         {% endblock %}
  846.     {% endembed %}
  847.     {% include '@CmsCore/includes/Search/empty.html.twig' with {
  848.         results: tenants|length
  849.     } %}
  850.     {% inline_script %}
  851.         <script>
  852.             \$(function () {
  853.                 var \$search = \$('[data-campussuite-search-term=\"name\"] input');
  854.                 var \$list = \$('div.action-bar+ul.module-list');
  855.                 var \$items = \$list.children('li');
  856.                 \$search.on('keyup', function (e) {
  857.                     var val = \$search.val().toLowerCase().trim();
  858.                     if (val.length >= 3) {
  859.                         \$items.each(function (index, elem) {
  860.                             var \$elem = \$(elem);
  861.                             \$elem.toggle(\$elem.is('[data-tenant-search*=\"' + val + '\"]'));
  862.                         });
  863.                     } else {
  864.                         \$items.show();
  865.                     }
  866.                 });
  867.                 \$search.focus();
  868.             });
  869.         </script>
  870.     {% endinline %}
  871. {% endblock %}
  872. ""@PlatformControlPanel/Dashboard/Tenant/list.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/list.html.twig");
  873.     }
  874. }