var/cache/test/twig/22/221353bd8817c82634793e03b6cf7166.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig */
  14. class __TwigTemplate_28e8af622ffee752ec682693cda49a21 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'header' => [$this'block_header'],
  24.             'content' => [$this'block_content'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@PlatformControlPanel/base.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"));
  39.         $this->parent $this->loadTemplate("@PlatformControlPanel/base.html.twig""@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_header($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  54.         // line 4
  55.         echo "    ";
  56.         $this->loadTemplate("@PlatformControlPanel/Dashboard/Tenant/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
  57. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'6$this->source); })()), "name", [], "any"falsefalsefalse6)]), ['_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"falsefalsefalse6)])]));
  58.         
  59.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  60.         
  61.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  62.     }
  63.     // line 58
  64.     public function block_content($context, array $blocks = [])
  65.     {
  66.         $macros $this->macros;
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  68.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  70.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  71.         // line 59
  72.         echo "    ";
  73.         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); })()))) {
  74.             // line 60
  75.             echo "        ";
  76.             $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
  77. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'63$this->source); })()), "id", [], "any"falsefalsefalse63), "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"falsefalsefalse63), "action" => "init"])])]));
  78.             // line 67
  79.             echo "        ";
  80.             $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
  81. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'70$this->source); })()), "id", [], "any"falsefalsefalse70), "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"falsefalsefalse70), "action" => "stash"])])]));
  82.             // line 74
  83.             echo "        ";
  84.             $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
  85. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'77$this->source); })()), "id", [], "any"falsefalsefalse77), "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"falsefalsefalse77), "action" => "fix"])])]));
  86.             // line 81
  87.             echo "        ";
  88.             $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
  89. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'84$this->source); })()), "id", [], "any"falsefalsefalse84), "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"falsefalsefalse84), "action" => "prepare"])])]));
  90.             // line 88
  91.             echo "        ";
  92.             $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
  93. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'91$this->source); })()), "id", [], "any"falsefalsefalse91), "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"falsefalsefalse91), "action" => "process"])])]));
  94.             // line 95
  95.             echo "        ";
  96.             $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
  97. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'98$this->source); })()), "id", [], "any"falsefalsefalse98), "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"falsefalsefalse98), "action" => "link"])])]));
  98.             // line 102
  99.             echo "        ";
  100.             $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
  101. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'105$this->source); })()), "id", [], "any"falsefalsefalse105), "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"falsefalsefalse105), "action" => "tweak"])])]));
  102.             // line 109
  103.             echo "        ";
  104.             $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
  105. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'112$this->source); })()), "id", [], "any"falsefalsefalse112), "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"falsefalsefalse112), "action" => "tidy"])])]));
  106.             // line 116
  107.             echo "        <div class=\"row mt-2\">
  108.             <div class=\"col-lg-6\">
  109.                 <h2>Information</h2>
  110.                 <dl class=\"dl-horizontal\">
  111.                     <dt>Tenant ID</dt>
  112.                     <dd>";
  113.             // line 121
  114.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse121), "id", [], "any"falsefalsefalse121), "html"nulltrue);
  115.             echo " [";
  116.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse121), "uid", [], "any"falsefalsefalse121), "html"nulltrue);
  117.             echo "]</dd>
  118.                     <dt>Sync ID</dt>
  119.                     <dd>";
  120.             // line 123
  121.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse123), "html"nulltrue);
  122.             echo " [";
  123.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse123), "html"nulltrue);
  124.             echo "]</dd>
  125.                     <dt>Vendor</dt>
  126.                     <dd>";
  127.             // line 125
  128.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse125), "html"nulltrue);
  129.             echo "</dd>
  130.                     <dt>Schedule</dt>
  131.                     <dd>";
  132.             // line 127
  133.             ((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"falsefalsefalse127)) ? (print (twig_escape_filter($this->envtwig_capitalize_string_filter($this->envtwig_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"falsefalsefalse127)), "html"nulltrue))) : (print ("—")));
  134.             echo "</dd>
  135.                     <dt>Next Run</dt>
  136.                     <dd>";
  137.             // line 129
  138.             ((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"falsefalsefalse129)) ? (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"falsefalsefalse129)), "html"nulltrue))) : (print ("—")));
  139.             echo "</dd>
  140.                     <dt>Api Client ID</dt>
  141.                     <dd>";
  142.             // line 131
  143.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse131), "html"nulltrue);
  144.             echo "</dd>
  145.                     <dt>Api Secret</dt>
  146.                     <dd>";
  147.             // line 133
  148.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse133), "html"nulltrue);
  149.             echo "</dd>
  150.                     <dt>Api Token</dt>
  151.                     <dd><pre>";
  152.             // line 135
  153.             echo twig_escape_filter($this->envjson_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"falsefalsefalse135), twig_constant("JSON_PRETTY_PRINT")), "html"nulltrue);
  154.             echo "</pre></dd>
  155.                 </dl>
  156.             </div>
  157.             <div class=\"col-lg-6\">
  158.                 <h2>Sync Strategies</h2>
  159.                 <dl class=\"dl-horizontal\">
  160.                     ";
  161.             // line 141
  162.             $context['_parent'] = $context;
  163.             $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); })())));
  164.             foreach ($context['_seq'] as $context["key"] => $context["value"]) {
  165.                 // line 142
  166.                 echo "                        <dt style=\"width: 380px;\">";
  167.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  168.                 echo "</dt>
  169.                         ";
  170.                 // line 143
  171.                 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", [=> $context["value"]], "method"falsefalsefalse143)) {
  172.                     // line 144
  173.                     echo "                            <dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
  174.                         ";
  175.                 } else {
  176.                     // line 146
  177.                     echo "                            <dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
  178.                         ";
  179.                 }
  180.                 // line 148
  181.                 echo "                    ";
  182.             }
  183.             $_parent $context['_parent'];
  184.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
  185.             $context array_intersect_key($context$_parent) + $_parent;
  186.             // line 149
  187.             echo "                </dl>
  188.                 <h2>Sync Flags</h2>
  189.                 <dl class=\"dl-horizontal\">
  190.                     ";
  191.             // line 152
  192.             $context['_parent'] = $context;
  193.             $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); })())));
  194.             foreach ($context['_seq'] as $context["key"] => $context["value"]) {
  195.                 // line 153
  196.                 echo "                        <dt style=\"width: 380px;\">";
  197.                 echo twig_escape_filter($this->env$context["key"], "html"nulltrue);
  198.                 echo "</dt>
  199.                         ";
  200.                 // line 154
  201.                 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", [=> $context["value"]], "method"falsefalsefalse154)) {
  202.                     // line 155
  203.                     echo "                            <dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
  204.                         ";
  205.                 } else {
  206.                     // line 157
  207.                     echo "                            <dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
  208.                         ";
  209.                 }
  210.                 // line 159
  211.                 echo "                    ";
  212.             }
  213.             $_parent $context['_parent'];
  214.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['value'], $context['_parent'], $context['loop']);
  215.             $context array_intersect_key($context$_parent) + $_parent;
  216.             // line 160
  217.             echo "                </dl>
  218.             </div>
  219.         </div>
  220.         ";
  221.             // line 163
  222.             if (twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse163), "count", [], "any"falsefalsefalse163)) {
  223.                 // line 164
  224.                 echo "            ";
  225.                 $__internal_compile_0 = ["job" => twig_get_attribute($this->env$this->source,                 // line 165
  226. (isset($context["sync"]) || array_key_exists("sync"$context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.'165$this->source); })()), "lastJob", [], "any"falsefalsefalse165)];
  227.                 if (!twig_test_iterable($__internal_compile_0)) {
  228.                     throw new RuntimeError('Variables passed to the "with" tag must be a hash.'165$this->getSourceContext());
  229.                 }
  230.                 $__internal_compile_0 twig_to_array($__internal_compile_0);
  231.                 $context['_parent'] = $context;
  232.                 $context $this->env->mergeGlobals(array_merge($context$__internal_compile_0));
  233.                 // line 167
  234.                 echo "                <h2>Last Job</h2>
  235.                 <div class=\"row\">
  236.                     <div class=\"col-lg-6\">
  237.                         <dl class=\"dl-horizontal\">
  238.                             <dt>Job ID</dt>
  239.                             <dd>";
  240.                 // line 172
  241.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse172), "html"nulltrue);
  242.                 echo "</dd>
  243.                             <dt>Job Start Phase</dt>
  244.                             <dd>";
  245.                 // line 174
  246.                 ((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"falsefalsefalse174)) ? (print (twig_escape_filter($this->envtwig_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"falsefalsefalse174), "html"nulltrue))) : (print ("—")));
  247.                 echo " [";
  248.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse174), "html"nulltrue);
  249.                 echo "]</dd>
  250.                             <dt>Job Status</dt>
  251.                             <dd>";
  252.                 // line 176
  253.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse176), "html"nulltrue);
  254.                 echo "</dd>
  255.                             <dt>Job Created</dt>
  256.                             <dd>";
  257.                 // line 178
  258.                 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"falsefalsefalse178)), "html"nulltrue);
  259.                 echo "</dd>
  260.                             <dt>Job First Activity</dt>
  261.                             <dd>";
  262.                 // line 180
  263.                 ((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"falsefalsefalse180)) ? (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"falsefalsefalse180)), "html"nulltrue))) : (print ("—")));
  264.                 echo "</dd>
  265.                             <dt>Job Last Activity</dt>
  266.                             <dd>";
  267.                 // line 182
  268.                 ((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"falsefalsefalse182)) ? (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"falsefalsefalse182)), "html"nulltrue))) : (print ("—")));
  269.                 echo "</dd>
  270.                             <dt>Job Runtime</dt>
  271.                             <dd>";
  272.                 // line 184
  273.                 (((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"falsefalsefalse184) && 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"falsefalsefalse184))) ? (print (twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_dtspan(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse184), "diff", [=> 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"falsefalsefalse184)], "method"falsefalsefalse184)), "html"nulltrue))) : (print ("—")));
  274.                 echo "</dd>
  275.                             <dt>Semaphore</dt>
  276.                             <dd>";
  277.                 // line 186
  278.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse186), "html"nulltrue);
  279.                 echo "</dd>
  280.                             <dt>Phases Ready</dt>
  281.                             <dd style=\"font-family: monospace;\">";
  282.                 // line 188
  283.                 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"falsefalsefalse188)), 8"0"), "html"nulltrue);
  284.                 echo "</dd>
  285.                             <dt>Phases Running</dt>
  286.                             <dd style=\"font-family: monospace;\">";
  287.                 // line 190
  288.                 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"falsefalsefalse190)), 8"0"), "html"nulltrue);
  289.                 echo "</dd>
  290.                             <dt>Phases Complete</dt>
  291.                             <dd style=\"font-family: monospace;\">";
  292.                 // line 192
  293.                 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"falsefalsefalse192)), 8"0"), "html"nulltrue);
  294.                 echo "</dd>
  295.                             <dt>Syncing Errors</dt>
  296.                             <dd>";
  297.                 // line 194
  298.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse194), "html"nulltrue);
  299.                 echo "</dd>
  300.                         </dl>
  301.                     </div>
  302.                     <div class=\"col-lg-6\">
  303.                         <dd class=\"dl-horizontal\">
  304.                             <dt>Job Error</dt>
  305.                             <dd><pre>";
  306.                 // line 200
  307.                 echo twig_escape_filter($this->envjson_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"falsefalsefalse200), twig_constant("JSON_PRETTY_PRINT")), "html"nulltrue);
  308.                 echo "</pre></dd>
  309.                         </dd>
  310.                     </div>
  311.                 </div>
  312.             ";
  313.                 $context $context['_parent'];
  314.                 // line 205
  315.                 echo "            ";
  316.                 if ((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse205), "count", [], "any"falsefalsefalse205) > 1)) {
  317.                     // line 206
  318.                     echo "                <div class=\"row\">
  319.                     <div class=\"col-lg-12\">
  320.                         <h2>Recent Jobs</h2>
  321.                         <table class=\"table table-striped\">
  322.                             <thead>
  323.                                 <tr>
  324.                                     <th>Job ID</th>
  325.                                     <th>Started At</th>
  326.                                 </tr>
  327.                             </thead>
  328.                             <tbody>
  329.                             ";
  330.                     // line 217
  331.                     $context['_parent'] = $context;
  332.                     $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"falsefalsefalse217));
  333.                     foreach ($context['_seq'] as $context["_key"] => $context["job"]) {
  334.                         // line 218
  335.                         echo "                                <tr>
  336.                                     <td>";
  337.                         // line 219
  338.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["job"], "id", [], "any"falsefalsefalse219), "html"nulltrue);
  339.                         echo "</td>
  340.                                     <td>";
  341.                         // line 220
  342.                         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"falsefalsefalse220)), "html"nulltrue);
  343.                         echo "</td>
  344.                                 </tr>
  345.                             ";
  346.                     }
  347.                     $_parent $context['_parent'];
  348.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['job'], $context['_parent'], $context['loop']);
  349.                     $context array_intersect_key($context$_parent) + $_parent;
  350.                     // line 223
  351.                     echo "                            </tbody>
  352.                         </table>
  353.                     </div>
  354.                 </div>
  355.             ";
  356.                 }
  357.                 // line 228
  358.                 echo "        ";
  359.             }
  360.             // line 229
  361.             echo "    ";
  362.         } else {
  363.             // line 230
  364.             echo "        ";
  365.             $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
  366. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'233$this->source); })()), "id", [], "any"falsefalsefalse233)]), "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"falsefalsefalse233)]), "helper" => "primary"])]));
  367.             // line 237
  368.             echo "    ";
  369.         }
  370.         
  371.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  372.         
  373.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  374.     }
  375.     public function getTemplateName()
  376.     {
  377.         return "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig";
  378.     }
  379.     public function isTraitable()
  380.     {
  381.         return false;
  382.     }
  383.     public function getDebugInfo()
  384.     {
  385.         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,);
  386.     }
  387.     public function getSourceContext()
  388.     {
  389.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  390. {% block header %}
  391.     {% embed '@ui/common/headers/new.html.twig' with {
  392.         subtitle: 'One Roster',
  393.         title: tenant.name
  394.     } %}
  395.         {% block actions %}
  396.             {% include '@ui/common/buttons/default.html.twig' with {
  397.                 text: 'Back to List',
  398.                 link: path(routes.one_roster_syncs),
  399.                 icon: 'arrow'
  400.             } %}
  401.             {% if cms.tenant.id == tenant.id and sync %}
  402.                 {% include '@ui/common/buttons/default.html.twig' with {
  403.                     text: 'Delete',
  404.                     link: path('platform.control_panel.dashboard.tenant.one_roster_delete', {
  405.                         tenant: tenant.id,
  406.                     }),
  407.                     icon: 'remove',
  408.                     helper: 'danger'
  409.                 } %}
  410.             {% endif %}
  411.             {% if sync %}
  412.                 {% include '@ui/common/buttons/default.html.twig' with {
  413.                     text: 'Logs',
  414.                     link: 'https://' ~ tenant.slug ~ '.' ~ cms.contextManager.globalContext.dashboard(true) ~ '/_dashboard/logs/oneroster',
  415.                     icon: 'flag'
  416.                 } %}
  417.                 {% include '@ui/common/buttons/default.html.twig' with {
  418.                     text: 'Explorer',
  419.                     link: path('platform.control_panel.dashboard.tenant.one_roster_explorer', {
  420.                         tenant: tenant.id,
  421.                     }),
  422.                     icon: 'rocket'
  423.                 } %}
  424.                 {% include '@ui/common/buttons/default.html.twig' with {
  425.                     text: sync.active ? 'Pause' : 'Activate',
  426.                     link: path('platform.control_panel.dashboard.tenant.one_roster_toggle_sync', {
  427.                         tenant: tenant.id,
  428.                     }),
  429.                     icon: sync.active ? 'pause' : 'play',
  430.                     helper: 'warning'
  431.                 } %}
  432.             {% endif %}
  433.             {% include '@ui/common/buttons/default.html.twig' with {
  434.                 text: 'Setup',
  435.                 link: path('platform.control_panel.dashboard.tenant.one_roster_setup', {
  436.                     tenant: tenant.id,
  437.                 }),
  438.                 icon: 'gear',
  439.                 helper: 'info'
  440.             } %}
  441.         {% endblock %}
  442.     {% endembed %}
  443. {% endblock %}
  444. {% block content %}
  445.     {% if sync is not empty %}
  446.         {% include '@ui/common/buttons/default.html.twig' with {
  447.             text: 'Trigger Init',
  448.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  449.                 tenant: tenant.id,
  450.                 action: 'init',
  451.             }),
  452.         } %}
  453.         {% include '@ui/common/buttons/default.html.twig' with {
  454.             text: 'Trigger Stash',
  455.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  456.                 tenant: tenant.id,
  457.                 action: 'stash',
  458.             }),
  459.         } %}
  460.         {% include '@ui/common/buttons/default.html.twig' with {
  461.             text: 'Trigger Fix',
  462.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  463.                 tenant: tenant.id,
  464.                 action: 'fix',
  465.             }),
  466.         } %}
  467.         {% include '@ui/common/buttons/default.html.twig' with {
  468.             text: 'Trigger Prepare',
  469.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  470.                 tenant: tenant.id,
  471.                 action: 'prepare',
  472.             }),
  473.         } %}
  474.         {% include '@ui/common/buttons/default.html.twig' with {
  475.             text: 'Trigger Process',
  476.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  477.                 tenant: tenant.id,
  478.                 action: 'process',
  479.             }),
  480.         } %}
  481.         {% include '@ui/common/buttons/default.html.twig' with {
  482.             text: 'Trigger Link',
  483.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  484.                 tenant: tenant.id,
  485.                 action: 'link',
  486.             }),
  487.         } %}
  488.         {% include '@ui/common/buttons/default.html.twig' with {
  489.             text: 'Trigger Tweak',
  490.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  491.                 tenant: tenant.id,
  492.                 action: 'tweak',
  493.             }),
  494.         } %}
  495.         {% include '@ui/common/buttons/default.html.twig' with {
  496.             text: 'Trigger Tidy',
  497.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  498.                 tenant: tenant.id,
  499.                 action: 'tidy',
  500.             }),
  501.         } %}
  502.         <div class=\"row mt-2\">
  503.             <div class=\"col-lg-6\">
  504.                 <h2>Information</h2>
  505.                 <dl class=\"dl-horizontal\">
  506.                     <dt>Tenant ID</dt>
  507.                     <dd>{{ sync.tenant.id }} [{{ sync.tenant.uid }}]</dd>
  508.                     <dt>Sync ID</dt>
  509.                     <dd>{{ sync.id }} [{{ sync.uid }}]</dd>
  510.                     <dt>Vendor</dt>
  511.                     <dd>{{ sync.vendor }}</dd>
  512.                     <dt>Schedule</dt>
  513.                     <dd>{{- sync.schedule ? sync.scheduleRuleHumanReadable|capitalize : '—' -}}</dd>
  514.                     <dt>Next Run</dt>
  515.                     <dd>{{- sync.schedule ? sync.nextRunAt|ui_datetime : '—' -}}</dd>
  516.                     <dt>Api Client ID</dt>
  517.                     <dd>{{ sync.apiClientId }}</dd>
  518.                     <dt>Api Secret</dt>
  519.                     <dd>{{ sync.apiClientSecret }}</dd>
  520.                     <dt>Api Token</dt>
  521.                     <dd><pre>{{ sync.apiToken|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></dd>
  522.                 </dl>
  523.             </div>
  524.             <div class=\"col-lg-6\">
  525.                 <h2>Sync Strategies</h2>
  526.                 <dl class=\"dl-horizontal\">
  527.                     {% for key,value in constant('STRATEGIES', sync) %}
  528.                         <dt style=\"width: 380px;\">{{ key }}</dt>
  529.                         {% if sync.hasStrategy(value) %}
  530.                             <dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
  531.                         {% else %}
  532.                             <dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
  533.                         {% endif %}
  534.                     {% endfor %}
  535.                 </dl>
  536.                 <h2>Sync Flags</h2>
  537.                 <dl class=\"dl-horizontal\">
  538.                     {% for key,value in constant('FLAGS', sync) %}
  539.                         <dt style=\"width: 380px;\">{{ key }}</dt>
  540.                         {% if sync.hasFlag(value) %}
  541.                             <dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
  542.                         {% else %}
  543.                             <dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
  544.                         {% endif %}
  545.                     {% endfor %}
  546.                 </dl>
  547.             </div>
  548.         </div>
  549.         {% if sync.jobs.count %}
  550.             {% with {
  551.                 job: sync.lastJob
  552.             } %}
  553.                 <h2>Last Job</h2>
  554.                 <div class=\"row\">
  555.                     <div class=\"col-lg-6\">
  556.                         <dl class=\"dl-horizontal\">
  557.                             <dt>Job ID</dt>
  558.                             <dd>{{ job.id }}</dd>
  559.                             <dt>Job Start Phase</dt>
  560.                             <dd>{{ job.startPhaseName ?: '—' }} [{{ job.startPhase }}]</dd>
  561.                             <dt>Job Status</dt>
  562.                             <dd>{{ job.status }}</dd>
  563.                             <dt>Job Created</dt>
  564.                             <dd>{{ job.createdAt|ui_datetime }}</dd>
  565.                             <dt>Job First Activity</dt>
  566.                             <dd>{{ (job.firstActivityAt) ? job.firstActivityAt|ui_datetime : '—' }}</dd>
  567.                             <dt>Job Last Activity</dt>
  568.                             <dd>{{ (job.lastActivityAt) ? job.lastActivityAt|ui_datetime : '—' }}</dd>
  569.                             <dt>Job Runtime</dt>
  570.                             <dd>{{ (job.firstActivityAt and job.lastActivityAt) ? job.lastActivityAt.diff(job.firstActivityAt)|ui_dtspan : '—' }}</dd>
  571.                             <dt>Semaphore</dt>
  572.                             <dd>{{ job.semaphore }}</dd>
  573.                             <dt>Phases Ready</dt>
  574.                             <dd style=\"font-family: monospace;\">{{ job.phasesReady|decbin|lpad(8, '0') }}</dd>
  575.                             <dt>Phases Running</dt>
  576.                             <dd style=\"font-family: monospace;\">{{ job.phasesRunning|decbin|lpad(8, '0') }}</dd>
  577.                             <dt>Phases Complete</dt>
  578.                             <dd style=\"font-family: monospace;\">{{ job.phasesComplete|decbin|lpad(8, '0') }}</dd>
  579.                             <dt>Syncing Errors</dt>
  580.                             <dd>{{ job.countLogs() }}</dd>
  581.                         </dl>
  582.                     </div>
  583.                     <div class=\"col-lg-6\">
  584.                         <dd class=\"dl-horizontal\">
  585.                             <dt>Job Error</dt>
  586.                             <dd><pre>{{ job.error|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></dd>
  587.                         </dd>
  588.                     </div>
  589.                 </div>
  590.             {% endwith %}
  591.             {% if sync.jobs.count > 1 %}
  592.                 <div class=\"row\">
  593.                     <div class=\"col-lg-12\">
  594.                         <h2>Recent Jobs</h2>
  595.                         <table class=\"table table-striped\">
  596.                             <thead>
  597.                                 <tr>
  598.                                     <th>Job ID</th>
  599.                                     <th>Started At</th>
  600.                                 </tr>
  601.                             </thead>
  602.                             <tbody>
  603.                             {% for job in sync.lastJobs %}
  604.                                 <tr>
  605.                                     <td>{{ job.id }}</td>
  606.                                     <td>{{ job.createdAt|ui_datetime }}</td>
  607.                                 </tr>
  608.                             {% endfor %}
  609.                             </tbody>
  610.                         </table>
  611.                     </div>
  612.                 </div>
  613.             {% endif %}
  614.         {% endif %}
  615.     {% else %}
  616.         {% include '@ui/common/buttons/default.html.twig' with {
  617.             text: 'Setup',
  618.             link: path('platform.control_panel.dashboard.tenant.one_roster_setup', {
  619.                 tenant: tenant.id
  620.             }),
  621.             helper: 'primary',
  622.         } %}
  623.     {% endif %}
  624. {% endblock %}
  625. ""@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/onerosterLanding.html.twig");
  626.     }
  627. }
  628. /* @PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig */
  629. class __TwigTemplate_28e8af622ffee752ec682693cda49a21___252606382 extends \Twig\Template
  630. {
  631.     private $source;
  632.     private $macros = [];
  633.     public function __construct(Environment $env)
  634.     {
  635.         parent::__construct($env);
  636.         $this->source $this->getSourceContext();
  637.         $this->blocks = [
  638.             'actions' => [$this'block_actions'],
  639.         ];
  640.     }
  641.     protected function doGetParent(array $context)
  642.     {
  643.         // line 4
  644.         return "@ui/common/headers/new.html.twig";
  645.     }
  646.     protected function doDisplay(array $context, array $blocks = [])
  647.     {
  648.         $macros $this->macros;
  649.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  650.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"));
  651.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  652.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"));
  653.         $this->parent $this->loadTemplate("@ui/common/headers/new.html.twig""@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig"4);
  654.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  655.         
  656.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  657.         
  658.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  659.     }
  660.     // line 8
  661.     public function block_actions($context, array $blocks = [])
  662.     {
  663.         $macros $this->macros;
  664.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  665.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  666.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  667.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""actions"));
  668.         // line 9
  669.         echo "            ";
  670.         $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
  671. (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"falsefalsefalse11)), "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"falsefalsefalse11)), "icon" => "arrow"])]));
  672.         // line 14
  673.         echo "            ";
  674.         if (((twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse14), "id", [], "any"falsefalsefalse14) == 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"falsefalsefalse14)) && (isset($context["sync"]) || array_key_exists("sync"$context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.'14$this->source); })()))) {
  675.             // line 15
  676.             echo "                ";
  677.             $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
  678. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'18$this->source); })()), "id", [], "any"falsefalsefalse18)]), "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"falsefalsefalse18)]), "icon" => "remove""helper" => "danger"])]));
  679.             // line 23
  680.             echo "            ";
  681.         }
  682.         // line 24
  683.         echo "            ";
  684.         if ((isset($context["sync"]) || array_key_exists("sync"$context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.'24$this->source); })())) {
  685.             // line 25
  686.             echo "                ";
  687.             $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
  688. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'27$this->source); })()), "slug", [], "any"falsefalsefalse27)) . ".") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse27), "globalContext", [], "any"falsefalsefalse27), "dashboard", [=> true], "method"falsefalsefalse27)) . "/_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"falsefalsefalse27)) . ".") . twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse27), "globalContext", [], "any"falsefalsefalse27), "dashboard", [=> true], "method"falsefalsefalse27)) . "/_dashboard/logs/oneroster"), "icon" => "flag"])]));
  689.             // line 30
  690.             echo "                ";
  691.             $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
  692. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'33$this->source); })()), "id", [], "any"falsefalsefalse33)]), "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"falsefalsefalse33)]), "icon" => "rocket"])]));
  693.             // line 37
  694.             echo "                ";
  695.             $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
  696. (isset($context["sync"]) || array_key_exists("sync"$context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.'38$this->source); })()), "active", [], "any"falsefalsefalse38)) ? ("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
  697. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'40$this->source); })()), "id", [], "any"falsefalsefalse40)]), "icon" => ((twig_get_attribute($this->env$this->source,             // line 42
  698. (isset($context["sync"]) || array_key_exists("sync"$context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.'42$this->source); })()), "active", [], "any"falsefalsefalse42)) ? ("pause") : ("play")), "helper" => "warning"]), ['_args' => twig_to_array(["text" => ((twig_get_attribute($this->env$this->source,             // line 38
  699. (isset($context["sync"]) || array_key_exists("sync"$context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.'38$this->source); })()), "active", [], "any"falsefalsefalse38)) ? ("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
  700. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'40$this->source); })()), "id", [], "any"falsefalsefalse40)]), "icon" => ((twig_get_attribute($this->env$this->source,             // line 42
  701. (isset($context["sync"]) || array_key_exists("sync"$context) ? $context["sync"] : (function () { throw new RuntimeError('Variable "sync" does not exist.'42$this->source); })()), "active", [], "any"falsefalsefalse42)) ? ("pause") : ("play")), "helper" => "warning"])]));
  702.             // line 45
  703.             echo "            ";
  704.         }
  705.         // line 46
  706.         echo "            ";
  707.         $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
  708. (isset($context["tenant"]) || array_key_exists("tenant"$context) ? $context["tenant"] : (function () { throw new RuntimeError('Variable "tenant" does not exist.'49$this->source); })()), "id", [], "any"falsefalsefalse49)]), "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"falsefalsefalse49)]), "icon" => "gear""helper" => "info"])]));
  709.         // line 54
  710.         echo "        ";
  711.         
  712.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  713.         
  714.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  715.     }
  716.     public function getTemplateName()
  717.     {
  718.         return "@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig";
  719.     }
  720.     public function isTraitable()
  721.     {
  722.         return false;
  723.     }
  724.     public function getDebugInfo()
  725.     {
  726.         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,);
  727.     }
  728.     public function getSourceContext()
  729.     {
  730.         return new Source("{% extends '@PlatformControlPanel/base.html.twig' %}
  731. {% block header %}
  732.     {% embed '@ui/common/headers/new.html.twig' with {
  733.         subtitle: 'One Roster',
  734.         title: tenant.name
  735.     } %}
  736.         {% block actions %}
  737.             {% include '@ui/common/buttons/default.html.twig' with {
  738.                 text: 'Back to List',
  739.                 link: path(routes.one_roster_syncs),
  740.                 icon: 'arrow'
  741.             } %}
  742.             {% if cms.tenant.id == tenant.id and sync %}
  743.                 {% include '@ui/common/buttons/default.html.twig' with {
  744.                     text: 'Delete',
  745.                     link: path('platform.control_panel.dashboard.tenant.one_roster_delete', {
  746.                         tenant: tenant.id,
  747.                     }),
  748.                     icon: 'remove',
  749.                     helper: 'danger'
  750.                 } %}
  751.             {% endif %}
  752.             {% if sync %}
  753.                 {% include '@ui/common/buttons/default.html.twig' with {
  754.                     text: 'Logs',
  755.                     link: 'https://' ~ tenant.slug ~ '.' ~ cms.contextManager.globalContext.dashboard(true) ~ '/_dashboard/logs/oneroster',
  756.                     icon: 'flag'
  757.                 } %}
  758.                 {% include '@ui/common/buttons/default.html.twig' with {
  759.                     text: 'Explorer',
  760.                     link: path('platform.control_panel.dashboard.tenant.one_roster_explorer', {
  761.                         tenant: tenant.id,
  762.                     }),
  763.                     icon: 'rocket'
  764.                 } %}
  765.                 {% include '@ui/common/buttons/default.html.twig' with {
  766.                     text: sync.active ? 'Pause' : 'Activate',
  767.                     link: path('platform.control_panel.dashboard.tenant.one_roster_toggle_sync', {
  768.                         tenant: tenant.id,
  769.                     }),
  770.                     icon: sync.active ? 'pause' : 'play',
  771.                     helper: 'warning'
  772.                 } %}
  773.             {% endif %}
  774.             {% include '@ui/common/buttons/default.html.twig' with {
  775.                 text: 'Setup',
  776.                 link: path('platform.control_panel.dashboard.tenant.one_roster_setup', {
  777.                     tenant: tenant.id,
  778.                 }),
  779.                 icon: 'gear',
  780.                 helper: 'info'
  781.             } %}
  782.         {% endblock %}
  783.     {% endembed %}
  784. {% endblock %}
  785. {% block content %}
  786.     {% if sync is not empty %}
  787.         {% include '@ui/common/buttons/default.html.twig' with {
  788.             text: 'Trigger Init',
  789.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  790.                 tenant: tenant.id,
  791.                 action: 'init',
  792.             }),
  793.         } %}
  794.         {% include '@ui/common/buttons/default.html.twig' with {
  795.             text: 'Trigger Stash',
  796.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  797.                 tenant: tenant.id,
  798.                 action: 'stash',
  799.             }),
  800.         } %}
  801.         {% include '@ui/common/buttons/default.html.twig' with {
  802.             text: 'Trigger Fix',
  803.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  804.                 tenant: tenant.id,
  805.                 action: 'fix',
  806.             }),
  807.         } %}
  808.         {% include '@ui/common/buttons/default.html.twig' with {
  809.             text: 'Trigger Prepare',
  810.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  811.                 tenant: tenant.id,
  812.                 action: 'prepare',
  813.             }),
  814.         } %}
  815.         {% include '@ui/common/buttons/default.html.twig' with {
  816.             text: 'Trigger Process',
  817.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  818.                 tenant: tenant.id,
  819.                 action: 'process',
  820.             }),
  821.         } %}
  822.         {% include '@ui/common/buttons/default.html.twig' with {
  823.             text: 'Trigger Link',
  824.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  825.                 tenant: tenant.id,
  826.                 action: 'link',
  827.             }),
  828.         } %}
  829.         {% include '@ui/common/buttons/default.html.twig' with {
  830.             text: 'Trigger Tweak',
  831.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  832.                 tenant: tenant.id,
  833.                 action: 'tweak',
  834.             }),
  835.         } %}
  836.         {% include '@ui/common/buttons/default.html.twig' with {
  837.             text: 'Trigger Tidy',
  838.             link: path('platform.control_panel.dashboard.tenant.one_roster_action', {
  839.                 tenant: tenant.id,
  840.                 action: 'tidy',
  841.             }),
  842.         } %}
  843.         <div class=\"row mt-2\">
  844.             <div class=\"col-lg-6\">
  845.                 <h2>Information</h2>
  846.                 <dl class=\"dl-horizontal\">
  847.                     <dt>Tenant ID</dt>
  848.                     <dd>{{ sync.tenant.id }} [{{ sync.tenant.uid }}]</dd>
  849.                     <dt>Sync ID</dt>
  850.                     <dd>{{ sync.id }} [{{ sync.uid }}]</dd>
  851.                     <dt>Vendor</dt>
  852.                     <dd>{{ sync.vendor }}</dd>
  853.                     <dt>Schedule</dt>
  854.                     <dd>{{- sync.schedule ? sync.scheduleRuleHumanReadable|capitalize : '—' -}}</dd>
  855.                     <dt>Next Run</dt>
  856.                     <dd>{{- sync.schedule ? sync.nextRunAt|ui_datetime : '—' -}}</dd>
  857.                     <dt>Api Client ID</dt>
  858.                     <dd>{{ sync.apiClientId }}</dd>
  859.                     <dt>Api Secret</dt>
  860.                     <dd>{{ sync.apiClientSecret }}</dd>
  861.                     <dt>Api Token</dt>
  862.                     <dd><pre>{{ sync.apiToken|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></dd>
  863.                 </dl>
  864.             </div>
  865.             <div class=\"col-lg-6\">
  866.                 <h2>Sync Strategies</h2>
  867.                 <dl class=\"dl-horizontal\">
  868.                     {% for key,value in constant('STRATEGIES', sync) %}
  869.                         <dt style=\"width: 380px;\">{{ key }}</dt>
  870.                         {% if sync.hasStrategy(value) %}
  871.                             <dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
  872.                         {% else %}
  873.                             <dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
  874.                         {% endif %}
  875.                     {% endfor %}
  876.                 </dl>
  877.                 <h2>Sync Flags</h2>
  878.                 <dl class=\"dl-horizontal\">
  879.                     {% for key,value in constant('FLAGS', sync) %}
  880.                         <dt style=\"width: 380px;\">{{ key }}</dt>
  881.                         {% if sync.hasFlag(value) %}
  882.                             <dd style=\"margin-left: 400px;\"><i class=\"fa fa-check text-success\"></i></dd>
  883.                         {% else %}
  884.                             <dd style=\"margin-left: 400px;\"><i class=\"fa fa-times text-danger\"></i></dd>
  885.                         {% endif %}
  886.                     {% endfor %}
  887.                 </dl>
  888.             </div>
  889.         </div>
  890.         {% if sync.jobs.count %}
  891.             {% with {
  892.                 job: sync.lastJob
  893.             } %}
  894.                 <h2>Last Job</h2>
  895.                 <div class=\"row\">
  896.                     <div class=\"col-lg-6\">
  897.                         <dl class=\"dl-horizontal\">
  898.                             <dt>Job ID</dt>
  899.                             <dd>{{ job.id }}</dd>
  900.                             <dt>Job Start Phase</dt>
  901.                             <dd>{{ job.startPhaseName ?: '—' }} [{{ job.startPhase }}]</dd>
  902.                             <dt>Job Status</dt>
  903.                             <dd>{{ job.status }}</dd>
  904.                             <dt>Job Created</dt>
  905.                             <dd>{{ job.createdAt|ui_datetime }}</dd>
  906.                             <dt>Job First Activity</dt>
  907.                             <dd>{{ (job.firstActivityAt) ? job.firstActivityAt|ui_datetime : '—' }}</dd>
  908.                             <dt>Job Last Activity</dt>
  909.                             <dd>{{ (job.lastActivityAt) ? job.lastActivityAt|ui_datetime : '—' }}</dd>
  910.                             <dt>Job Runtime</dt>
  911.                             <dd>{{ (job.firstActivityAt and job.lastActivityAt) ? job.lastActivityAt.diff(job.firstActivityAt)|ui_dtspan : '—' }}</dd>
  912.                             <dt>Semaphore</dt>
  913.                             <dd>{{ job.semaphore }}</dd>
  914.                             <dt>Phases Ready</dt>
  915.                             <dd style=\"font-family: monospace;\">{{ job.phasesReady|decbin|lpad(8, '0') }}</dd>
  916.                             <dt>Phases Running</dt>
  917.                             <dd style=\"font-family: monospace;\">{{ job.phasesRunning|decbin|lpad(8, '0') }}</dd>
  918.                             <dt>Phases Complete</dt>
  919.                             <dd style=\"font-family: monospace;\">{{ job.phasesComplete|decbin|lpad(8, '0') }}</dd>
  920.                             <dt>Syncing Errors</dt>
  921.                             <dd>{{ job.countLogs() }}</dd>
  922.                         </dl>
  923.                     </div>
  924.                     <div class=\"col-lg-6\">
  925.                         <dd class=\"dl-horizontal\">
  926.                             <dt>Job Error</dt>
  927.                             <dd><pre>{{ job.error|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></dd>
  928.                         </dd>
  929.                     </div>
  930.                 </div>
  931.             {% endwith %}
  932.             {% if sync.jobs.count > 1 %}
  933.                 <div class=\"row\">
  934.                     <div class=\"col-lg-12\">
  935.                         <h2>Recent Jobs</h2>
  936.                         <table class=\"table table-striped\">
  937.                             <thead>
  938.                                 <tr>
  939.                                     <th>Job ID</th>
  940.                                     <th>Started At</th>
  941.                                 </tr>
  942.                             </thead>
  943.                             <tbody>
  944.                             {% for job in sync.lastJobs %}
  945.                                 <tr>
  946.                                     <td>{{ job.id }}</td>
  947.                                     <td>{{ job.createdAt|ui_datetime }}</td>
  948.                                 </tr>
  949.                             {% endfor %}
  950.                             </tbody>
  951.                         </table>
  952.                     </div>
  953.                 </div>
  954.             {% endif %}
  955.         {% endif %}
  956.     {% else %}
  957.         {% include '@ui/common/buttons/default.html.twig' with {
  958.             text: 'Setup',
  959.             link: path('platform.control_panel.dashboard.tenant.one_roster_setup', {
  960.                 tenant: tenant.id
  961.             }),
  962.             helper: 'primary',
  963.         } %}
  964.     {% endif %}
  965. {% endblock %}
  966. ""@PlatformControlPanel/Dashboard/Tenant/onerosterLanding.html.twig""/var/www/campussuite/src/Platform/ControlPanelBundle/Resources/views/Dashboard/Tenant/onerosterLanding.html.twig");
  967.     }
  968. }