<?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;
/* @CmsModule/Dashboard/Modal/includes/modal.html.twig */
class __TwigTemplate_0baf6869b3818c9a1d78250d70737dc6 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'header_right' => [$this, 'block_header_right'],
'subheader' => [$this, 'block_subheader'],
'controls' => [$this, 'block_controls'],
'crumbs' => [$this, 'block_crumbs'],
'actions' => [$this, 'block_actions'],
'body' => [$this, 'block_body'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@CmsModule/Dashboard/Modal/includes/modal.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@CmsModule/Dashboard/Modal/includes/modal.html.twig"));
// line 1
echo "<div class=\"modal__header\">
<a class=\"btn btn-default btn-icon close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</a>
<div class=\"modal__row\">
<div class=\"modal__header-left\">
<select class=\"select-chosen\" data-placeholder=\"Select Department\">
<option";
// line 8
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); })())))) {
echo " selected";
}
echo " value=\"\"></option>
";
// line 9
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["current"]) {
// line 10
echo " <option";
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); })())))) {
echo " selected";
}
echo " value=\"";
echo twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->curpathFunction($this->env, $context, twig_get_attribute($this->env, $this->source, // line 12
(isset($context["routes"]) || array_key_exists("routes", $context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.', 12, $this->source); })()), "container", [], "any", false, false, false, 12), ["containerId" => twig_get_attribute($this->env, $this->source, // line 14
$context["current"], "id", [], "any", false, false, false, 14)]), "html", null, true);
// line 17
echo "\">";
echo $this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->ui_container_indent($context["current"]);
echo "</option>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['current'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 19
echo " </select>
";
// line 20
ob_start();
// line 21
echo " <script>
\$('[data-campussuite-modals-content] .modal__header .modal__header-left .select-chosen')
// chosen spacing fix
.on('change chosen:ready', function(e, params) {
(( ! params || ! params.chosen) ? \$(e.currentTarget).data('chosen') : params.chosen)
.container
.find('> .chosen-single > span, > .chosen-choices > .search-choice > span')
.each(function (index, elem) {
var \$elem = \$(elem);
\$elem.text(\$elem.text().trim());
});
})
.chosen({
width: '100%',
disable_search: true,
search_contains: true
})
.on('change', function(e, data) {
\$(this).trigger('campussuite.modals.navigate', data.selected);
})
;
</script>
";
$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");
// line 44
echo " </div>
<div class=\"modal__header-right\">
";
// line 46
$this->displayBlock('header_right', $context, $blocks);
// line 47
echo " </div>
</div>
";
// line 49
$this->displayBlock('subheader', $context, $blocks);
// line 50
echo "</div>
";
// line 52
$this->displayBlock('controls', $context, $blocks);
// line 64
echo "
<div class=\"modal__body\">
";
// line 66
$this->displayBlock('body', $context, $blocks);
// line 67
echo " <script type=\"text/javascript\">
\$(function (e) {
\$('[data-toggle=\"dropdown\"]').dropdown();
});
</script>
</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 46
public function block_header_right($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_right"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header_right"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 49
public function block_subheader($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "subheader"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "subheader"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 52
public function block_controls($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "controls"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "controls"));
// line 53
echo " <div class=\"modal__controls\">
<div class=\"modal__row\">
<div class=\"modal__breadcrumbs\">
";
// line 56
$this->displayBlock('crumbs', $context, $blocks);
// line 57
echo " </div>
<div class=\"modal__actions\">
";
// line 59
$this->displayBlock('actions', $context, $blocks);
// line 60
echo " </div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 56
public function block_crumbs($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "crumbs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "crumbs"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 59
public function block_actions($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "actions"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 66
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@CmsModule/Dashboard/Modal/includes/modal.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("<div class=\"modal__header\">
<a class=\"btn btn-default btn-icon close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</a>
<div class=\"modal__row\">
<div class=\"modal__header-left\">
<select class=\"select-chosen\" data-placeholder=\"Select Department\">
<option{% if container is not defined or container is empty %} selected{% endif %} value=\"\"></option>
{% for current in containers %}
<option{% if container is defined and container is not empty and current is same as(container) %} selected{% endif %} value=\"{{
curpath(
routes.container,
{
containerId: current.id
}
)
}}\">{{ ui_container_indent(current) }}</option>
{% endfor %}
</select>
{% inline_script %}
<script>
\$('[data-campussuite-modals-content] .modal__header .modal__header-left .select-chosen')
// chosen spacing fix
.on('change chosen:ready', function(e, params) {
(( ! params || ! params.chosen) ? \$(e.currentTarget).data('chosen') : params.chosen)
.container
.find('> .chosen-single > span, > .chosen-choices > .search-choice > span')
.each(function (index, elem) {
var \$elem = \$(elem);
\$elem.text(\$elem.text().trim());
});
})
.chosen({
width: '100%',
disable_search: true,
search_contains: true
})
.on('change', function(e, data) {
\$(this).trigger('campussuite.modals.navigate', data.selected);
})
;
</script>
{% endinline %}
</div>
<div class=\"modal__header-right\">
{% block header_right %}{% endblock %}
</div>
</div>
{% block subheader %}{% endblock %}
</div>
{% block controls %}
<div class=\"modal__controls\">
<div class=\"modal__row\">
<div class=\"modal__breadcrumbs\">
{% block crumbs %}{% endblock %}
</div>
<div class=\"modal__actions\">
{% block actions %}{% endblock %}
</div>
</div>
</div>
{% endblock %}
<div class=\"modal__body\">
{% block body %}{% endblock %}
<script type=\"text/javascript\">
\$(function (e) {
\$('[data-toggle=\"dropdown\"]').dropdown();
});
</script>
</div>
", "@CmsModule/Dashboard/Modal/includes/modal.html.twig", "/var/www/campussuite/src/Cms/ModuleBundle/Resources/views/Dashboard/Modal/includes/modal.html.twig");
}
}