var/cache/test/twig/1c/1c4e5893ab6245ac1a746086255af904.php line 214

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. /* @App/dashboard/settings/accounts/includes/_results.html.twig */
  14. class __TwigTemplate_fa76242018724e1df6644743d1d54671 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/settings/accounts/includes/_results.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/settings/accounts/includes/_results.html.twig"));
  33.         // line 1
  34.         $context["headers"] = ((twig_get_attribute($this->env$this->source, ($context["_args"] ?? null), "headers", [], "any"truetruefalse1)) ? (_twig_default_filter(twig_get_attribute($this->env$this->source, ($context["_args"] ?? null), "headers", [], "any"falsefalsefalse1), [=> ["title" => "Name""spacing" => 35"sort" => "name"], => ["title" => "Email""sort" => "email"], => ["title" => "Status""sort" => "active"], => ["title" => "Synced""spacing" => 5"sort" => "oneroster"], => ["title" => "Last Login""sort" => "last_login"], => ["title" => "Last Modified""sort" => "timestamp"]])) : ([=> ["title" => "Name""spacing" => 35"sort" => "name"], => ["title" => "Email""sort" => "email"], => ["title" => "Status""sort" => "active"], => ["title" => "Synced""spacing" => 5"sort" => "oneroster"], => ["title" => "Last Login""sort" => "last_login"], => ["title" => "Last Modified""sort" => "timestamp"]]));
  35.         // line 29
  36.         echo "
  37. ";
  38.         // line 30
  39.         $this->loadTemplate("@App/dashboard/settings/accounts/includes/_results.html.twig""@App/dashboard/settings/accounts/includes/_results.html.twig"30"1555227195")->display(twig_array_merge(twig_array_merge($context, ["form" =>         // line 31
  40. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'31$this->source); })()), "headers" =>         // line 32
  41. (isset($context["headers"]) || array_key_exists("headers"$context) ? $context["headers"] : (function () { throw new RuntimeError('Variable "headers" does not exist.'32$this->source); })()), "pagination" =>         // line 33
  42. (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'33$this->source); })())]), ['_args' => twig_to_array(["form" =>         // line 31
  43. (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'31$this->source); })()), "headers" =>         // line 32
  44. (isset($context["headers"]) || array_key_exists("headers"$context) ? $context["headers"] : (function () { throw new RuntimeError('Variable "headers" does not exist.'32$this->source); })()), "pagination" =>         // line 33
  45. (isset($context["pagination"]) || array_key_exists("pagination"$context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.'33$this->source); })())])]));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     public function getTemplateName()
  52.     {
  53.         return "@App/dashboard/settings/accounts/includes/_results.html.twig";
  54.     }
  55.     public function isTraitable()
  56.     {
  57.         return false;
  58.     }
  59.     public function getDebugInfo()
  60.     {
  61.         return array (  54 => 33,  53 => 32,  52 => 31,  51 => 33,  50 => 32,  49 => 31,  48 => 30,  45 => 29,  43 => 1,);
  62.     }
  63.     public function getSourceContext()
  64.     {
  65.         return new Source("{% set headers = _args.headers|default([
  66.     {
  67.         title: 'Name',
  68.         spacing: 35,
  69.         sort: 'name',
  70.     },
  71.     {
  72.         title: 'Email',
  73.         sort: 'email',
  74.     },
  75.     {
  76.         title: 'Status',
  77.         sort: 'active',
  78.     },
  79.     {
  80.         title: 'Synced',
  81.         spacing: 5,
  82.         sort: 'oneroster',
  83.     },
  84.     {
  85.         title: 'Last Login',
  86.         sort: 'last_login',
  87.     },
  88.     {
  89.         title: 'Last Modified',
  90.         sort: 'timestamp',
  91.     },
  92. ]) %}
  93. {% embed '@ui2022/table--search.html.twig' with {
  94.     form: form,
  95.     headers: headers,
  96.     pagination: pagination,
  97. } %}
  98.     {% block items %}
  99.         {% if accounts is empty %}
  100.             {% include '@ui2022/table__empty.html.twig' with {
  101.                 title: 'No accounts found',
  102.                 message: 'No accounts matching the criteria were found in the system.'
  103.             } %}
  104.         {% else %}
  105.             {% for account in accounts %}
  106.                 <tr>
  107.                     {% include '@ui2022/table__item__cell--status.html.twig' with {
  108.                         title: account.displayName,
  109.                         link: path('app.app.dashboard.settings.accounts.roles.main', {
  110.                             account: account.id,
  111.                         }),
  112.                         sidepanel: sidepanel,
  113.                         actions: [
  114.                              {
  115.                                 text: 'Edit',
  116.                                 link:  path('app.app.dashboard.settings.accounts.update', {
  117.                                     account: account.id,
  118.                                 }),
  119.                                 sidepanel: sidepanel,
  120.                             },
  121.                             {
  122.                                 text: 'More',
  123.                                 dropdown: {
  124.                                     items: [
  125.                                         account.active ? ({
  126.                                             text: 'Deactivate',
  127.                                             link: path('app.app.dashboard.settings.accounts.deactivate', {
  128.                                                 account: account.id,
  129.                                             }),
  130.                                             modal: 'modal__result',
  131.                                         }) : ({
  132.                                             text: 'Reactivate',
  133.                                             link: path('app.app.dashboard.settings.accounts.reactivate', {
  134.                                                 account: account.id,
  135.                                             }),
  136.                                             modal: 'modal__result',
  137.                                         }),
  138.                                         account.canManagePassword ? ({
  139.                                             text: 'Manage Password',
  140.                                             link: path('app.app.dashboard.settings.accounts.manage_password', {
  141.                                                 account: account.id,
  142.                                             }),
  143.                                             modal: 'modal__result',
  144.                                         }) : null,
  145.                                     ]
  146.                                 },
  147.                             }
  148.                         ],
  149.                     } %}
  150.                     {% include '@ui2022/table__item__cell--default.html.twig' with {
  151.                         text: account.email,
  152.                         link: path('app.app.dashboard.settings.accounts.roles.main', {
  153.                             account: account.id,
  154.                         }),
  155.                         sidepanel: sidepanel,
  156.                     } %}
  157.                     <td>{{ account.active ? 'Active' : 'Inactive' }}</td>
  158.                     <td>{{ account.oneRoster ? '<i class=\"icon-check\"></i>' : '' }}</td>
  159.                     <td>
  160.                         {{- account.lastLoggedInAt ? account.lastLoggedInAt|ui_relativeDate : '' -}}
  161.                     </td>
  162.                     <td>
  163.                         {{- account.touchedAt|ui_relativeDate -}}
  164.                     </td>
  165.                 </tr>
  166.             {% endfor %}
  167.         {% endif %}
  168.     {% endblock %}
  169. {% endembed %}
  170. ""@App/dashboard/settings/accounts/includes/_results.html.twig""/var/www/campussuite/src/App/Resources/views/dashboard/settings/accounts/includes/_results.html.twig");
  171.     }
  172. }
  173. /* @App/dashboard/settings/accounts/includes/_results.html.twig */
  174. class __TwigTemplate_fa76242018724e1df6644743d1d54671___1555227195 extends \Twig\Template
  175. {
  176.     private $source;
  177.     private $macros = [];
  178.     public function __construct(Environment $env)
  179.     {
  180.         parent::__construct($env);
  181.         $this->source $this->getSourceContext();
  182.         $this->blocks = [
  183.             'items' => [$this'block_items'],
  184.         ];
  185.     }
  186.     protected function doGetParent(array $context)
  187.     {
  188.         // line 30
  189.         return "@ui2022/table--search.html.twig";
  190.     }
  191.     protected function doDisplay(array $context, array $blocks = [])
  192.     {
  193.         $macros $this->macros;
  194.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  195.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/settings/accounts/includes/_results.html.twig"));
  196.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  197.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/settings/accounts/includes/_results.html.twig"));
  198.         $this->parent $this->loadTemplate("@ui2022/table--search.html.twig""@App/dashboard/settings/accounts/includes/_results.html.twig"30);
  199.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  200.         
  201.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  202.         
  203.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  204.     }
  205.     // line 35
  206.     public function block_items($context, array $blocks = [])
  207.     {
  208.         $macros $this->macros;
  209.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items"));
  211.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  212.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""items"));
  213.         // line 36
  214.         echo "        ";
  215.         if (twig_test_empty((isset($context["accounts"]) || array_key_exists("accounts"$context) ? $context["accounts"] : (function () { throw new RuntimeError('Variable "accounts" does not exist.'36$this->source); })()))) {
  216.             // line 37
  217.             echo "            ";
  218.             $this->loadTemplate("@ui2022/table__empty.html.twig""@App/dashboard/settings/accounts/includes/_results.html.twig"37)->display(twig_array_merge(twig_array_merge($context, ["title" => "No accounts found""message" => "No accounts matching the criteria were found in the system."]), ['_args' => twig_to_array(["title" => "No accounts found""message" => "No accounts matching the criteria were found in the system."])]));
  219.             // line 41
  220.             echo "        ";
  221.         } else {
  222.             // line 42
  223.             echo "            ";
  224.             $context['_parent'] = $context;
  225.             $context['_seq'] = twig_ensure_traversable((isset($context["accounts"]) || array_key_exists("accounts"$context) ? $context["accounts"] : (function () { throw new RuntimeError('Variable "accounts" does not exist.'42$this->source); })()));
  226.             $context['loop'] = [
  227.               'parent' => $context['_parent'],
  228.               'index0' => 0,
  229.               'index'  => 1,
  230.               'first'  => true,
  231.             ];
  232.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  233.                 $length count($context['_seq']);
  234.                 $context['loop']['revindex0'] = $length 1;
  235.                 $context['loop']['revindex'] = $length;
  236.                 $context['loop']['length'] = $length;
  237.                 $context['loop']['last'] = === $length;
  238.             }
  239.             foreach ($context['_seq'] as $context["_key"] => $context["account"]) {
  240.                 // line 43
  241.                 echo "                <tr>
  242.                     ";
  243.                 // line 44
  244.                 $this->loadTemplate("@ui2022/table__item__cell--status.html.twig""@App/dashboard/settings/accounts/includes/_results.html.twig"44)->display(twig_array_merge(twig_array_merge($context, ["title" => twig_get_attribute($this->env$this->source,                 // line 45
  245. $context["account"], "displayName", [], "any"falsefalsefalse45), "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.main", ["account" => twig_get_attribute($this->env$this->source,                 // line 47
  246. $context["account"], "id", [], "any"falsefalsefalse47)]), "sidepanel" =>                 // line 49
  247. (isset($context["sidepanel"]) || array_key_exists("sidepanel"$context) ? $context["sidepanel"] : (function () { throw new RuntimeError('Variable "sidepanel" does not exist.'49$this->source); })()), "actions" => [=> ["text" => "Edit""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.update", ["account" => twig_get_attribute($this->env$this->source,                 // line 54
  248. $context["account"], "id", [], "any"falsefalsefalse54)]), "sidepanel" =>                 // line 56
  249. (isset($context["sidepanel"]) || array_key_exists("sidepanel"$context) ? $context["sidepanel"] : (function () { throw new RuntimeError('Variable "sidepanel" does not exist.'56$this->source); })())], => ["text" => "More""dropdown" => ["items" => [=> ((twig_get_attribute($this->env$this->source,                 // line 62
  250. $context["account"], "active", [], "any"falsefalsefalse62)) ? (["text" => "Deactivate""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.deactivate", ["account" => twig_get_attribute($this->env$this->source,                 // line 65
  251. $context["account"], "id", [], "any"falsefalsefalse65)]), "modal" => "modal__result"]) : (["text" => "Reactivate""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.reactivate", ["account" => twig_get_attribute($this->env$this->source,                 // line 71
  252. $context["account"], "id", [], "any"falsefalsefalse71)]), "modal" => "modal__result"])), => ((twig_get_attribute($this->env$this->source,                 // line 75
  253. $context["account"], "canManagePassword", [], "any"falsefalsefalse75)) ? (["text" => "Manage Password""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.manage_password", ["account" => twig_get_attribute($this->env$this->source,                 // line 78
  254. $context["account"], "id", [], "any"falsefalsefalse78)]), "modal" => "modal__result"]) : (null))]]]]]), ['_args' => twig_to_array(["title" => twig_get_attribute($this->env$this->source,                 // line 45
  255. $context["account"], "displayName", [], "any"falsefalsefalse45), "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.main", ["account" => twig_get_attribute($this->env$this->source,                 // line 47
  256. $context["account"], "id", [], "any"falsefalsefalse47)]), "sidepanel" =>                 // line 49
  257. (isset($context["sidepanel"]) || array_key_exists("sidepanel"$context) ? $context["sidepanel"] : (function () { throw new RuntimeError('Variable "sidepanel" does not exist.'49$this->source); })()), "actions" => [=> ["text" => "Edit""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.update", ["account" => twig_get_attribute($this->env$this->source,                 // line 54
  258. $context["account"], "id", [], "any"falsefalsefalse54)]), "sidepanel" =>                 // line 56
  259. (isset($context["sidepanel"]) || array_key_exists("sidepanel"$context) ? $context["sidepanel"] : (function () { throw new RuntimeError('Variable "sidepanel" does not exist.'56$this->source); })())], => ["text" => "More""dropdown" => ["items" => [=> ((twig_get_attribute($this->env$this->source,                 // line 62
  260. $context["account"], "active", [], "any"falsefalsefalse62)) ? (["text" => "Deactivate""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.deactivate", ["account" => twig_get_attribute($this->env$this->source,                 // line 65
  261. $context["account"], "id", [], "any"falsefalsefalse65)]), "modal" => "modal__result"]) : (["text" => "Reactivate""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.reactivate", ["account" => twig_get_attribute($this->env$this->source,                 // line 71
  262. $context["account"], "id", [], "any"falsefalsefalse71)]), "modal" => "modal__result"])), => ((twig_get_attribute($this->env$this->source,                 // line 75
  263. $context["account"], "canManagePassword", [], "any"falsefalsefalse75)) ? (["text" => "Manage Password""link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.manage_password", ["account" => twig_get_attribute($this->env$this->source,                 // line 78
  264. $context["account"], "id", [], "any"falsefalsefalse78)]), "modal" => "modal__result"]) : (null))]]]]])]));
  265.                 // line 87
  266.                 echo "                    ";
  267.                 $this->loadTemplate("@ui2022/table__item__cell--default.html.twig""@App/dashboard/settings/accounts/includes/_results.html.twig"87)->display(twig_array_merge(twig_array_merge($context, ["text" => twig_get_attribute($this->env$this->source,                 // line 88
  268. $context["account"], "email", [], "any"falsefalsefalse88), "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.main", ["account" => twig_get_attribute($this->env$this->source,                 // line 90
  269. $context["account"], "id", [], "any"falsefalsefalse90)]), "sidepanel" =>                 // line 92
  270. (isset($context["sidepanel"]) || array_key_exists("sidepanel"$context) ? $context["sidepanel"] : (function () { throw new RuntimeError('Variable "sidepanel" does not exist.'92$this->source); })())]), ['_args' => twig_to_array(["text" => twig_get_attribute($this->env$this->source,                 // line 88
  271. $context["account"], "email", [], "any"falsefalsefalse88), "link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.main", ["account" => twig_get_attribute($this->env$this->source,                 // line 90
  272. $context["account"], "id", [], "any"falsefalsefalse90)]), "sidepanel" =>                 // line 92
  273. (isset($context["sidepanel"]) || array_key_exists("sidepanel"$context) ? $context["sidepanel"] : (function () { throw new RuntimeError('Variable "sidepanel" does not exist.'92$this->source); })())])]));
  274.                 // line 94
  275.                 echo "                    <td>";
  276.                 echo ((twig_get_attribute($this->env$this->source$context["account"], "active", [], "any"falsefalsefalse94)) ? ("Active") : ("Inactive"));
  277.                 echo "</td>
  278.                     <td>";
  279.                 // line 95
  280.                 echo ((twig_get_attribute($this->env$this->source$context["account"], "oneRoster", [], "any"falsefalsefalse95)) ? ("<i class=\"icon-check\"></i>") : (""));
  281.                 echo "</td>
  282.                     <td>";
  283.                 // line 97
  284.                 ((twig_get_attribute($this->env$this->source$context["account"], "lastLoggedInAt", [], "any"falsefalsefalse97)) ? (print (twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_relativeDate(twig_get_attribute($this->env$this->source$context["account"], "lastLoggedInAt", [], "any"falsefalsefalse97)), "html"nulltrue))) : (print ("")));
  285.                 // line 98
  286.                 echo "</td>
  287.                     <td>";
  288.                 // line 100
  289.                 echo twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_relativeDate(twig_get_attribute($this->env$this->source$context["account"], "touchedAt", [], "any"falsefalsefalse100)), "html"nulltrue);
  290.                 // line 101
  291.                 echo "</td>
  292.                 </tr>
  293.             ";
  294.                 ++$context['loop']['index0'];
  295.                 ++$context['loop']['index'];
  296.                 $context['loop']['first'] = false;
  297.                 if (isset($context['loop']['length'])) {
  298.                     --$context['loop']['revindex0'];
  299.                     --$context['loop']['revindex'];
  300.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  301.                 }
  302.             }
  303.             $_parent $context['_parent'];
  304.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['account'], $context['_parent'], $context['loop']);
  305.             $context array_intersect_key($context$_parent) + $_parent;
  306.             // line 104
  307.             echo "        ";
  308.         }
  309.         // line 105
  310.         echo "    ";
  311.         
  312.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  313.         
  314.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  315.     }
  316.     public function getTemplateName()
  317.     {
  318.         return "@App/dashboard/settings/accounts/includes/_results.html.twig";
  319.     }
  320.     public function isTraitable()
  321.     {
  322.         return false;
  323.     }
  324.     public function getDebugInfo()
  325.     {
  326.         return array (  340 => 105,  337 => 104,  321 => 101,  319 => 100,  316 => 98,  314 => 97,  310 => 95,  305 => 94,  303 => 92,  302 => 90,  301 => 88,  300 => 92,  299 => 90,  298 => 88,  296 => 87,  294 => 78,  293 => 75,  292 => 71,  291 => 65,  290 => 62,  289 => 56,  288 => 54,  287 => 49,  286 => 47,  285 => 45,  284 => 78,  283 => 75,  282 => 71,  281 => 65,  280 => 62,  279 => 56,  278 => 54,  277 => 49,  276 => 47,  275 => 45,  274 => 44,  271 => 43,  253 => 42,  250 => 41,  247 => 37,  244 => 36,  234 => 35,  211 => 30,  54 => 33,  53 => 32,  52 => 31,  51 => 33,  50 => 32,  49 => 31,  48 => 30,  45 => 29,  43 => 1,);
  327.     }
  328.     public function getSourceContext()
  329.     {
  330.         return new Source("{% set headers = _args.headers|default([
  331.     {
  332.         title: 'Name',
  333.         spacing: 35,
  334.         sort: 'name',
  335.     },
  336.     {
  337.         title: 'Email',
  338.         sort: 'email',
  339.     },
  340.     {
  341.         title: 'Status',
  342.         sort: 'active',
  343.     },
  344.     {
  345.         title: 'Synced',
  346.         spacing: 5,
  347.         sort: 'oneroster',
  348.     },
  349.     {
  350.         title: 'Last Login',
  351.         sort: 'last_login',
  352.     },
  353.     {
  354.         title: 'Last Modified',
  355.         sort: 'timestamp',
  356.     },
  357. ]) %}
  358. {% embed '@ui2022/table--search.html.twig' with {
  359.     form: form,
  360.     headers: headers,
  361.     pagination: pagination,
  362. } %}
  363.     {% block items %}
  364.         {% if accounts is empty %}
  365.             {% include '@ui2022/table__empty.html.twig' with {
  366.                 title: 'No accounts found',
  367.                 message: 'No accounts matching the criteria were found in the system.'
  368.             } %}
  369.         {% else %}
  370.             {% for account in accounts %}
  371.                 <tr>
  372.                     {% include '@ui2022/table__item__cell--status.html.twig' with {
  373.                         title: account.displayName,
  374.                         link: path('app.app.dashboard.settings.accounts.roles.main', {
  375.                             account: account.id,
  376.                         }),
  377.                         sidepanel: sidepanel,
  378.                         actions: [
  379.                              {
  380.                                 text: 'Edit',
  381.                                 link:  path('app.app.dashboard.settings.accounts.update', {
  382.                                     account: account.id,
  383.                                 }),
  384.                                 sidepanel: sidepanel,
  385.                             },
  386.                             {
  387.                                 text: 'More',
  388.                                 dropdown: {
  389.                                     items: [
  390.                                         account.active ? ({
  391.                                             text: 'Deactivate',
  392.                                             link: path('app.app.dashboard.settings.accounts.deactivate', {
  393.                                                 account: account.id,
  394.                                             }),
  395.                                             modal: 'modal__result',
  396.                                         }) : ({
  397.                                             text: 'Reactivate',
  398.                                             link: path('app.app.dashboard.settings.accounts.reactivate', {
  399.                                                 account: account.id,
  400.                                             }),
  401.                                             modal: 'modal__result',
  402.                                         }),
  403.                                         account.canManagePassword ? ({
  404.                                             text: 'Manage Password',
  405.                                             link: path('app.app.dashboard.settings.accounts.manage_password', {
  406.                                                 account: account.id,
  407.                                             }),
  408.                                             modal: 'modal__result',
  409.                                         }) : null,
  410.                                     ]
  411.                                 },
  412.                             }
  413.                         ],
  414.                     } %}
  415.                     {% include '@ui2022/table__item__cell--default.html.twig' with {
  416.                         text: account.email,
  417.                         link: path('app.app.dashboard.settings.accounts.roles.main', {
  418.                             account: account.id,
  419.                         }),
  420.                         sidepanel: sidepanel,
  421.                     } %}
  422.                     <td>{{ account.active ? 'Active' : 'Inactive' }}</td>
  423.                     <td>{{ account.oneRoster ? '<i class=\"icon-check\"></i>' : '' }}</td>
  424.                     <td>
  425.                         {{- account.lastLoggedInAt ? account.lastLoggedInAt|ui_relativeDate : '' -}}
  426.                     </td>
  427.                     <td>
  428.                         {{- account.touchedAt|ui_relativeDate -}}
  429.                     </td>
  430.                 </tr>
  431.             {% endfor %}
  432.         {% endif %}
  433.     {% endblock %}
  434. {% endembed %}
  435. ""@App/dashboard/settings/accounts/includes/_results.html.twig""/var/www/campussuite/src/App/Resources/views/dashboard/settings/accounts/includes/_results.html.twig");
  436.     }
  437. }