<?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;
/* @PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig */
class __TwigTemplate_28e8af622ffee752ec682693cda49a21 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'header' => [$this, 'block_header'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "@PlatformControlPanel/base.html.twig";
}
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", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"));
$this->parent = $this->loadTemplate("@PlatformControlPanel/base.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_header($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"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "header"));
// line 4
echo " ";
$this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 4, "252606382")->display(twig_array_merge(twig_array_merge($context, ["subtitle" => "One Roster", "title" => twig_get_attribute($this->env, $this->source, // line 6
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 6, $this->source); })()), "name", [], "any", false, false, false, 6)]), ['_args' => twig_to_array(["subtitle" => "One Roster", "title" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 6, $this->source); })()), "name", [], "any", false, false, false, 6)])]));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 58
public function block_content($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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 59
echo " ";
if ( !twig_test_empty((isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 59, $this->source); })()))) {
// line 60
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 60)->display(twig_array_merge(twig_array_merge($context, ["text" => "Trigger Init", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, // line 63
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 63, $this->source); })()), "id", [], "any", false, false, false, 63), "action" => "init"])]), ['_args' => twig_to_array(["text" => "Trigger Init", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 63, $this->source); })()), "id", [], "any", false, false, false, 63), "action" => "init"])])]));
// line 67
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 67)->display(twig_array_merge(twig_array_merge($context, ["text" => "Trigger Stash", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, // line 70
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 70, $this->source); })()), "id", [], "any", false, false, false, 70), "action" => "stash"])]), ['_args' => twig_to_array(["text" => "Trigger Stash", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 70, $this->source); })()), "id", [], "any", false, false, false, 70), "action" => "stash"])])]));
// line 74
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 74)->display(twig_array_merge(twig_array_merge($context, ["text" => "Trigger Fix", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, // line 77
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 77, $this->source); })()), "id", [], "any", false, false, false, 77), "action" => "fix"])]), ['_args' => twig_to_array(["text" => "Trigger Fix", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 77, $this->source); })()), "id", [], "any", false, false, false, 77), "action" => "fix"])])]));
// line 81
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 81)->display(twig_array_merge(twig_array_merge($context, ["text" => "Trigger Prepare", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, // line 84
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 84, $this->source); })()), "id", [], "any", false, false, false, 84), "action" => "prepare"])]), ['_args' => twig_to_array(["text" => "Trigger Prepare", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 84, $this->source); })()), "id", [], "any", false, false, false, 84), "action" => "prepare"])])]));
// line 88
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 88)->display(twig_array_merge(twig_array_merge($context, ["text" => "Trigger Process", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, // line 91
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 91, $this->source); })()), "id", [], "any", false, false, false, 91), "action" => "process"])]), ['_args' => twig_to_array(["text" => "Trigger Process", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 91, $this->source); })()), "id", [], "any", false, false, false, 91), "action" => "process"])])]));
// line 95
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 95)->display(twig_array_merge(twig_array_merge($context, ["text" => "Trigger Link", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, // line 98
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 98, $this->source); })()), "id", [], "any", false, false, false, 98), "action" => "link"])]), ['_args' => twig_to_array(["text" => "Trigger Link", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 98, $this->source); })()), "id", [], "any", false, false, false, 98), "action" => "link"])])]));
// line 102
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 102)->display(twig_array_merge(twig_array_merge($context, ["text" => "Trigger Tweak", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, // line 105
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 105, $this->source); })()), "id", [], "any", false, false, false, 105), "action" => "tweak"])]), ['_args' => twig_to_array(["text" => "Trigger Tweak", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 105, $this->source); })()), "id", [], "any", false, false, false, 105), "action" => "tweak"])])]));
// line 109
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 109)->display(twig_array_merge(twig_array_merge($context, ["text" => "Trigger Tidy", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, // line 112
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 112, $this->source); })()), "id", [], "any", false, false, false, 112), "action" => "tidy"])]), ['_args' => twig_to_array(["text" => "Trigger Tidy", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_action", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 112, $this->source); })()), "id", [], "any", false, false, false, 112), "action" => "tidy"])])]));
// line 116
echo " <div class=\"row mt-2\">
<div class=\"col-lg-6\">
<h2>Information</h2>
<dl class=\"dl-horizontal\">
<dt>Tenant ID</dt>
<dd>";
// line 121
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 121, $this->source); })()), "tenant", [], "any", false, false, false, 121), "id", [], "any", false, false, false, 121), "html", null, true);
echo " [";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 121, $this->source); })()), "tenant", [], "any", false, false, false, 121), "uid", [], "any", false, false, false, 121), "html", null, true);
echo "]</dd>
<dt>Sync ID</dt>
<dd>";
// line 123
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 123, $this->source); })()), "id", [], "any", false, false, false, 123), "html", null, true);
echo " [";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 123, $this->source); })()), "uid", [], "any", false, false, false, 123), "html", null, true);
echo "]</dd>
<dt>Vendor</dt>
<dd>";
// line 125
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 125, $this->source); })()), "vendor", [], "any", false, false, false, 125), "html", null, true);
echo "</dd>
<dt>Schedule</dt>
<dd>";
// line 127
((twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 127, $this->source); })()), "schedule", [], "any", false, false, false, 127)) ? (print (twig_escape_filter($this->env, twig_capitalize_string_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 127, $this->source); })()), "scheduleRuleHumanReadable", [], "any", false, false, false, 127)), "html", null, true))) : (print ("—")));
echo "</dd>
<dt>Next Run</dt>
<dd>";
// line 129
((twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 129, $this->source); })()), "schedule", [], "any", false, false, false, 129)) ? (print (twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_datetime(twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 129, $this->source); })()), "nextRunAt", [], "any", false, false, false, 129)), "html", null, true))) : (print ("—")));
echo "</dd>
<dt>Api Client ID</dt>
<dd>";
// line 131
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 131, $this->source); })()), "apiClientId", [], "any", false, false, false, 131), "html", null, true);
echo "</dd>
<dt>Api Secret</dt>
<dd>";
// line 133
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 133, $this->source); })()), "apiClientSecret", [], "any", false, false, false, 133), "html", null, true);
echo "</dd>
<dt>Api Token</dt>
<dd><pre>";
// line 135
echo twig_escape_filter($this->env, json_encode(twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 135, $this->source); })()), "apiToken", [], "any", false, false, false, 135), twig_constant("JSON_PRETTY_PRINT")), "html", null, true);
echo "</pre></dd>
</dl>
</div>
<div class=\"col-lg-6\">
<h2>Sync Strategies</h2>
<dl class=\"dl-horizontal\">
";
// line 141
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_constant("STRATEGIES", (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 141, $this->source); })())));
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
// line 142
echo " <dt style=\"width: 380px;\">";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "</dt>
";
// line 143
if (twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 143, $this->source); })()), "hasStrategy", [0 => $context["value"]], "method", false, false, false, 143)) {
// line 144
echo " <dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
";
} else {
// line 146
echo " <dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
";
}
// line 148
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 149
echo " </dl>
<h2>Sync Flags</h2>
<dl class=\"dl-horizontal\">
";
// line 152
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_constant("FLAGS", (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 152, $this->source); })())));
foreach ($context['_seq'] as $context["key"] => $context["value"]) {
// line 153
echo " <dt style=\"width: 380px;\">";
echo twig_escape_filter($this->env, $context["key"], "html", null, true);
echo "</dt>
";
// line 154
if (twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 154, $this->source); })()), "hasFlag", [0 => $context["value"]], "method", false, false, false, 154)) {
// line 155
echo " <dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
";
} else {
// line 157
echo " <dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
";
}
// line 159
echo " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 160
echo " </dl>
</div>
</div>
";
// line 163
if (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 163, $this->source); })()), "jobs", [], "any", false, false, false, 163), "count", [], "any", false, false, false, 163)) {
// line 164
echo " ";
$__internal_compile_0 = ["job" => twig_get_attribute($this->env, $this->source, // line 165
(isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 165, $this->source); })()), "lastJob", [], "any", false, false, false, 165)];
if (!twig_test_iterable($__internal_compile_0)) {
throw new RuntimeError('Variables passed to the "with" tag must be a hash.', 165, $this->getSourceContext());
}
$__internal_compile_0 = twig_to_array($__internal_compile_0);
$context['_parent'] = $context;
$context = $this->env->mergeGlobals(array_merge($context, $__internal_compile_0));
// line 167
echo " <h2>Last Job</h2>
<div class=\"row\">
<div class=\"col-lg-6\">
<dl class=\"dl-horizontal\">
<dt>Job ID</dt>
<dd>";
// line 172
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 172, $this->source); })()), "id", [], "any", false, false, false, 172), "html", null, true);
echo "</dd>
<dt>Job Start Phase</dt>
<dd>";
// line 174
((twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 174, $this->source); })()), "startPhaseName", [], "any", false, false, false, 174)) ? (print (twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 174, $this->source); })()), "startPhaseName", [], "any", false, false, false, 174), "html", null, true))) : (print ("—")));
echo " [";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 174, $this->source); })()), "startPhase", [], "any", false, false, false, 174), "html", null, true);
echo "]</dd>
<dt>Job Status</dt>
<dd>";
// line 176
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 176, $this->source); })()), "status", [], "any", false, false, false, 176), "html", null, true);
echo "</dd>
<dt>Job Created</dt>
<dd>";
// line 178
echo twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_datetime(twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 178, $this->source); })()), "createdAt", [], "any", false, false, false, 178)), "html", null, true);
echo "</dd>
<dt>Job First Activity</dt>
<dd>";
// line 180
((twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 180, $this->source); })()), "firstActivityAt", [], "any", false, false, false, 180)) ? (print (twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_datetime(twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 180, $this->source); })()), "firstActivityAt", [], "any", false, false, false, 180)), "html", null, true))) : (print ("—")));
echo "</dd>
<dt>Job Last Activity</dt>
<dd>";
// line 182
((twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 182, $this->source); })()), "lastActivityAt", [], "any", false, false, false, 182)) ? (print (twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_datetime(twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 182, $this->source); })()), "lastActivityAt", [], "any", false, false, false, 182)), "html", null, true))) : (print ("—")));
echo "</dd>
<dt>Job Runtime</dt>
<dd>";
// line 184
(((twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 184, $this->source); })()), "firstActivityAt", [], "any", false, false, false, 184) && twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 184, $this->source); })()), "lastActivityAt", [], "any", false, false, false, 184))) ? (print (twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_dtspan(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 184, $this->source); })()), "lastActivityAt", [], "any", false, false, false, 184), "diff", [0 => twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 184, $this->source); })()), "firstActivityAt", [], "any", false, false, false, 184)], "method", false, false, false, 184)), "html", null, true))) : (print ("—")));
echo "</dd>
<dt>Semaphore</dt>
<dd>";
// line 186
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 186, $this->source); })()), "semaphore", [], "any", false, false, false, 186), "html", null, true);
echo "</dd>
<dt>Phases Ready</dt>
<dd style=\"font-family: monospace;\">";
// line 188
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\MiscellaneousExtension']->lpad(decbin(twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 188, $this->source); })()), "phasesReady", [], "any", false, false, false, 188)), 8, "0"), "html", null, true);
echo "</dd>
<dt>Phases Running</dt>
<dd style=\"font-family: monospace;\">";
// line 190
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\MiscellaneousExtension']->lpad(decbin(twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 190, $this->source); })()), "phasesRunning", [], "any", false, false, false, 190)), 8, "0"), "html", null, true);
echo "</dd>
<dt>Phases Complete</dt>
<dd style=\"font-family: monospace;\">";
// line 192
echo twig_escape_filter($this->env, $this->extensions['App\Twig\Extension\MiscellaneousExtension']->lpad(decbin(twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 192, $this->source); })()), "phasesComplete", [], "any", false, false, false, 192)), 8, "0"), "html", null, true);
echo "</dd>
<dt>Syncing Errors</dt>
<dd>";
// line 194
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 194, $this->source); })()), "countLogs", [], "method", false, false, false, 194), "html", null, true);
echo "</dd>
</dl>
</div>
<div class=\"col-lg-6\">
<dd class=\"dl-horizontal\">
<dt>Job Error</dt>
<dd><pre>";
// line 200
echo twig_escape_filter($this->env, json_encode(twig_get_attribute($this->env, $this->source, (isset($context["job"]) || array_key_exists("job", $context) ? $context["job"] : (function () { throw new RuntimeError('Variable "job" does not exist.', 200, $this->source); })()), "error", [], "any", false, false, false, 200), twig_constant("JSON_PRETTY_PRINT")), "html", null, true);
echo "</pre></dd>
</dd>
</div>
</div>
";
$context = $context['_parent'];
// line 205
echo " ";
if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 205, $this->source); })()), "jobs", [], "any", false, false, false, 205), "count", [], "any", false, false, false, 205) > 1)) {
// line 206
echo " <div class=\"row\">
<div class=\"col-lg-12\">
<h2>Recent Jobs</h2>
<table class=\"table table-striped\">
<thead>
<tr>
<th>Job ID</th>
<th>Started At</th>
</tr>
</thead>
<tbody>
";
// line 217
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 217, $this->source); })()), "lastJobs", [], "any", false, false, false, 217));
foreach ($context['_seq'] as $context["_key"] => $context["job"]) {
// line 218
echo " <tr>
<td>";
// line 219
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["job"], "id", [], "any", false, false, false, 219), "html", null, true);
echo "</td>
<td>";
// line 220
echo twig_escape_filter($this->env, $this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_datetime(twig_get_attribute($this->env, $this->source, $context["job"], "createdAt", [], "any", false, false, false, 220)), "html", null, true);
echo "</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['job'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 223
echo " </tbody>
</table>
</div>
</div>
";
}
// line 228
echo " ";
}
// line 229
echo " ";
} else {
// line 230
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 230)->display(twig_array_merge(twig_array_merge($context, ["text" => "Setup", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_setup", ["tenant" => twig_get_attribute($this->env, $this->source, // line 233
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 233, $this->source); })()), "id", [], "any", false, false, false, 233)]), "helper" => "primary"]), ['_args' => twig_to_array(["text" => "Setup", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_setup", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 233, $this->source); })()), "id", [], "any", false, false, false, 233)]), "helper" => "primary"])]));
// line 237
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 387 => 237, 385 => 233, 383 => 230, 380 => 229, 377 => 228, 370 => 223, 361 => 220, 357 => 219, 354 => 218, 350 => 217, 337 => 206, 334 => 205, 326 => 200, 317 => 194, 312 => 192, 307 => 190, 302 => 188, 297 => 186, 292 => 184, 287 => 182, 282 => 180, 277 => 178, 272 => 176, 265 => 174, 260 => 172, 253 => 167, 245 => 165, 243 => 164, 241 => 163, 236 => 160, 230 => 159, 226 => 157, 222 => 155, 220 => 154, 215 => 153, 211 => 152, 206 => 149, 200 => 148, 196 => 146, 192 => 144, 190 => 143, 185 => 142, 181 => 141, 172 => 135, 167 => 133, 162 => 131, 157 => 129, 152 => 127, 147 => 125, 140 => 123, 133 => 121, 126 => 116, 124 => 112, 122 => 109, 120 => 105, 118 => 102, 116 => 98, 114 => 95, 112 => 91, 110 => 88, 108 => 84, 106 => 81, 104 => 77, 102 => 74, 100 => 70, 98 => 67, 96 => 63, 94 => 60, 91 => 59, 81 => 58, 71 => 6, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
{% block header %}
{% embed '@ui/common/headers/new.html.twig' with {
subtitle: 'One Roster',
title: tenant.name
} %}
{% block actions %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Back to List',
link: path(routes.one_roster_syncs),
icon: 'arrow'
} %}
{% if cms.tenant.id == tenant.id and sync %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Delete',
link: path('platform.control_panel.dashboard.tenant.one_roster_delete', {
tenant: tenant.id,
}),
icon: 'remove',
helper: 'danger'
} %}
{% endif %}
{% if sync %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Logs',
link: 'https://' ~ tenant.slug ~ '.' ~ cms.contextManager.globalContext.dashboard(true) ~ '/_dashboard/logs/oneroster',
icon: 'flag'
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Explorer',
link: path('platform.control_panel.dashboard.tenant.one_roster_explorer', {
tenant: tenant.id,
}),
icon: 'rocket'
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: sync.active ? 'Pause' : 'Activate',
link: path('platform.control_panel.dashboard.tenant.one_roster_toggle_sync', {
tenant: tenant.id,
}),
icon: sync.active ? 'pause' : 'play',
helper: 'warning'
} %}
{% endif %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Setup',
link: path('platform.control_panel.dashboard.tenant.one_roster_setup', {
tenant: tenant.id,
}),
icon: 'gear',
helper: 'info'
} %}
{% endblock %}
{% endembed %}
{% endblock %}
{% block content %}
{% if sync is not empty %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Init',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'init',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Stash',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'stash',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Fix',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'fix',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Prepare',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'prepare',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Process',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'process',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Link',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'link',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Tweak',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'tweak',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Tidy',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'tidy',
}),
} %}
<div class=\"row mt-2\">
<div class=\"col-lg-6\">
<h2>Information</h2>
<dl class=\"dl-horizontal\">
<dt>Tenant ID</dt>
<dd>{{ sync.tenant.id }} [{{ sync.tenant.uid }}]</dd>
<dt>Sync ID</dt>
<dd>{{ sync.id }} [{{ sync.uid }}]</dd>
<dt>Vendor</dt>
<dd>{{ sync.vendor }}</dd>
<dt>Schedule</dt>
<dd>{{- sync.schedule ? sync.scheduleRuleHumanReadable|capitalize : '—' -}}</dd>
<dt>Next Run</dt>
<dd>{{- sync.schedule ? sync.nextRunAt|ui_datetime : '—' -}}</dd>
<dt>Api Client ID</dt>
<dd>{{ sync.apiClientId }}</dd>
<dt>Api Secret</dt>
<dd>{{ sync.apiClientSecret }}</dd>
<dt>Api Token</dt>
<dd><pre>{{ sync.apiToken|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></dd>
</dl>
</div>
<div class=\"col-lg-6\">
<h2>Sync Strategies</h2>
<dl class=\"dl-horizontal\">
{% for key,value in constant('STRATEGIES', sync) %}
<dt style=\"width: 380px;\">{{ key }}</dt>
{% if sync.hasStrategy(value) %}
<dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
{% else %}
<dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
{% endif %}
{% endfor %}
</dl>
<h2>Sync Flags</h2>
<dl class=\"dl-horizontal\">
{% for key,value in constant('FLAGS', sync) %}
<dt style=\"width: 380px;\">{{ key }}</dt>
{% if sync.hasFlag(value) %}
<dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
{% else %}
<dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
{% endif %}
{% endfor %}
</dl>
</div>
</div>
{% if sync.jobs.count %}
{% with {
job: sync.lastJob
} %}
<h2>Last Job</h2>
<div class=\"row\">
<div class=\"col-lg-6\">
<dl class=\"dl-horizontal\">
<dt>Job ID</dt>
<dd>{{ job.id }}</dd>
<dt>Job Start Phase</dt>
<dd>{{ job.startPhaseName ?: '—' }} [{{ job.startPhase }}]</dd>
<dt>Job Status</dt>
<dd>{{ job.status }}</dd>
<dt>Job Created</dt>
<dd>{{ job.createdAt|ui_datetime }}</dd>
<dt>Job First Activity</dt>
<dd>{{ (job.firstActivityAt) ? job.firstActivityAt|ui_datetime : '—' }}</dd>
<dt>Job Last Activity</dt>
<dd>{{ (job.lastActivityAt) ? job.lastActivityAt|ui_datetime : '—' }}</dd>
<dt>Job Runtime</dt>
<dd>{{ (job.firstActivityAt and job.lastActivityAt) ? job.lastActivityAt.diff(job.firstActivityAt)|ui_dtspan : '—' }}</dd>
<dt>Semaphore</dt>
<dd>{{ job.semaphore }}</dd>
<dt>Phases Ready</dt>
<dd style=\"font-family: monospace;\">{{ job.phasesReady|decbin|lpad(8, '0') }}</dd>
<dt>Phases Running</dt>
<dd style=\"font-family: monospace;\">{{ job.phasesRunning|decbin|lpad(8, '0') }}</dd>
<dt>Phases Complete</dt>
<dd style=\"font-family: monospace;\">{{ job.phasesComplete|decbin|lpad(8, '0') }}</dd>
<dt>Syncing Errors</dt>
<dd>{{ job.countLogs() }}</dd>
</dl>
</div>
<div class=\"col-lg-6\">
<dd class=\"dl-horizontal\">
<dt>Job Error</dt>
<dd><pre>{{ job.error|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></dd>
</dd>
</div>
</div>
{% endwith %}
{% if sync.jobs.count > 1 %}
<div class=\"row\">
<div class=\"col-lg-12\">
<h2>Recent Jobs</h2>
<table class=\"table table-striped\">
<thead>
<tr>
<th>Job ID</th>
<th>Started At</th>
</tr>
</thead>
<tbody>
{% for job in sync.lastJobs %}
<tr>
<td>{{ job.id }}</td>
<td>{{ job.createdAt|ui_datetime }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endif %}
{% else %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Setup',
link: path('platform.control_panel.dashboard.tenant.one_roster_setup', {
tenant: tenant.id
}),
helper: 'primary',
} %}
{% endif %}
{% endblock %}
", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", "/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/onerosterLanding.html.twig");
}
}
/* @PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig */
class __TwigTemplate_28e8af622ffee752ec682693cda49a21___252606382 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'actions' => [$this, 'block_actions'],
];
}
protected function doGetParent(array $context)
{
// line 4
return "@ui/common/headers/new.html.twig";
}
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", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"));
$this->parent = $this->loadTemplate("@ui/common/headers/new.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 4);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 8
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"));
// line 9
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 9)->display(twig_array_merge(twig_array_merge($context, ["text" => "Back to List", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env, $this->source, // line 11
(isset($context["routes"]) || array_key_exists("routes", $context) ? $context["routes"] : (function () { throw new RuntimeError('Variable "routes" does not exist.', 11, $this->source); })()), "one_roster_syncs", [], "any", false, false, false, 11)), "icon" => "arrow"]), ['_args' => twig_to_array(["text" => "Back to List", "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.', 11, $this->source); })()), "one_roster_syncs", [], "any", false, false, false, 11)), "icon" => "arrow"])]));
// line 14
echo " ";
if (((twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["cms"]) || array_key_exists("cms", $context) ? $context["cms"] : (function () { throw new RuntimeError('Variable "cms" does not exist.', 14, $this->source); })()), "tenant", [], "any", false, false, false, 14), "id", [], "any", false, false, false, 14) == twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 14, $this->source); })()), "id", [], "any", false, false, false, 14)) && (isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 14, $this->source); })()))) {
// line 15
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 15)->display(twig_array_merge(twig_array_merge($context, ["text" => "Delete", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_delete", ["tenant" => twig_get_attribute($this->env, $this->source, // line 18
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 18, $this->source); })()), "id", [], "any", false, false, false, 18)]), "icon" => "remove", "helper" => "danger"]), ['_args' => twig_to_array(["text" => "Delete", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_delete", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 18, $this->source); })()), "id", [], "any", false, false, false, 18)]), "icon" => "remove", "helper" => "danger"])]));
// line 23
echo " ";
}
// line 24
echo " ";
if ((isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 24, $this->source); })())) {
// line 25
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 25)->display(twig_array_merge(twig_array_merge($context, ["text" => "Logs", "link" => (((("https://" . twig_get_attribute($this->env, $this->source, // line 27
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 27, $this->source); })()), "slug", [], "any", false, false, false, 27)) . ".") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["cms"]) || array_key_exists("cms", $context) ? $context["cms"] : (function () { throw new RuntimeError('Variable "cms" does not exist.', 27, $this->source); })()), "contextManager", [], "any", false, false, false, 27), "globalContext", [], "any", false, false, false, 27), "dashboard", [0 => true], "method", false, false, false, 27)) . "/_dashboard/logs/oneroster"), "icon" => "flag"]), ['_args' => twig_to_array(["text" => "Logs", "link" => (((("https://" . twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 27, $this->source); })()), "slug", [], "any", false, false, false, 27)) . ".") . twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["cms"]) || array_key_exists("cms", $context) ? $context["cms"] : (function () { throw new RuntimeError('Variable "cms" does not exist.', 27, $this->source); })()), "contextManager", [], "any", false, false, false, 27), "globalContext", [], "any", false, false, false, 27), "dashboard", [0 => true], "method", false, false, false, 27)) . "/_dashboard/logs/oneroster"), "icon" => "flag"])]));
// line 30
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 30)->display(twig_array_merge(twig_array_merge($context, ["text" => "Explorer", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_explorer", ["tenant" => twig_get_attribute($this->env, $this->source, // line 33
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 33, $this->source); })()), "id", [], "any", false, false, false, 33)]), "icon" => "rocket"]), ['_args' => twig_to_array(["text" => "Explorer", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_explorer", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 33, $this->source); })()), "id", [], "any", false, false, false, 33)]), "icon" => "rocket"])]));
// line 37
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 37)->display(twig_array_merge(twig_array_merge($context, ["text" => ((twig_get_attribute($this->env, $this->source, // line 38
(isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 38, $this->source); })()), "active", [], "any", false, false, false, 38)) ? ("Pause") : ("Activate")), "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_toggle_sync", ["tenant" => twig_get_attribute($this->env, $this->source, // line 40
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 40, $this->source); })()), "id", [], "any", false, false, false, 40)]), "icon" => ((twig_get_attribute($this->env, $this->source, // line 42
(isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 42, $this->source); })()), "active", [], "any", false, false, false, 42)) ? ("pause") : ("play")), "helper" => "warning"]), ['_args' => twig_to_array(["text" => ((twig_get_attribute($this->env, $this->source, // line 38
(isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 38, $this->source); })()), "active", [], "any", false, false, false, 38)) ? ("Pause") : ("Activate")), "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_toggle_sync", ["tenant" => twig_get_attribute($this->env, $this->source, // line 40
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 40, $this->source); })()), "id", [], "any", false, false, false, 40)]), "icon" => ((twig_get_attribute($this->env, $this->source, // line 42
(isset($context["sync"]) || array_key_exists("sync", $context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.', 42, $this->source); })()), "active", [], "any", false, false, false, 42)) ? ("pause") : ("play")), "helper" => "warning"])]));
// line 45
echo " ";
}
// line 46
echo " ";
$this->loadTemplate("@ui/common/buttons/default.html.twig", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", 46)->display(twig_array_merge(twig_array_merge($context, ["text" => "Setup", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_setup", ["tenant" => twig_get_attribute($this->env, $this->source, // line 49
(isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 49, $this->source); })()), "id", [], "any", false, false, false, 49)]), "icon" => "gear", "helper" => "info"]), ['_args' => twig_to_array(["text" => "Setup", "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("platform.control_panel.dashboard.tenant.one_roster_setup", ["tenant" => twig_get_attribute($this->env, $this->source, (isset($context["tenant"]) || array_key_exists("tenant", $context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.', 49, $this->source); })()), "id", [], "any", false, false, false, 49)]), "icon" => "gear", "helper" => "info"])]));
// line 54
echo " ";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 751 => 54, 749 => 49, 747 => 46, 744 => 45, 742 => 42, 741 => 40, 740 => 38, 739 => 42, 738 => 40, 737 => 38, 735 => 37, 733 => 33, 731 => 30, 729 => 27, 727 => 25, 724 => 24, 721 => 23, 719 => 18, 717 => 15, 714 => 14, 712 => 11, 710 => 9, 700 => 8, 677 => 4, 387 => 237, 385 => 233, 383 => 230, 380 => 229, 377 => 228, 370 => 223, 361 => 220, 357 => 219, 354 => 218, 350 => 217, 337 => 206, 334 => 205, 326 => 200, 317 => 194, 312 => 192, 307 => 190, 302 => 188, 297 => 186, 292 => 184, 287 => 182, 282 => 180, 277 => 178, 272 => 176, 265 => 174, 260 => 172, 253 => 167, 245 => 165, 243 => 164, 241 => 163, 236 => 160, 230 => 159, 226 => 157, 222 => 155, 220 => 154, 215 => 153, 211 => 152, 206 => 149, 200 => 148, 196 => 146, 192 => 144, 190 => 143, 185 => 142, 181 => 141, 172 => 135, 167 => 133, 162 => 131, 157 => 129, 152 => 127, 147 => 125, 140 => 123, 133 => 121, 126 => 116, 124 => 112, 122 => 109, 120 => 105, 118 => 102, 116 => 98, 114 => 95, 112 => 91, 110 => 88, 108 => 84, 106 => 81, 104 => 77, 102 => 74, 100 => 70, 98 => 67, 96 => 63, 94 => 60, 91 => 59, 81 => 58, 71 => 6, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
{% block header %}
{% embed '@ui/common/headers/new.html.twig' with {
subtitle: 'One Roster',
title: tenant.name
} %}
{% block actions %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Back to List',
link: path(routes.one_roster_syncs),
icon: 'arrow'
} %}
{% if cms.tenant.id == tenant.id and sync %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Delete',
link: path('platform.control_panel.dashboard.tenant.one_roster_delete', {
tenant: tenant.id,
}),
icon: 'remove',
helper: 'danger'
} %}
{% endif %}
{% if sync %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Logs',
link: 'https://' ~ tenant.slug ~ '.' ~ cms.contextManager.globalContext.dashboard(true) ~ '/_dashboard/logs/oneroster',
icon: 'flag'
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Explorer',
link: path('platform.control_panel.dashboard.tenant.one_roster_explorer', {
tenant: tenant.id,
}),
icon: 'rocket'
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: sync.active ? 'Pause' : 'Activate',
link: path('platform.control_panel.dashboard.tenant.one_roster_toggle_sync', {
tenant: tenant.id,
}),
icon: sync.active ? 'pause' : 'play',
helper: 'warning'
} %}
{% endif %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Setup',
link: path('platform.control_panel.dashboard.tenant.one_roster_setup', {
tenant: tenant.id,
}),
icon: 'gear',
helper: 'info'
} %}
{% endblock %}
{% endembed %}
{% endblock %}
{% block content %}
{% if sync is not empty %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Init',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'init',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Stash',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'stash',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Fix',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'fix',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Prepare',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'prepare',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Process',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'process',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Link',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'link',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Tweak',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'tweak',
}),
} %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Trigger Tidy',
link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
tenant: tenant.id,
action: 'tidy',
}),
} %}
<div class=\"row mt-2\">
<div class=\"col-lg-6\">
<h2>Information</h2>
<dl class=\"dl-horizontal\">
<dt>Tenant ID</dt>
<dd>{{ sync.tenant.id }} [{{ sync.tenant.uid }}]</dd>
<dt>Sync ID</dt>
<dd>{{ sync.id }} [{{ sync.uid }}]</dd>
<dt>Vendor</dt>
<dd>{{ sync.vendor }}</dd>
<dt>Schedule</dt>
<dd>{{- sync.schedule ? sync.scheduleRuleHumanReadable|capitalize : '—' -}}</dd>
<dt>Next Run</dt>
<dd>{{- sync.schedule ? sync.nextRunAt|ui_datetime : '—' -}}</dd>
<dt>Api Client ID</dt>
<dd>{{ sync.apiClientId }}</dd>
<dt>Api Secret</dt>
<dd>{{ sync.apiClientSecret }}</dd>
<dt>Api Token</dt>
<dd><pre>{{ sync.apiToken|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></dd>
</dl>
</div>
<div class=\"col-lg-6\">
<h2>Sync Strategies</h2>
<dl class=\"dl-horizontal\">
{% for key,value in constant('STRATEGIES', sync) %}
<dt style=\"width: 380px;\">{{ key }}</dt>
{% if sync.hasStrategy(value) %}
<dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
{% else %}
<dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
{% endif %}
{% endfor %}
</dl>
<h2>Sync Flags</h2>
<dl class=\"dl-horizontal\">
{% for key,value in constant('FLAGS', sync) %}
<dt style=\"width: 380px;\">{{ key }}</dt>
{% if sync.hasFlag(value) %}
<dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
{% else %}
<dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
{% endif %}
{% endfor %}
</dl>
</div>
</div>
{% if sync.jobs.count %}
{% with {
job: sync.lastJob
} %}
<h2>Last Job</h2>
<div class=\"row\">
<div class=\"col-lg-6\">
<dl class=\"dl-horizontal\">
<dt>Job ID</dt>
<dd>{{ job.id }}</dd>
<dt>Job Start Phase</dt>
<dd>{{ job.startPhaseName ?: '—' }} [{{ job.startPhase }}]</dd>
<dt>Job Status</dt>
<dd>{{ job.status }}</dd>
<dt>Job Created</dt>
<dd>{{ job.createdAt|ui_datetime }}</dd>
<dt>Job First Activity</dt>
<dd>{{ (job.firstActivityAt) ? job.firstActivityAt|ui_datetime : '—' }}</dd>
<dt>Job Last Activity</dt>
<dd>{{ (job.lastActivityAt) ? job.lastActivityAt|ui_datetime : '—' }}</dd>
<dt>Job Runtime</dt>
<dd>{{ (job.firstActivityAt and job.lastActivityAt) ? job.lastActivityAt.diff(job.firstActivityAt)|ui_dtspan : '—' }}</dd>
<dt>Semaphore</dt>
<dd>{{ job.semaphore }}</dd>
<dt>Phases Ready</dt>
<dd style=\"font-family: monospace;\">{{ job.phasesReady|decbin|lpad(8, '0') }}</dd>
<dt>Phases Running</dt>
<dd style=\"font-family: monospace;\">{{ job.phasesRunning|decbin|lpad(8, '0') }}</dd>
<dt>Phases Complete</dt>
<dd style=\"font-family: monospace;\">{{ job.phasesComplete|decbin|lpad(8, '0') }}</dd>
<dt>Syncing Errors</dt>
<dd>{{ job.countLogs() }}</dd>
</dl>
</div>
<div class=\"col-lg-6\">
<dd class=\"dl-horizontal\">
<dt>Job Error</dt>
<dd><pre>{{ job.error|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></dd>
</dd>
</div>
</div>
{% endwith %}
{% if sync.jobs.count > 1 %}
<div class=\"row\">
<div class=\"col-lg-12\">
<h2>Recent Jobs</h2>
<table class=\"table table-striped\">
<thead>
<tr>
<th>Job ID</th>
<th>Started At</th>
</tr>
</thead>
<tbody>
{% for job in sync.lastJobs %}
<tr>
<td>{{ job.id }}</td>
<td>{{ job.createdAt|ui_datetime }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% endif %}
{% else %}
{% include '@ui/common/buttons/default.html.twig' with {
text: 'Setup',
link: path('platform.control_panel.dashboard.tenant.one_roster_setup', {
tenant: tenant.id
}),
helper: 'primary',
} %}
{% endif %}
{% endblock %}
", "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig", "/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/onerosterLanding.html.twig");
}
}