var/cache/test/twig/62/62a1f03adca1bfcf2e15bc31571ea8d6.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. /* @CmsModule/Dashboard/Modal/includes/modal.html.twig */
  14. class __TwigTemplate_0baf6869b3818c9a1d78250d70737dc6 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->parent false;
  23.         $this->blocks = [
  24.             'header_right' => [$this'block_header_right'],
  25.             'subheader' => [$this'block_subheader'],
  26.             'controls' => [$this'block_controls'],
  27.             'crumbs' => [$this'block_crumbs'],
  28.             'actions' => [$this'block_actions'],
  29.             'body' => [$this'block_body'],
  30.         ];
  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""@CmsModule/Dashboard/Modal/includes/modal.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""@CmsModule/Dashboard/Modal/includes/modal.html.twig"));
  39.         // line 1
  40.         echo "<div class=\"modal__header\">
  41.     <a class=\"btn btn-default btn-icon close\" data-dismiss=\"modal\" aria-label=\"Close\">
  42.         <span aria-hidden=\"true\">×</span>
  43.     </a>
  44.     <div class=\"modal__row\">
  45.         <div class=\"modal__header-left\">
  46.             <select class=\"select-chosen\" data-placeholder=\"Select Department\">
  47.                 <option";
  48.         // line 8
  49.         if (( !array_key_exists("container"$context) || twig_test_empty((isset($context["container"]) || array_key_exists("container"$context) ? $context["container"] : (function () { throw new RuntimeError('Variable "container" does not exist.'8$this->source); })())))) {
  50.             echo " selected";
  51.         }
  52.         echo " value=\"\"></option>
  53.                 ";
  54.         // line 9
  55.         $context['_parent'] = $context;
  56.         $context['_seq'] = twig_ensure_traversable((isset($context["containers"]) || array_key_exists("containers"$context) ? $context["containers"] : (function () { throw new RuntimeError('Variable "containers" does not exist.'9$this->source); })()));
  57.         foreach ($context['_seq'] as $context["_key"] => $context["current"]) {
  58.             // line 10
  59.             echo "                    <option";
  60.             if (((array_key_exists("container"$context) &&  !twig_test_empty((isset($context["container"]) || array_key_exists("container"$context) ? $context["container"] : (function () { throw new RuntimeError('Variable "container" does not exist.'10$this->source); })()))) && ($context["current"] === (isset($context["container"]) || array_key_exists("container"$context) ? $context["container"] : (function () { throw new RuntimeError('Variable "container" does not exist.'10$this->source); })())))) {
  61.                 echo " selected";
  62.             }
  63.             echo " value=\"";
  64.             echo twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env$contexttwig_get_attribute($this->env$this->source,             // line 12
  65. (isset($context["routes"]) || array_key_exists("routes"$context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.'12$this->source); })()), "container", [], "any"falsefalsefalse12), ["containerId" => twig_get_attribute($this->env$this->source,             // line 14
  66. $context["current"], "id", [], "any"falsefalsefalse14)]), "html"nulltrue);
  67.             // line 17
  68.             echo "\">";
  69.             echo $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->ui_container_indent($context["current"]);
  70.             echo "</option>
  71.                 ";
  72.         }
  73.         $_parent $context['_parent'];
  74.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['current'], $context['_parent'], $context['loop']);
  75.         $context array_intersect_key($context$_parent) + $_parent;
  76.         // line 19
  77.         echo "            </select>
  78.             ";
  79.         // line 20
  80.         ob_start();
  81.         // line 21
  82.         echo "            <script>
  83.                 \$('[data-campussuite-modals-content] .modal__header .modal__header-left .select-chosen')
  84.                     // chosen spacing fix
  85.                     .on('change chosen:ready', function(e, params) {
  86.                         (( ! params || ! params.chosen) ? \$(e.currentTarget).data('chosen') : params.chosen)
  87.                             .container
  88.                             .find('> .chosen-single > span, > .chosen-choices > .search-choice > span')
  89.                             .each(function (index, elem) {
  90.                                 var \$elem = \$(elem);
  91.                                 \$elem.text(\$elem.text().trim());
  92.                             });
  93.                     })
  94.                     .chosen({
  95.                         width: '100%',
  96.                         disable_search: true,
  97.                         search_contains: true
  98.                     })
  99.                     .on('change', function(e, data) {
  100.                         \$(this).trigger('campussuite.modals.navigate', data.selected);
  101.                     })
  102.                 ;
  103.             </script>
  104.             ";
  105.         $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");
  106.         // line 44
  107.         echo "        </div>
  108.         <div class=\"modal__header-right\">
  109.             ";
  110.         // line 46
  111.         $this->displayBlock('header_right'$context$blocks);
  112.         // line 47
  113.         echo "        </div>
  114.     </div>
  115.     ";
  116.         // line 49
  117.         $this->displayBlock('subheader'$context$blocks);
  118.         // line 50
  119.         echo "</div>
  120. ";
  121.         // line 52
  122.         $this->displayBlock('controls'$context$blocks);
  123.         // line 64
  124.         echo "
  125. <div class=\"modal__body\">
  126.     ";
  127.         // line 66
  128.         $this->displayBlock('body'$context$blocks);
  129.         // line 67
  130.         echo "    <script type=\"text/javascript\">
  131.         \$(function (e) {
  132.             \$('[data-toggle=\"dropdown\"]').dropdown();
  133.         });
  134.     </script>
  135. </div>
  136. ";
  137.         
  138.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  139.         
  140.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  141.     }
  142.     // line 46
  143.     public function block_header_right($context, array $blocks = [])
  144.     {
  145.         $macros $this->macros;
  146.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  147.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_right"));
  148.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  149.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header_right"));
  150.         
  151.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  152.         
  153.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  154.     }
  155.     // line 49
  156.     public function block_subheader($context, array $blocks = [])
  157.     {
  158.         $macros $this->macros;
  159.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  160.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""subheader"));
  161.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  162.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""subheader"));
  163.         
  164.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165.         
  166.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  167.     }
  168.     // line 52
  169.     public function block_controls($context, array $blocks = [])
  170.     {
  171.         $macros $this->macros;
  172.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  173.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""controls"));
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""controls"));
  176.         // line 53
  177.         echo "    <div class=\"modal__controls\">
  178.         <div class=\"modal__row\">
  179.             <div class=\"modal__breadcrumbs\">
  180.                 ";
  181.         // line 56
  182.         $this->displayBlock('crumbs'$context$blocks);
  183.         // line 57
  184.         echo "            </div>
  185.             <div class=\"modal__actions\">
  186.                 ";
  187.         // line 59
  188.         $this->displayBlock('actions'$context$blocks);
  189.         // line 60
  190.         echo "            </div>
  191.         </div>
  192.     </div>
  193. ";
  194.         
  195.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  196.         
  197.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  198.     }
  199.     // line 56
  200.     public function block_crumbs($context, array $blocks = [])
  201.     {
  202.         $macros $this->macros;
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  204.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""crumbs"));
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  206.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""crumbs"));
  207.         
  208.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  209.         
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  211.     }
  212.     // line 59
  213.     public function block_actions($context, array $blocks = [])
  214.     {
  215.         $macros $this->macros;
  216.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  217.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  218.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  219.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  220.         
  221.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  222.         
  223.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  224.     }
  225.     // line 66
  226.     public function block_body($context, array $blocks = [])
  227.     {
  228.         $macros $this->macros;
  229.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  231.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  232.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  233.         
  234.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  235.         
  236.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  237.     }
  238.     public function getTemplateName()
  239.     {
  240.         return "@CmsModule/Dashboard/Modal/includes/modal.html.twig";
  241.     }
  242.     public function isTraitable()
  243.     {
  244.         return false;
  245.     }
  246.     public function getDebugInfo()
  247.     {
  248.         return array (  264 => 66,  246 => 59,  228 => 56,  215 => 60,  213 => 59,  209 => 57,  207 => 56,  202 => 53,  192 => 52,  174 => 49,  156 => 46,  140 => 67,  138 => 66,  134 => 64,  132 => 52,  128 => 50,  126 => 49,  122 => 47,  120 => 46,  116 => 44,  91 => 21,  89 => 20,  86 => 19,  77 => 17,  75 => 14,  74 => 12,  68 => 10,  64 => 9,  58 => 8,  49 => 1,);
  249.     }
  250.     public function getSourceContext()
  251.     {
  252.         return new Source("<div class=\"modal__header\">
  253.     <a class=\"btn btn-default btn-icon close\" data-dismiss=\"modal\" aria-label=\"Close\">
  254.         <span aria-hidden=\"true\">×</span>
  255.     </a>
  256.     <div class=\"modal__row\">
  257.         <div class=\"modal__header-left\">
  258.             <select class=\"select-chosen\" data-placeholder=\"Select Department\">
  259.                 <option{% if container is not defined or container is empty %} selected{% endif %} value=\"\"></option>
  260.                 {% for current in containers %}
  261.                     <option{% if container is defined and container is not empty and current is same as(container) %} selected{% endif %} value=\"{{
  262.                     curpath(
  263.                         routes.container,
  264.                         {
  265.                             containerId: current.id
  266.                         }
  267.                     )
  268.                     }}\">{{ ui_container_indent(current) }}</option>
  269.                 {% endfor %}
  270.             </select>
  271.             {% inline_script %}
  272.             <script>
  273.                 \$('[data-campussuite-modals-content] .modal__header .modal__header-left .select-chosen')
  274.                     // chosen spacing fix
  275.                     .on('change chosen:ready', function(e, params) {
  276.                         (( ! params || ! params.chosen) ? \$(e.currentTarget).data('chosen') : params.chosen)
  277.                             .container
  278.                             .find('> .chosen-single > span, > .chosen-choices > .search-choice > span')
  279.                             .each(function (index, elem) {
  280.                                 var \$elem = \$(elem);
  281.                                 \$elem.text(\$elem.text().trim());
  282.                             });
  283.                     })
  284.                     .chosen({
  285.                         width: '100%',
  286.                         disable_search: true,
  287.                         search_contains: true
  288.                     })
  289.                     .on('change', function(e, data) {
  290.                         \$(this).trigger('campussuite.modals.navigate', data.selected);
  291.                     })
  292.                 ;
  293.             </script>
  294.             {% endinline %}
  295.         </div>
  296.         <div class=\"modal__header-right\">
  297.             {% block header_right %}{% endblock %}
  298.         </div>
  299.     </div>
  300.     {% block subheader %}{% endblock %}
  301. </div>
  302. {% block controls %}
  303.     <div class=\"modal__controls\">
  304.         <div class=\"modal__row\">
  305.             <div class=\"modal__breadcrumbs\">
  306.                 {% block crumbs %}{% endblock %}
  307.             </div>
  308.             <div class=\"modal__actions\">
  309.                 {% block actions %}{% endblock %}
  310.             </div>
  311.         </div>
  312.     </div>
  313. {% endblock %}
  314. <div class=\"modal__body\">
  315.     {% block body %}{% endblock %}
  316.     <script type=\"text/javascript\">
  317.         \$(function (e) {
  318.             \$('[data-toggle=\"dropdown\"]').dropdown();
  319.         });
  320.     </script>
  321. </div>
  322. ""@CmsModule/Dashboard/Modal/includes/modal.html.twig""/var/www/campussuite/src/Cms/ModuleBundle/Resources/views/Dashboard/Modal/includes/modal.html.twig");
  323.     }
  324. }