var/cache/test/twig/9c/9c9d58d70764080fc1a85b2d73afa9ad.php line 678

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/roles/main.html.twig */
  14. class __TwigTemplate_f1ff329fdadd36c89488d62bc883083e 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/roles/main.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/roles/main.html.twig"));
  33.         // line 1
  34.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'1$this->source); })()), [=> "@ui2022/schoolnow/forms/themes/default.html.twig"], true);
  35.         // line 2
  36.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'2$this->source); })()), [=> "@ui2022/schoolnow/forms/themes/default.html.twig"], true);
  37.         // line 3
  38.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'3$this->source); })()), [=> "@ui2022/schoolnow/forms/themes/default.html.twig"], true);
  39.         // line 4
  40.         echo "
  41. ";
  42.         // line 5
  43.         $this->loadTemplate("@App/dashboard/settings/accounts/roles/main.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"5"1242731510")->display(twig_array_merge(twig_array_merge($context, []), ['_args' => twig_to_array([])]));
  44.         
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46.         
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48.     }
  49.     public function getTemplateName()
  50.     {
  51.         return "@App/dashboard/settings/accounts/roles/main.html.twig";
  52.     }
  53.     public function isTraitable()
  54.     {
  55.         return false;
  56.     }
  57.     public function getDebugInfo()
  58.     {
  59.         return array (  52 => 5,  49 => 4,  47 => 3,  45 => 2,  43 => 1,);
  60.     }
  61.     public function getSourceContext()
  62.     {
  63.         return new Source("{% form_theme containerRoleForm '@ui2022/schoolnow/forms/themes/default.html.twig' %}
  64. {% form_theme schoolRoleForm '@ui2022/schoolnow/forms/themes/default.html.twig' %}
  65. {% form_theme listRoleForm '@ui2022/schoolnow/forms/themes/default.html.twig' %}
  66. {% embed '@ui2022/schoolnow/modal--sidepanel__content.html.twig' with {} %}
  67.     {% block header %}
  68.         {% include '@App/dashboard/settings/accounts/includes/_header.html.twig' with {
  69.             active: 'permissions',
  70.         } %}
  71.     {% endblock %}
  72.     {% block body %}
  73.         <div class=\"contacts\">
  74.             <div class=\"row justify-content-end\">
  75.                 <span class=\"font-13 text-medium mb-3 col-auto\">Last modified: {{ account.touchedAt ? account.touchedAt|ui_relativeDate : '-' }}</span>
  76.             </div>
  77.             {% if account.internalUid %}
  78.                 <div class=\"row justify-content-end\">
  79.                     <span class=\"font-13 text-medium mb-3 col-auto\">Internal UID: {{ account.internalUid }}</span>
  80.                 </div>
  81.             {% endif %}
  82.             <div class=\"sidepanel__content--body\">
  83.                 <div class=\"contacts__tabs\">
  84.                     {% include '@App/dashboard/settings/accounts/includes/_tabs.html.twig' with {
  85.                         active: 'permissions',
  86.                     } %}
  87.                     <div class=\"tab-content\">
  88.                         {% if account.specialPermissions.superUser %}
  89.                             <div class=\"super-user-permission-block\">
  90.                                 <div class=\"super-user-permission-block-inner-container\">
  91.                                     <h1>User has \"Super Admin\" access</h1>
  92.                                     <p class=\"text-black mt-4\">
  93.                                         Super admin access grants complete control over all functions in the website. To apply more granular permissions to this user, remove Super admin access and adjust their permissions here.
  94.                                     </p>
  95.                                     <a href=\"#\" class=\"super-user-access-button mt-3\">Remove Super Admin access</a>
  96.                                 </div>
  97.                             </div>
  98.                         {% else %}
  99.                         <div class=\"messages-table uilib website-table\">
  100.                             <table class=\"grid-main-block\">
  101.                                 <tbody>
  102.                                 <tr>
  103.                                     <th class=\"heading col-6\"><img src=\"/ui2022/images/message.png\" alt=\"Message\">
  104.                                         Messages
  105.                                     </th>
  106.                                     <th class=\"col-3\">
  107.                                     </th>
  108.                                     <th class=\"col-2\">
  109.                                         <span style=\"text-decoration: underline;\">Role</span>
  110.                                     </th>
  111.                                     <th class=\"col-1\"><span> </span></th>
  112.                                 </tr>
  113.                                 {% for messageAssociation in messageAssociations %}
  114.                                     <tr class=\"grid-card\">
  115.                                         <td class=\"col-6\">
  116.                                                 <span class=\"grid-group\">
  117.                                                     <span class=\"grid-control\">
  118.                                                         {% set name =  messageAssociation.list ? messageAssociation.list.name : (messageAssociation.school ? messageAssociation.school.name : '[Global]') %}
  119.                                                         {% set icon =  messageAssociation.list ? 'icon-templates' : 'icon-school-activities-report' %}
  120.                                                         <i class=\"{{ icon }}\"></i>
  121.                                                         <span>{{ name }}</span>
  122.                                                     </span>
  123.                                                 </span>
  124.                                         </td>
  125.                                         <td class=\"checkbox-block col-3\"></td>
  126.                                         <td class=\"col-2\">
  127.                                             <span>{{ messageAssociation.role.name }}</span>
  128.                                         </td>
  129.                                         <td class=\"col-1\">
  130.                                             <span class=\"table-action\">
  131.                                                 {% include '@ui2022/a.html.twig' with {
  132.                                                     link: path('app.app.dashboard.settings.accounts.roles.delete', {
  133.                                                         account: account.id,
  134.                                                         association: messageAssociation.id,
  135.                                                     }),
  136.                                                     modal: 'modal__result__sidepanel',
  137.                                                     target: \"_modal\",
  138.                                                     html: '<i class=\"icon-delete\"></i>'
  139.                                                 } %}
  140.                                             </span>
  141.                                         </td>
  142.                                     </tr>
  143.                                 {% endfor %}
  144.                                 </tbody>
  145.                             </table>
  146.                             <div class=\"add-row-block\">
  147.                                 <div class=\"add-row\">
  148.                                     <a href=\"#\" class=\"mr-3\" data-show-form-id=\"{{ schoolRoleForm.vars.id }}\">+ Add
  149.                                         school</a>
  150.                                     <a href=\"#\" data-show-form-id=\"{{ listRoleForm.vars.id }}\">+ Add list</a>
  151.                                 </div>
  152.                                 {{ form_start(schoolRoleForm, {
  153.                                     action: path('app.app.dashboard.settings.accounts.roles.main', {
  154.                                         account: account.id,
  155.                                     }),
  156.                                     attr: {
  157.                                         target: '_modal',
  158.                                     },
  159.                                 }) }}
  160.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  161.                                     <div class=\"col-6\">
  162.                                         {{ form_widget(schoolRoleForm.school) }}
  163.                                         {{ form_errors(schoolRoleForm.school) }}
  164.                                     </div>
  165.                                     <div class=\"col-3\">
  166.                                         {{ form_widget(schoolRoleForm.role) }}
  167.                                         {{ form_errors(schoolRoleForm.role) }}
  168.                                     </div>
  169.                                     <div class=\"col-2\">
  170.                                         {% include '@ui2022/button--form.html.twig' with {
  171.                                             type: 'submit',
  172.                                             text: 'Add',
  173.                                             styles: 'md gray',
  174.                                             attr: {
  175.                                                 class: 'px-4 mr-3',
  176.                                                 disabled: 'disabled',
  177.                                             },
  178.                                         } %}
  179.                                     </div>
  180.                                     <div class=\"col-1 close-icon\">
  181.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  182.                                     </div>
  183.                                     {{ form_rest(schoolRoleForm) }}
  184.                                 </div>
  185.                                 {{ form_end(schoolRoleForm) }}
  186.                                 {{ form_start(listRoleForm, {
  187.                                     action: path('app.app.dashboard.settings.accounts.roles.main', {
  188.                                         account: account.id,
  189.                                     }),
  190.                                     attr: {
  191.                                         target: '_modal',
  192.                                     },
  193.                                 }) }}
  194.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  195.                                     <div class=\"col-6\">
  196.                                         {{ form_widget(listRoleForm.list) }}
  197.                                         {{ form_errors(listRoleForm.list) }}
  198.                                     </div>
  199.                                     <div class=\"col-3\">
  200.                                         {{ form_widget(listRoleForm.role) }}
  201.                                         {{ form_errors(listRoleForm.role) }}
  202.                                     </div>
  203.                                     <div class=\"col-2\">
  204.                                         {% include '@ui2022/button--form.html.twig' with {
  205.                                             type: 'submit',
  206.                                             text: 'Add',
  207.                                             styles: 'md gray',
  208.                                             attr: {
  209.                                                 class: 'px-4 mr-3',
  210.                                                 disabled: 'disabled',
  211.                                             },
  212.                                         } %}
  213.                                     </div>
  214.                                     <div class=\"col-1 close-icon\">
  215.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  216.                                     </div>
  217.                                     {{ form_rest(listRoleForm) }}
  218.                                 </div>
  219.                                 {{ form_end(listRoleForm) }}
  220.                             </div>
  221.                         </div>
  222.                         <div class=\"messages-table uilib website-table\">
  223.                             <table class=\"grid-main-block\">
  224.                                 <tbody>
  225.                                 <tr>
  226.                                     <th class=\"heading col-6\"><img src=\"/ui2022/images/website.png\" alt=\"Website\">
  227.                                         Website
  228.                                     </th>
  229.                                     <th class=\"col-3\">
  230.                                         <span style=\"text-decoration: underline;\">Departments</span>
  231.                                     </th>
  232.                                     <th class=\"col-2\">
  233.                                         <span style=\"text-decoration: underline;\">Role</span>
  234.                                     </th>
  235.                                     <th class=\"col-1\"><span> </span></th>
  236.                                 </tr>
  237.                                 {% for websiteAssociation in websiteAssociations %}
  238.                                     <tr class=\"grid-card\">
  239.                                         <td class=\"col-6\">
  240.                                                 <span class=\"grid-group\">
  241.                                                     <span class=\"grid-control\">
  242.                                                         <i class=\"icon-folder\"></i>
  243.                                                         <span>{{ websiteAssociation.container ? websiteAssociation.container.name : '[Global]' }}</span>
  244.                                                     </span>
  245.                                                 </span>
  246.                                         </td>
  247.                                         <td class=\"checkbox-block col-3\">
  248.                                             <span class=\"grid-group\">
  249.                                                 <span class=\"custom-control custom-checkbox\">
  250.                                                    <input
  251.                                                            type=\"checkbox\"
  252.                                                            class=\"custom-control-input\"
  253.                                                            id=\"enabled_{{ websiteAssociation.id }}\"
  254.                                                            {% if websiteAssociation.inheritance %}checked{% endif %}
  255.                                                            data-trigger=\"toggler\"
  256.                                                            data-toggler-url=\"{{ path('app.app.dashboard.settings.accounts.roles.inheritance_toggle', {
  257.                                                                accountRoleAssociation: websiteAssociation.id,
  258.                                                            }) }}\"
  259.                                                    />
  260.                                                    <label class=\"custom-control-label\"
  261.                                                           for=\"enabled_{{ websiteAssociation.id }}\"></label>
  262.                                                 </span>
  263.                                             </span>
  264.                                         </td>
  265.                                         <td class=\"col-2\">
  266.                                             <span>{{ websiteAssociation.role.name }}</span>
  267.                                         </td>
  268.                                         <td class=\"col-1\">
  269.                                             <span class=\"table-action\">
  270.                                                 {% include '@ui2022/a.html.twig' with {
  271.                                                     link: path('app.app.dashboard.settings.accounts.roles.delete', {
  272.                                                         account: account.id,
  273.                                                         association: websiteAssociation.id,
  274.                                                     }),
  275.                                                     modal: 'modal__result__sidepanel',
  276.                                                     target: \"_modal\",
  277.                                                     html: '<i class=\"icon-delete\"></i>'
  278.                                                 } %}
  279.                                             </span>
  280.                                         </td>
  281.                                     </tr>
  282.                                 {% endfor %}
  283.                                 </tbody>
  284.                             </table>
  285.                             <div class=\"add-row-block\">
  286.                                 <div class=\"add-row\">
  287.                                     <a href=\"#\" data-show-form-id=\"{{ containerRoleForm.vars.id }}\">+ Add</a>
  288.                                 </div>
  289.                                 {{ form_start(containerRoleForm, {
  290.                                     action: path('app.app.dashboard.settings.accounts.roles.main', {
  291.                                         account: account.id,
  292.                                     }),
  293.                                     attr: {
  294.                                         target: '_modal',
  295.                                     },
  296.                                 }) }}
  297.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  298.                                     <div class=\"col-6\">
  299.                                         {{ form_widget(containerRoleForm.container) }}
  300.                                         {{ form_errors(containerRoleForm.container) }}
  301.                                     </div>
  302.                                     <div class=\"col-3\">
  303.                                         {{ form_widget(containerRoleForm.role) }}
  304.                                         {{ form_errors(containerRoleForm.role) }}
  305.                                     </div>
  306.                                     <div class=\"col-2\">
  307.                                         {% include '@ui2022/button--form.html.twig' with {
  308.                                             type: 'submit',
  309.                                             text: 'Add',
  310.                                             styles: 'md gray',
  311.                                             attr: {
  312.                                                 class: 'px-4 mr-3',
  313.                                                 disabled: 'disabled',
  314.                                             },
  315.                                         } %}
  316.                                     </div>
  317.                                     <div class=\"col-1 close-icon\">
  318.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  319.                                     </div>
  320.                                     {{ form_rest(containerRoleForm) }}
  321.                                 </div>
  322.                                 {{ form_end(containerRoleForm) }}
  323.                             </div>
  324.                         </div>
  325.                         {% endif %}
  326.                     </div>
  327.                 </div>
  328.             </div>
  329.         </div>
  330.         <script>
  331.             (function (window, document, \$, undefined) {
  332.                 \$(function () {
  333.                     if (\$('.add-row-block').length > 0) {
  334.                         \$('.add-row-block .add-row a').on(\"click\", function (e) {
  335.                             e.preventDefault();
  336.                             const formId = \$(this).data('show-form-id');
  337.                             const \$form = \$('#' + formId);
  338.                             const \$addAction = \$form.find('.add-action');
  339.                             const \$iconCross = \$form.find('.icon-cross');
  340.                             const \$submitButton = \$form.find('button[type=\"submit\"]');
  341.                             const \$addRow = \$(this).parent();
  342.                             \$addAction.show();
  343.                             \$addRow.hide();
  344.                             \$iconCross.click(function (e) {
  345.                                 e.preventDefault();
  346.                                 \$addAction.hide();
  347.                                 \$addRow.show();
  348.                                 selectDefaultOption(\$addAction.find('select[required]'));
  349.                                 \$form.off('change');
  350.                                 \$submitButton.attr('disabled', 'disabled');
  351.                                 return false;
  352.                             });
  353.                             \$form.on('change', function (e) {
  354.                                 if (this.checkValidity()) {
  355.                                     \$submitButton.removeAttr('disabled');
  356.                                 } else {
  357.                                     \$submitButton.attr('disabled', 'disabled');
  358.                                 }
  359.                             });
  360.                             selectDefaultOption(\$addAction.find('select[required]'));
  361.                             return false;
  362.                         })
  363.                     }
  364.                     function selectDefaultOption(\$selects) {
  365.                         \$.each(\$selects, function (key, select) {
  366.                             let selectedIndex = 0;
  367.                             if (\$(select).find('option').length === 2) {
  368.                                 selectedIndex = 1;
  369.                             }
  370.                             \$(select).prop('selectedIndex', selectedIndex).trigger('change');
  371.                         });
  372.                     }
  373.                 })
  374.                 const \$togglerSuperadmin = \$('#toggler_superadmin');
  375.                 \$togglerSuperadmin.on('done.toggler', function() {
  376.                     \$('#sidepanel__result_view .nav-link.active').trigger('click');
  377.                 });
  378.                 \$('.super-user-access-button').on('click', function(e) {
  379.                     e.preventDefault();
  380.                     \$togglerSuperadmin.prop(\"checked\", \$togglerSuperadmin.prop(\"checked\"));
  381.                     \$togglerSuperadmin.trigger('change');
  382.                     return false;
  383.                 });
  384.             })(window, document, jQuery);
  385.         </script>
  386.         {% include '@ui2022/modal.html.twig' with {
  387.             attr: {
  388.                 id: 'modal__result__sidepanel',
  389.                 class: 'modal-ajax modal-delete',
  390.                 target: \"_modal\",
  391.             },
  392.             dialog_styles: 'dialog--createmsg',
  393.         } %}
  394.     {% endblock %}
  395. {% endembed %}
  396. ""@App/dashboard/settings/accounts/roles/main.html.twig""/var/www/campussuite/src/App/Resources/views/dashboard/settings/accounts/roles/main.html.twig");
  397.     }
  398. }
  399. /* @App/dashboard/settings/accounts/roles/main.html.twig */
  400. class __TwigTemplate_f1ff329fdadd36c89488d62bc883083e___1242731510 extends \Twig\Template
  401. {
  402.     private $source;
  403.     private $macros = [];
  404.     public function __construct(Environment $env)
  405.     {
  406.         parent::__construct($env);
  407.         $this->source $this->getSourceContext();
  408.         $this->blocks = [
  409.             'header' => [$this'block_header'],
  410.             'body' => [$this'block_body'],
  411.         ];
  412.     }
  413.     protected function doGetParent(array $context)
  414.     {
  415.         return "@ui2022/schoolnow/modal--sidepanel__content.html.twig";
  416.     }
  417.     protected function doDisplay(array $context, array $blocks = [])
  418.     {
  419.         $macros $this->macros;
  420.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  421.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/settings/accounts/roles/main.html.twig"));
  422.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  423.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@App/dashboard/settings/accounts/roles/main.html.twig"));
  424.         $this->parent $this->loadTemplate("@ui2022/schoolnow/modal--sidepanel__content.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"5);
  425.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  426.         
  427.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  428.         
  429.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  430.     }
  431.     // line 6
  432.     public function block_header($context, array $blocks = [])
  433.     {
  434.         $macros $this->macros;
  435.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  436.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  437.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  438.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""header"));
  439.         // line 7
  440.         echo "        ";
  441.         $this->loadTemplate("@App/dashboard/settings/accounts/includes/_header.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"7)->display(twig_array_merge(twig_array_merge($context, ["active" => "permissions"]), ['_args' => twig_to_array(["active" => "permissions"])]));
  442.         // line 10
  443.         echo "    ";
  444.         
  445.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  446.         
  447.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  448.     }
  449.     // line 11
  450.     public function block_body($context, array $blocks = [])
  451.     {
  452.         $macros $this->macros;
  453.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  454.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  455.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  456.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  457.         // line 12
  458.         echo "        <div class=\"contacts\">
  459.             <div class=\"row justify-content-end\">
  460.                 <span class=\"font-13 text-medium mb-3 col-auto\">Last modified: ";
  461.         // line 14
  462.         ((twig_get_attribute($this->env$this->source, (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'14$this->source); })()), "touchedAt", [], "any"falsefalsefalse14)) ? (print (twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\DateTimeExtension']->ui_relativeDate(twig_get_attribute($this->env$this->source, (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'14$this->source); })()), "touchedAt", [], "any"falsefalsefalse14)), "html"nulltrue))) : (print ("-")));
  463.         echo "</span>
  464.             </div>
  465.             ";
  466.         // line 16
  467.         if (twig_get_attribute($this->env$this->source, (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'16$this->source); })()), "internalUid", [], "any"falsefalsefalse16)) {
  468.             // line 17
  469.             echo "                <div class=\"row justify-content-end\">
  470.                     <span class=\"font-13 text-medium mb-3 col-auto\">Internal UID: ";
  471.             // line 18
  472.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'18$this->source); })()), "internalUid", [], "any"falsefalsefalse18), "html"nulltrue);
  473.             echo "</span>
  474.                 </div>
  475.             ";
  476.         }
  477.         // line 21
  478.         echo "            <div class=\"sidepanel__content--body\">
  479.                 <div class=\"contacts__tabs\">
  480.                     ";
  481.         // line 23
  482.         $this->loadTemplate("@App/dashboard/settings/accounts/includes/_tabs.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"23)->display(twig_array_merge(twig_array_merge($context, ["active" => "permissions"]), ['_args' => twig_to_array(["active" => "permissions"])]));
  483.         // line 26
  484.         echo "                    <div class=\"tab-content\">
  485.                         ";
  486.         // line 27
  487.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'27$this->source); })()), "specialPermissions", [], "any"falsefalsefalse27), "superUser", [], "any"falsefalsefalse27)) {
  488.             // line 28
  489.             echo "
  490.                             <div class=\"super-user-permission-block\">
  491.                                 <div class=\"super-user-permission-block-inner-container\">
  492.                                     <h1>User has \"Super Admin\" access</h1>
  493.                                     <p class=\"text-black mt-4\">
  494.                                         Super admin access grants complete control over all functions in the website. To apply more granular permissions to this user, remove Super admin access and adjust their permissions here.
  495.                                     </p>
  496.                                     <a href=\"#\" class=\"super-user-access-button mt-3\">Remove Super Admin access</a>
  497.                                 </div>
  498.                             </div>
  499.                         ";
  500.         } else {
  501.             // line 39
  502.             echo "                        <div class=\"messages-table uilib website-table\">
  503.                             <table class=\"grid-main-block\">
  504.                                 <tbody>
  505.                                 <tr>
  506.                                     <th class=\"heading col-6\"><img src=\"/ui2022/images/message.png\" alt=\"Message\">
  507.                                         Messages
  508.                                     </th>
  509.                                     <th class=\"col-3\">
  510.                                     </th>
  511.                                     <th class=\"col-2\">
  512.                                         <span style=\"text-decoration: underline;\">Role</span>
  513.                                     </th>
  514.                                     <th class=\"col-1\"><span> </span></th>
  515.                                 </tr>
  516.                                 ";
  517.             // line 54
  518.             $context['_parent'] = $context;
  519.             $context['_seq'] = twig_ensure_traversable((isset($context["messageAssociations"]) || array_key_exists("messageAssociations"$context) ? $context["messageAssociations"] : (function () { throw new RuntimeError('Variable "messageAssociations" does not exist.'54$this->source); })()));
  520.             $context['loop'] = [
  521.               'parent' => $context['_parent'],
  522.               'index0' => 0,
  523.               'index'  => 1,
  524.               'first'  => true,
  525.             ];
  526.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  527.                 $length count($context['_seq']);
  528.                 $context['loop']['revindex0'] = $length 1;
  529.                 $context['loop']['revindex'] = $length;
  530.                 $context['loop']['length'] = $length;
  531.                 $context['loop']['last'] = === $length;
  532.             }
  533.             foreach ($context['_seq'] as $context["_key"] => $context["messageAssociation"]) {
  534.                 // line 55
  535.                 echo "                                    <tr class=\"grid-card\">
  536.                                         <td class=\"col-6\">
  537.                                                 <span class=\"grid-group\">
  538.                                                     <span class=\"grid-control\">
  539.                                                         ";
  540.                 // line 59
  541.                 $context["name"] = ((twig_get_attribute($this->env$this->source$context["messageAssociation"], "list", [], "any"falsefalsefalse59)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["messageAssociation"], "list", [], "any"falsefalsefalse59), "name", [], "any"falsefalsefalse59)) : (((twig_get_attribute($this->env$this->source$context["messageAssociation"], "school", [], "any"falsefalsefalse59)) ? (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["messageAssociation"], "school", [], "any"falsefalsefalse59), "name", [], "any"falsefalsefalse59)) : ("[Global]"))));
  542.                 // line 60
  543.                 echo "                                                        ";
  544.                 $context["icon"] = ((twig_get_attribute($this->env$this->source$context["messageAssociation"], "list", [], "any"falsefalsefalse60)) ? ("icon-templates") : ("icon-school-activities-report"));
  545.                 // line 61
  546.                 echo "                                                        <i class=\"";
  547.                 echo twig_escape_filter($this->env, (isset($context["icon"]) || array_key_exists("icon"$context) ? $context["icon"] : (function () { throw new RuntimeError('Variable "icon" does not exist.'61$this->source); })()), "html"nulltrue);
  548.                 echo "\"></i>
  549.                                                         <span>";
  550.                 // line 62
  551.                 echo twig_escape_filter($this->env, (isset($context["name"]) || array_key_exists("name"$context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.'62$this->source); })()), "html"nulltrue);
  552.                 echo "</span>
  553.                                                     </span>
  554.                                                 </span>
  555.                                         </td>
  556.                                         <td class=\"checkbox-block col-3\"></td>
  557.                                         <td class=\"col-2\">
  558.                                             <span>";
  559.                 // line 68
  560.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["messageAssociation"], "role", [], "any"falsefalsefalse68), "name", [], "any"falsefalsefalse68), "html"nulltrue);
  561.                 echo "</span>
  562.                                         </td>
  563.                                         <td class=\"col-1\">
  564.                                             <span class=\"table-action\">
  565.                                                 ";
  566.                 // line 72
  567.                 $this->loadTemplate("@ui2022/a.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"72)->display(twig_array_merge(twig_array_merge($context, ["link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.delete", ["account" => twig_get_attribute($this->env$this->source,                 // line 74
  568. (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'74$this->source); })()), "id", [], "any"falsefalsefalse74), "association" => twig_get_attribute($this->env$this->source,                 // line 75
  569. $context["messageAssociation"], "id", [], "any"falsefalsefalse75)]), "modal" => "modal__result__sidepanel""target" => "_modal""html" => "<i class=\"icon-delete\"></i>"]), ['_args' => twig_to_array(["link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.delete", ["account" => twig_get_attribute($this->env$this->source,                 // line 74
  570. (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'74$this->source); })()), "id", [], "any"falsefalsefalse74), "association" => twig_get_attribute($this->env$this->source,                 // line 75
  571. $context["messageAssociation"], "id", [], "any"falsefalsefalse75)]), "modal" => "modal__result__sidepanel""target" => "_modal""html" => "<i class=\"icon-delete\"></i>"])]));
  572.                 // line 81
  573.                 echo "                                            </span>
  574.                                         </td>
  575.                                     </tr>
  576.                                 ";
  577.                 ++$context['loop']['index0'];
  578.                 ++$context['loop']['index'];
  579.                 $context['loop']['first'] = false;
  580.                 if (isset($context['loop']['length'])) {
  581.                     --$context['loop']['revindex0'];
  582.                     --$context['loop']['revindex'];
  583.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  584.                 }
  585.             }
  586.             $_parent $context['_parent'];
  587.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['messageAssociation'], $context['_parent'], $context['loop']);
  588.             $context array_intersect_key($context$_parent) + $_parent;
  589.             // line 85
  590.             echo "                                </tbody>
  591.                             </table>
  592.                             <div class=\"add-row-block\">
  593.                                 <div class=\"add-row\">
  594.                                     <a href=\"#\" class=\"mr-3\" data-show-form-id=\"";
  595.             // line 89
  596.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'89$this->source); })()), "vars", [], "any"falsefalsefalse89), "id", [], "any"falsefalsefalse89), "html"nulltrue);
  597.             echo "\">+ Add
  598.                                         school</a>
  599.                                     <a href=\"#\" data-show-form-id=\"";
  600.             // line 91
  601.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'91$this->source); })()), "vars", [], "any"falsefalsefalse91), "id", [], "any"falsefalsefalse91), "html"nulltrue);
  602.             echo "\">+ Add list</a>
  603.                                 </div>
  604.                                 ";
  605.             // line 93
  606.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'93$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.main", ["account" => twig_get_attribute($this->env$this->source,             // line 95
  607. (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'95$this->source); })()), "id", [], "any"falsefalsefalse95)]), "attr" => ["target" => "_modal"]]);
  608.             // line 100
  609.             echo "
  610.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  611.                                     <div class=\"col-6\">
  612.                                         ";
  613.             // line 103
  614.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'103$this->source); })()), "school", [], "any"falsefalsefalse103), 'widget');
  615.             echo "
  616.                                         ";
  617.             // line 104
  618.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'104$this->source); })()), "school", [], "any"falsefalsefalse104), 'errors');
  619.             echo "
  620.                                     </div>
  621.                                     <div class=\"col-3\">
  622.                                         ";
  623.             // line 107
  624.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'107$this->source); })()), "role", [], "any"falsefalsefalse107), 'widget');
  625.             echo "
  626.                                         ";
  627.             // line 108
  628.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'108$this->source); })()), "role", [], "any"falsefalsefalse108), 'errors');
  629.             echo "
  630.                                     </div>
  631.                                     <div class=\"col-2\">
  632.                                         ";
  633.             // line 111
  634.             $this->loadTemplate("@ui2022/button--form.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"111)->display(twig_array_merge(twig_array_merge($context, ["type" => "submit""text" => "Add""styles" => "md gray""attr" => ["class" => "px-4 mr-3""disabled" => "disabled"]]), ['_args' => twig_to_array(["type" => "submit""text" => "Add""styles" => "md gray""attr" => ["class" => "px-4 mr-3""disabled" => "disabled"]])]));
  635.             // line 120
  636.             echo "                                    </div>
  637.                                     <div class=\"col-1 close-icon\">
  638.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  639.                                     </div>
  640.                                     ";
  641.             // line 126
  642.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'126$this->source); })()), 'rest');
  643.             echo "
  644.                                 </div>
  645.                                 ";
  646.             // line 129
  647.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["schoolRoleForm"]) || array_key_exists("schoolRoleForm"$context) ? $context["schoolRoleForm"] : (function () { throw new RuntimeError('Variable "schoolRoleForm" does not exist.'129$this->source); })()), 'form_end');
  648.             echo "
  649.                                 ";
  650.             // line 131
  651.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'131$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.main", ["account" => twig_get_attribute($this->env$this->source,             // line 133
  652. (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'133$this->source); })()), "id", [], "any"falsefalsefalse133)]), "attr" => ["target" => "_modal"]]);
  653.             // line 138
  654.             echo "
  655.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  656.                                     <div class=\"col-6\">
  657.                                         ";
  658.             // line 141
  659.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'141$this->source); })()), "list", [], "any"falsefalsefalse141), 'widget');
  660.             echo "
  661.                                         ";
  662.             // line 142
  663.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'142$this->source); })()), "list", [], "any"falsefalsefalse142), 'errors');
  664.             echo "
  665.                                     </div>
  666.                                     <div class=\"col-3\">
  667.                                         ";
  668.             // line 145
  669.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'145$this->source); })()), "role", [], "any"falsefalsefalse145), 'widget');
  670.             echo "
  671.                                         ";
  672.             // line 146
  673.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'146$this->source); })()), "role", [], "any"falsefalsefalse146), 'errors');
  674.             echo "
  675.                                     </div>
  676.                                     <div class=\"col-2\">
  677.                                         ";
  678.             // line 149
  679.             $this->loadTemplate("@ui2022/button--form.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"149)->display(twig_array_merge(twig_array_merge($context, ["type" => "submit""text" => "Add""styles" => "md gray""attr" => ["class" => "px-4 mr-3""disabled" => "disabled"]]), ['_args' => twig_to_array(["type" => "submit""text" => "Add""styles" => "md gray""attr" => ["class" => "px-4 mr-3""disabled" => "disabled"]])]));
  680.             // line 158
  681.             echo "                                    </div>
  682.                                     <div class=\"col-1 close-icon\">
  683.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  684.                                     </div>
  685.                                     ";
  686.             // line 164
  687.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'164$this->source); })()), 'rest');
  688.             echo "
  689.                                 </div>
  690.                                 ";
  691.             // line 167
  692.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["listRoleForm"]) || array_key_exists("listRoleForm"$context) ? $context["listRoleForm"] : (function () { throw new RuntimeError('Variable "listRoleForm" does not exist.'167$this->source); })()), 'form_end');
  693.             echo "
  694.                             </div>
  695.                         </div>
  696.                         <div class=\"messages-table uilib website-table\">
  697.                             <table class=\"grid-main-block\">
  698.                                 <tbody>
  699.                                 <tr>
  700.                                     <th class=\"heading col-6\"><img src=\"/ui2022/images/website.png\" alt=\"Website\">
  701.                                         Website
  702.                                     </th>
  703.                                     <th class=\"col-3\">
  704.                                         <span style=\"text-decoration: underline;\">Departments</span>
  705.                                     </th>
  706.                                     <th class=\"col-2\">
  707.                                         <span style=\"text-decoration: underline;\">Role</span>
  708.                                     </th>
  709.                                     <th class=\"col-1\"><span> </span></th>
  710.                                 </tr>
  711.                                 ";
  712.             // line 186
  713.             $context['_parent'] = $context;
  714.             $context['_seq'] = twig_ensure_traversable((isset($context["websiteAssociations"]) || array_key_exists("websiteAssociations"$context) ? $context["websiteAssociations"] : (function () { throw new RuntimeError('Variable "websiteAssociations" does not exist.'186$this->source); })()));
  715.             $context['loop'] = [
  716.               'parent' => $context['_parent'],
  717.               'index0' => 0,
  718.               'index'  => 1,
  719.               'first'  => true,
  720.             ];
  721.             if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  722.                 $length count($context['_seq']);
  723.                 $context['loop']['revindex0'] = $length 1;
  724.                 $context['loop']['revindex'] = $length;
  725.                 $context['loop']['length'] = $length;
  726.                 $context['loop']['last'] = === $length;
  727.             }
  728.             foreach ($context['_seq'] as $context["_key"] => $context["websiteAssociation"]) {
  729.                 // line 187
  730.                 echo "                                    <tr class=\"grid-card\">
  731.                                         <td class=\"col-6\">
  732.                                                 <span class=\"grid-group\">
  733.                                                     <span class=\"grid-control\">
  734.                                                         <i class=\"icon-folder\"></i>
  735.                                                         <span>";
  736.                 // line 192
  737.                 ((twig_get_attribute($this->env$this->source$context["websiteAssociation"], "container", [], "any"falsefalsefalse192)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["websiteAssociation"], "container", [], "any"falsefalsefalse192), "name", [], "any"falsefalsefalse192), "html"nulltrue))) : (print ("[Global]")));
  738.                 echo "</span>
  739.                                                     </span>
  740.                                                 </span>
  741.                                         </td>
  742.                                         <td class=\"checkbox-block col-3\">
  743.                                             <span class=\"grid-group\">
  744.                                                 <span class=\"custom-control custom-checkbox\">
  745.                                                    <input
  746.                                                            type=\"checkbox\"
  747.                                                            class=\"custom-control-input\"
  748.                                                            id=\"enabled_";
  749.                 // line 202
  750.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["websiteAssociation"], "id", [], "any"falsefalsefalse202), "html"nulltrue);
  751.                 echo "\"
  752.                                                            ";
  753.                 // line 203
  754.                 if (twig_get_attribute($this->env$this->source$context["websiteAssociation"], "inheritance", [], "any"falsefalsefalse203)) {
  755.                     echo "checked";
  756.                 }
  757.                 // line 204
  758.                 echo "                                                           data-trigger=\"toggler\"
  759.                                                            data-toggler-url=\"";
  760.                 // line 205
  761.                 echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.inheritance_toggle", ["accountRoleAssociation" => twig_get_attribute($this->env$this->source,                 // line 206
  762. $context["websiteAssociation"], "id", [], "any"falsefalsefalse206)]), "html"nulltrue);
  763.                 // line 207
  764.                 echo "\"
  765.                                                    />
  766.                                                    <label class=\"custom-control-label\"
  767.                                                           for=\"enabled_";
  768.                 // line 210
  769.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["websiteAssociation"], "id", [], "any"falsefalsefalse210), "html"nulltrue);
  770.                 echo "\"></label>
  771.                                                 </span>
  772.                                             </span>
  773.                                         </td>
  774.                                         <td class=\"col-2\">
  775.                                             <span>";
  776.                 // line 215
  777.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["websiteAssociation"], "role", [], "any"falsefalsefalse215), "name", [], "any"falsefalsefalse215), "html"nulltrue);
  778.                 echo "</span>
  779.                                         </td>
  780.                                         <td class=\"col-1\">
  781.                                             <span class=\"table-action\">
  782.                                                 ";
  783.                 // line 219
  784.                 $this->loadTemplate("@ui2022/a.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"219)->display(twig_array_merge(twig_array_merge($context, ["link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.delete", ["account" => twig_get_attribute($this->env$this->source,                 // line 221
  785. (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'221$this->source); })()), "id", [], "any"falsefalsefalse221), "association" => twig_get_attribute($this->env$this->source,                 // line 222
  786. $context["websiteAssociation"], "id", [], "any"falsefalsefalse222)]), "modal" => "modal__result__sidepanel""target" => "_modal""html" => "<i class=\"icon-delete\"></i>"]), ['_args' => twig_to_array(["link" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.delete", ["account" => twig_get_attribute($this->env$this->source,                 // line 221
  787. (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'221$this->source); })()), "id", [], "any"falsefalsefalse221), "association" => twig_get_attribute($this->env$this->source,                 // line 222
  788. $context["websiteAssociation"], "id", [], "any"falsefalsefalse222)]), "modal" => "modal__result__sidepanel""target" => "_modal""html" => "<i class=\"icon-delete\"></i>"])]));
  789.                 // line 228
  790.                 echo "                                            </span>
  791.                                         </td>
  792.                                     </tr>
  793.                                 ";
  794.                 ++$context['loop']['index0'];
  795.                 ++$context['loop']['index'];
  796.                 $context['loop']['first'] = false;
  797.                 if (isset($context['loop']['length'])) {
  798.                     --$context['loop']['revindex0'];
  799.                     --$context['loop']['revindex'];
  800.                     $context['loop']['last'] = === $context['loop']['revindex0'];
  801.                 }
  802.             }
  803.             $_parent $context['_parent'];
  804.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['websiteAssociation'], $context['_parent'], $context['loop']);
  805.             $context array_intersect_key($context$_parent) + $_parent;
  806.             // line 232
  807.             echo "                                </tbody>
  808.                             </table>
  809.                             <div class=\"add-row-block\">
  810.                                 <div class=\"add-row\">
  811.                                     <a href=\"#\" data-show-form-id=\"";
  812.             // line 236
  813.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'236$this->source); })()), "vars", [], "any"falsefalsefalse236), "id", [], "any"falsefalsefalse236), "html"nulltrue);
  814.             echo "\">+ Add</a>
  815.                                 </div>
  816.                                 ";
  817.             // line 238
  818.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'238$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app.app.dashboard.settings.accounts.roles.main", ["account" => twig_get_attribute($this->env$this->source,             // line 240
  819. (isset($context["account"]) || array_key_exists("account"$context) ? $context["account"] : (function () { throw new RuntimeError('Variable "account" does not exist.'240$this->source); })()), "id", [], "any"falsefalsefalse240)]), "attr" => ["target" => "_modal"]]);
  820.             // line 245
  821.             echo "
  822.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  823.                                     <div class=\"col-6\">
  824.                                         ";
  825.             // line 248
  826.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'248$this->source); })()), "container", [], "any"falsefalsefalse248), 'widget');
  827.             echo "
  828.                                         ";
  829.             // line 249
  830.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'249$this->source); })()), "container", [], "any"falsefalsefalse249), 'errors');
  831.             echo "
  832.                                     </div>
  833.                                     <div class=\"col-3\">
  834.                                         ";
  835.             // line 252
  836.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'252$this->source); })()), "role", [], "any"falsefalsefalse252), 'widget');
  837.             echo "
  838.                                         ";
  839.             // line 253
  840.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'253$this->source); })()), "role", [], "any"falsefalsefalse253), 'errors');
  841.             echo "
  842.                                     </div>
  843.                                     <div class=\"col-2\">
  844.                                         ";
  845.             // line 256
  846.             $this->loadTemplate("@ui2022/button--form.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"256)->display(twig_array_merge(twig_array_merge($context, ["type" => "submit""text" => "Add""styles" => "md gray""attr" => ["class" => "px-4 mr-3""disabled" => "disabled"]]), ['_args' => twig_to_array(["type" => "submit""text" => "Add""styles" => "md gray""attr" => ["class" => "px-4 mr-3""disabled" => "disabled"]])]));
  847.             // line 265
  848.             echo "                                    </div>
  849.                                     <div class=\"col-1 close-icon\">
  850.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  851.                                     </div>
  852.                                     ";
  853.             // line 271
  854.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'271$this->source); })()), 'rest');
  855.             echo "
  856.                                 </div>
  857.                                 ";
  858.             // line 274
  859.             echo             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["containerRoleForm"]) || array_key_exists("containerRoleForm"$context) ? $context["containerRoleForm"] : (function () { throw new RuntimeError('Variable "containerRoleForm" does not exist.'274$this->source); })()), 'form_end');
  860.             echo "
  861.                             </div>
  862.                         </div>
  863.                         ";
  864.         }
  865.         // line 278
  866.         echo "                    </div>
  867.                 </div>
  868.             </div>
  869.         </div>
  870.         <script>
  871.             (function (window, document, \$, undefined) {
  872.                 \$(function () {
  873.                     if (\$('.add-row-block').length > 0) {
  874.                         \$('.add-row-block .add-row a').on(\"click\", function (e) {
  875.                             e.preventDefault();
  876.                             const formId = \$(this).data('show-form-id');
  877.                             const \$form = \$('#' + formId);
  878.                             const \$addAction = \$form.find('.add-action');
  879.                             const \$iconCross = \$form.find('.icon-cross');
  880.                             const \$submitButton = \$form.find('button[type=\"submit\"]');
  881.                             const \$addRow = \$(this).parent();
  882.                             \$addAction.show();
  883.                             \$addRow.hide();
  884.                             \$iconCross.click(function (e) {
  885.                                 e.preventDefault();
  886.                                 \$addAction.hide();
  887.                                 \$addRow.show();
  888.                                 selectDefaultOption(\$addAction.find('select[required]'));
  889.                                 \$form.off('change');
  890.                                 \$submitButton.attr('disabled', 'disabled');
  891.                                 return false;
  892.                             });
  893.                             \$form.on('change', function (e) {
  894.                                 if (this.checkValidity()) {
  895.                                     \$submitButton.removeAttr('disabled');
  896.                                 } else {
  897.                                     \$submitButton.attr('disabled', 'disabled');
  898.                                 }
  899.                             });
  900.                             selectDefaultOption(\$addAction.find('select[required]'));
  901.                             return false;
  902.                         })
  903.                     }
  904.                     function selectDefaultOption(\$selects) {
  905.                         \$.each(\$selects, function (key, select) {
  906.                             let selectedIndex = 0;
  907.                             if (\$(select).find('option').length === 2) {
  908.                                 selectedIndex = 1;
  909.                             }
  910.                             \$(select).prop('selectedIndex', selectedIndex).trigger('change');
  911.                         });
  912.                     }
  913.                 })
  914.                 const \$togglerSuperadmin = \$('#toggler_superadmin');
  915.                 \$togglerSuperadmin.on('done.toggler', function() {
  916.                     \$('#sidepanel__result_view .nav-link.active').trigger('click');
  917.                 });
  918.                 \$('.super-user-access-button').on('click', function(e) {
  919.                     e.preventDefault();
  920.                     \$togglerSuperadmin.prop(\"checked\", \$togglerSuperadmin.prop(\"checked\"));
  921.                     \$togglerSuperadmin.trigger('change');
  922.                     return false;
  923.                 });
  924.             })(window, document, jQuery);
  925.         </script>
  926.         ";
  927.         // line 361
  928.         $this->loadTemplate("@ui2022/modal.html.twig""@App/dashboard/settings/accounts/roles/main.html.twig"361)->display(twig_array_merge(twig_array_merge($context, ["attr" => ["id" => "modal__result__sidepanel""class" => "modal-ajax modal-delete""target" => "_modal"], "dialog_styles" => "dialog--createmsg"]), ['_args' => twig_to_array(["attr" => ["id" => "modal__result__sidepanel""class" => "modal-ajax modal-delete""target" => "_modal"], "dialog_styles" => "dialog--createmsg"])]));
  929.         // line 369
  930.         echo "    ";
  931.         
  932.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  933.         
  934.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  935.     }
  936.     public function getTemplateName()
  937.     {
  938.         return "@App/dashboard/settings/accounts/roles/main.html.twig";
  939.     }
  940.     public function isTraitable()
  941.     {
  942.         return false;
  943.     }
  944.     public function getDebugInfo()
  945.     {
  946.         return array (  1036 => 369,  1034 => 361,  949 => 278,  942 => 274,  936 => 271,  928 => 265,  926 => 256,  920 => 253,  916 => 252,  910 => 249,  906 => 248,  901 => 245,  899 => 240,  898 => 238,  893 => 236,  887 => 232,  870 => 228,  868 => 222,  867 => 221,  866 => 222,  865 => 221,  864 => 219,  857 => 215,  849 => 210,  844 => 207,  842 => 206,  841 => 205,  838 => 204,  834 => 203,  830 => 202,  817 => 192,  810 => 187,  793 => 186,  771 => 167,  765 => 164,  757 => 158,  755 => 149,  749 => 146,  745 => 145,  739 => 142,  735 => 141,  730 => 138,  728 => 133,  727 => 131,  722 => 129,  716 => 126,  708 => 120,  706 => 111,  700 => 108,  696 => 107,  690 => 104,  686 => 103,  681 => 100,  679 => 95,  678 => 93,  673 => 91,  668 => 89,  662 => 85,  645 => 81,  643 => 75,  642 => 74,  641 => 75,  640 => 74,  639 => 72,  632 => 68,  623 => 62,  618 => 61,  615 => 60,  613 => 59,  607 => 55,  590 => 54,  573 => 39,  560 => 28,  558 => 27,  555 => 26,  553 => 23,  549 => 21,  543 => 18,  540 => 17,  538 => 16,  533 => 14,  529 => 12,  519 => 11,  509 => 10,  506 => 7,  496 => 6,  52 => 5,  49 => 4,  47 => 3,  45 => 2,  43 => 1,);
  947.     }
  948.     public function getSourceContext()
  949.     {
  950.         return new Source("{% form_theme containerRoleForm '@ui2022/schoolnow/forms/themes/default.html.twig' %}
  951. {% form_theme schoolRoleForm '@ui2022/schoolnow/forms/themes/default.html.twig' %}
  952. {% form_theme listRoleForm '@ui2022/schoolnow/forms/themes/default.html.twig' %}
  953. {% embed '@ui2022/schoolnow/modal--sidepanel__content.html.twig' with {} %}
  954.     {% block header %}
  955.         {% include '@App/dashboard/settings/accounts/includes/_header.html.twig' with {
  956.             active: 'permissions',
  957.         } %}
  958.     {% endblock %}
  959.     {% block body %}
  960.         <div class=\"contacts\">
  961.             <div class=\"row justify-content-end\">
  962.                 <span class=\"font-13 text-medium mb-3 col-auto\">Last modified: {{ account.touchedAt ? account.touchedAt|ui_relativeDate : '-' }}</span>
  963.             </div>
  964.             {% if account.internalUid %}
  965.                 <div class=\"row justify-content-end\">
  966.                     <span class=\"font-13 text-medium mb-3 col-auto\">Internal UID: {{ account.internalUid }}</span>
  967.                 </div>
  968.             {% endif %}
  969.             <div class=\"sidepanel__content--body\">
  970.                 <div class=\"contacts__tabs\">
  971.                     {% include '@App/dashboard/settings/accounts/includes/_tabs.html.twig' with {
  972.                         active: 'permissions',
  973.                     } %}
  974.                     <div class=\"tab-content\">
  975.                         {% if account.specialPermissions.superUser %}
  976.                             <div class=\"super-user-permission-block\">
  977.                                 <div class=\"super-user-permission-block-inner-container\">
  978.                                     <h1>User has \"Super Admin\" access</h1>
  979.                                     <p class=\"text-black mt-4\">
  980.                                         Super admin access grants complete control over all functions in the website. To apply more granular permissions to this user, remove Super admin access and adjust their permissions here.
  981.                                     </p>
  982.                                     <a href=\"#\" class=\"super-user-access-button mt-3\">Remove Super Admin access</a>
  983.                                 </div>
  984.                             </div>
  985.                         {% else %}
  986.                         <div class=\"messages-table uilib website-table\">
  987.                             <table class=\"grid-main-block\">
  988.                                 <tbody>
  989.                                 <tr>
  990.                                     <th class=\"heading col-6\"><img src=\"/ui2022/images/message.png\" alt=\"Message\">
  991.                                         Messages
  992.                                     </th>
  993.                                     <th class=\"col-3\">
  994.                                     </th>
  995.                                     <th class=\"col-2\">
  996.                                         <span style=\"text-decoration: underline;\">Role</span>
  997.                                     </th>
  998.                                     <th class=\"col-1\"><span> </span></th>
  999.                                 </tr>
  1000.                                 {% for messageAssociation in messageAssociations %}
  1001.                                     <tr class=\"grid-card\">
  1002.                                         <td class=\"col-6\">
  1003.                                                 <span class=\"grid-group\">
  1004.                                                     <span class=\"grid-control\">
  1005.                                                         {% set name =  messageAssociation.list ? messageAssociation.list.name : (messageAssociation.school ? messageAssociation.school.name : '[Global]') %}
  1006.                                                         {% set icon =  messageAssociation.list ? 'icon-templates' : 'icon-school-activities-report' %}
  1007.                                                         <i class=\"{{ icon }}\"></i>
  1008.                                                         <span>{{ name }}</span>
  1009.                                                     </span>
  1010.                                                 </span>
  1011.                                         </td>
  1012.                                         <td class=\"checkbox-block col-3\"></td>
  1013.                                         <td class=\"col-2\">
  1014.                                             <span>{{ messageAssociation.role.name }}</span>
  1015.                                         </td>
  1016.                                         <td class=\"col-1\">
  1017.                                             <span class=\"table-action\">
  1018.                                                 {% include '@ui2022/a.html.twig' with {
  1019.                                                     link: path('app.app.dashboard.settings.accounts.roles.delete', {
  1020.                                                         account: account.id,
  1021.                                                         association: messageAssociation.id,
  1022.                                                     }),
  1023.                                                     modal: 'modal__result__sidepanel',
  1024.                                                     target: \"_modal\",
  1025.                                                     html: '<i class=\"icon-delete\"></i>'
  1026.                                                 } %}
  1027.                                             </span>
  1028.                                         </td>
  1029.                                     </tr>
  1030.                                 {% endfor %}
  1031.                                 </tbody>
  1032.                             </table>
  1033.                             <div class=\"add-row-block\">
  1034.                                 <div class=\"add-row\">
  1035.                                     <a href=\"#\" class=\"mr-3\" data-show-form-id=\"{{ schoolRoleForm.vars.id }}\">+ Add
  1036.                                         school</a>
  1037.                                     <a href=\"#\" data-show-form-id=\"{{ listRoleForm.vars.id }}\">+ Add list</a>
  1038.                                 </div>
  1039.                                 {{ form_start(schoolRoleForm, {
  1040.                                     action: path('app.app.dashboard.settings.accounts.roles.main', {
  1041.                                         account: account.id,
  1042.                                     }),
  1043.                                     attr: {
  1044.                                         target: '_modal',
  1045.                                     },
  1046.                                 }) }}
  1047.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  1048.                                     <div class=\"col-6\">
  1049.                                         {{ form_widget(schoolRoleForm.school) }}
  1050.                                         {{ form_errors(schoolRoleForm.school) }}
  1051.                                     </div>
  1052.                                     <div class=\"col-3\">
  1053.                                         {{ form_widget(schoolRoleForm.role) }}
  1054.                                         {{ form_errors(schoolRoleForm.role) }}
  1055.                                     </div>
  1056.                                     <div class=\"col-2\">
  1057.                                         {% include '@ui2022/button--form.html.twig' with {
  1058.                                             type: 'submit',
  1059.                                             text: 'Add',
  1060.                                             styles: 'md gray',
  1061.                                             attr: {
  1062.                                                 class: 'px-4 mr-3',
  1063.                                                 disabled: 'disabled',
  1064.                                             },
  1065.                                         } %}
  1066.                                     </div>
  1067.                                     <div class=\"col-1 close-icon\">
  1068.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  1069.                                     </div>
  1070.                                     {{ form_rest(schoolRoleForm) }}
  1071.                                 </div>
  1072.                                 {{ form_end(schoolRoleForm) }}
  1073.                                 {{ form_start(listRoleForm, {
  1074.                                     action: path('app.app.dashboard.settings.accounts.roles.main', {
  1075.                                         account: account.id,
  1076.                                     }),
  1077.                                     attr: {
  1078.                                         target: '_modal',
  1079.                                     },
  1080.                                 }) }}
  1081.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  1082.                                     <div class=\"col-6\">
  1083.                                         {{ form_widget(listRoleForm.list) }}
  1084.                                         {{ form_errors(listRoleForm.list) }}
  1085.                                     </div>
  1086.                                     <div class=\"col-3\">
  1087.                                         {{ form_widget(listRoleForm.role) }}
  1088.                                         {{ form_errors(listRoleForm.role) }}
  1089.                                     </div>
  1090.                                     <div class=\"col-2\">
  1091.                                         {% include '@ui2022/button--form.html.twig' with {
  1092.                                             type: 'submit',
  1093.                                             text: 'Add',
  1094.                                             styles: 'md gray',
  1095.                                             attr: {
  1096.                                                 class: 'px-4 mr-3',
  1097.                                                 disabled: 'disabled',
  1098.                                             },
  1099.                                         } %}
  1100.                                     </div>
  1101.                                     <div class=\"col-1 close-icon\">
  1102.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  1103.                                     </div>
  1104.                                     {{ form_rest(listRoleForm) }}
  1105.                                 </div>
  1106.                                 {{ form_end(listRoleForm) }}
  1107.                             </div>
  1108.                         </div>
  1109.                         <div class=\"messages-table uilib website-table\">
  1110.                             <table class=\"grid-main-block\">
  1111.                                 <tbody>
  1112.                                 <tr>
  1113.                                     <th class=\"heading col-6\"><img src=\"/ui2022/images/website.png\" alt=\"Website\">
  1114.                                         Website
  1115.                                     </th>
  1116.                                     <th class=\"col-3\">
  1117.                                         <span style=\"text-decoration: underline;\">Departments</span>
  1118.                                     </th>
  1119.                                     <th class=\"col-2\">
  1120.                                         <span style=\"text-decoration: underline;\">Role</span>
  1121.                                     </th>
  1122.                                     <th class=\"col-1\"><span> </span></th>
  1123.                                 </tr>
  1124.                                 {% for websiteAssociation in websiteAssociations %}
  1125.                                     <tr class=\"grid-card\">
  1126.                                         <td class=\"col-6\">
  1127.                                                 <span class=\"grid-group\">
  1128.                                                     <span class=\"grid-control\">
  1129.                                                         <i class=\"icon-folder\"></i>
  1130.                                                         <span>{{ websiteAssociation.container ? websiteAssociation.container.name : '[Global]' }}</span>
  1131.                                                     </span>
  1132.                                                 </span>
  1133.                                         </td>
  1134.                                         <td class=\"checkbox-block col-3\">
  1135.                                             <span class=\"grid-group\">
  1136.                                                 <span class=\"custom-control custom-checkbox\">
  1137.                                                    <input
  1138.                                                            type=\"checkbox\"
  1139.                                                            class=\"custom-control-input\"
  1140.                                                            id=\"enabled_{{ websiteAssociation.id }}\"
  1141.                                                            {% if websiteAssociation.inheritance %}checked{% endif %}
  1142.                                                            data-trigger=\"toggler\"
  1143.                                                            data-toggler-url=\"{{ path('app.app.dashboard.settings.accounts.roles.inheritance_toggle', {
  1144.                                                                accountRoleAssociation: websiteAssociation.id,
  1145.                                                            }) }}\"
  1146.                                                    />
  1147.                                                    <label class=\"custom-control-label\"
  1148.                                                           for=\"enabled_{{ websiteAssociation.id }}\"></label>
  1149.                                                 </span>
  1150.                                             </span>
  1151.                                         </td>
  1152.                                         <td class=\"col-2\">
  1153.                                             <span>{{ websiteAssociation.role.name }}</span>
  1154.                                         </td>
  1155.                                         <td class=\"col-1\">
  1156.                                             <span class=\"table-action\">
  1157.                                                 {% include '@ui2022/a.html.twig' with {
  1158.                                                     link: path('app.app.dashboard.settings.accounts.roles.delete', {
  1159.                                                         account: account.id,
  1160.                                                         association: websiteAssociation.id,
  1161.                                                     }),
  1162.                                                     modal: 'modal__result__sidepanel',
  1163.                                                     target: \"_modal\",
  1164.                                                     html: '<i class=\"icon-delete\"></i>'
  1165.                                                 } %}
  1166.                                             </span>
  1167.                                         </td>
  1168.                                     </tr>
  1169.                                 {% endfor %}
  1170.                                 </tbody>
  1171.                             </table>
  1172.                             <div class=\"add-row-block\">
  1173.                                 <div class=\"add-row\">
  1174.                                     <a href=\"#\" data-show-form-id=\"{{ containerRoleForm.vars.id }}\">+ Add</a>
  1175.                                 </div>
  1176.                                 {{ form_start(containerRoleForm, {
  1177.                                     action: path('app.app.dashboard.settings.accounts.roles.main', {
  1178.                                         account: account.id,
  1179.                                     }),
  1180.                                     attr: {
  1181.                                         target: '_modal',
  1182.                                     },
  1183.                                 }) }}
  1184.                                 <div class=\"add-action formcontainer formfield-colored\" style=\"display: none\">
  1185.                                     <div class=\"col-6\">
  1186.                                         {{ form_widget(containerRoleForm.container) }}
  1187.                                         {{ form_errors(containerRoleForm.container) }}
  1188.                                     </div>
  1189.                                     <div class=\"col-3\">
  1190.                                         {{ form_widget(containerRoleForm.role) }}
  1191.                                         {{ form_errors(containerRoleForm.role) }}
  1192.                                     </div>
  1193.                                     <div class=\"col-2\">
  1194.                                         {% include '@ui2022/button--form.html.twig' with {
  1195.                                             type: 'submit',
  1196.                                             text: 'Add',
  1197.                                             styles: 'md gray',
  1198.                                             attr: {
  1199.                                                 class: 'px-4 mr-3',
  1200.                                                 disabled: 'disabled',
  1201.                                             },
  1202.                                         } %}
  1203.                                     </div>
  1204.                                     <div class=\"col-1 close-icon\">
  1205.                                         <span><a href=\"#\"><i class=\"icon-cross\"></i></a></span>
  1206.                                     </div>
  1207.                                     {{ form_rest(containerRoleForm) }}
  1208.                                 </div>
  1209.                                 {{ form_end(containerRoleForm) }}
  1210.                             </div>
  1211.                         </div>
  1212.                         {% endif %}
  1213.                     </div>
  1214.                 </div>
  1215.             </div>
  1216.         </div>
  1217.         <script>
  1218.             (function (window, document, \$, undefined) {
  1219.                 \$(function () {
  1220.                     if (\$('.add-row-block').length > 0) {
  1221.                         \$('.add-row-block .add-row a').on(\"click\", function (e) {
  1222.                             e.preventDefault();
  1223.                             const formId = \$(this).data('show-form-id');
  1224.                             const \$form = \$('#' + formId);
  1225.                             const \$addAction = \$form.find('.add-action');
  1226.                             const \$iconCross = \$form.find('.icon-cross');
  1227.                             const \$submitButton = \$form.find('button[type=\"submit\"]');
  1228.                             const \$addRow = \$(this).parent();
  1229.                             \$addAction.show();
  1230.                             \$addRow.hide();
  1231.                             \$iconCross.click(function (e) {
  1232.                                 e.preventDefault();
  1233.                                 \$addAction.hide();
  1234.                                 \$addRow.show();
  1235.                                 selectDefaultOption(\$addAction.find('select[required]'));
  1236.                                 \$form.off('change');
  1237.                                 \$submitButton.attr('disabled', 'disabled');
  1238.                                 return false;
  1239.                             });
  1240.                             \$form.on('change', function (e) {
  1241.                                 if (this.checkValidity()) {
  1242.                                     \$submitButton.removeAttr('disabled');
  1243.                                 } else {
  1244.                                     \$submitButton.attr('disabled', 'disabled');
  1245.                                 }
  1246.                             });
  1247.                             selectDefaultOption(\$addAction.find('select[required]'));
  1248.                             return false;
  1249.                         })
  1250.                     }
  1251.                     function selectDefaultOption(\$selects) {
  1252.                         \$.each(\$selects, function (key, select) {
  1253.                             let selectedIndex = 0;
  1254.                             if (\$(select).find('option').length === 2) {
  1255.                                 selectedIndex = 1;
  1256.                             }
  1257.                             \$(select).prop('selectedIndex', selectedIndex).trigger('change');
  1258.                         });
  1259.                     }
  1260.                 })
  1261.                 const \$togglerSuperadmin = \$('#toggler_superadmin');
  1262.                 \$togglerSuperadmin.on('done.toggler', function() {
  1263.                     \$('#sidepanel__result_view .nav-link.active').trigger('click');
  1264.                 });
  1265.                 \$('.super-user-access-button').on('click', function(e) {
  1266.                     e.preventDefault();
  1267.                     \$togglerSuperadmin.prop(\"checked\", \$togglerSuperadmin.prop(\"checked\"));
  1268.                     \$togglerSuperadmin.trigger('change');
  1269.                     return false;
  1270.                 });
  1271.             })(window, document, jQuery);
  1272.         </script>
  1273.         {% include '@ui2022/modal.html.twig' with {
  1274.             attr: {
  1275.                 id: 'modal__result__sidepanel',
  1276.                 class: 'modal-ajax modal-delete',
  1277.                 target: \"_modal\",
  1278.             },
  1279.             dialog_styles: 'dialog--createmsg',
  1280.         } %}
  1281.     {% endblock %}
  1282. {% endembed %}
  1283. ""@App/dashboard/settings/accounts/roles/main.html.twig""/var/www/campussuite/src/App/Resources/views/dashboard/settings/accounts/roles/main.html.twig");
  1284.     }
  1285. }