0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
giga
/
cache
/
9e
/
[
Home
]
File: 9e4b3ed48914aeae8e4e9b36ac281c19639c75fd8393b46c2bfb0415c124d760.php
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; use Twig\Extension\SandboxExtension; use Twig\Markup; use Twig\Sandbox\SecurityError; use Twig\Sandbox\SecurityNotAllowedTagError; use Twig\Sandbox\SecurityNotAllowedFilterError; use Twig\Sandbox\SecurityNotAllowedFunctionError; use Twig\Source; use Twig\Template; /* menuboard-category-page.twig */ class __TwigTemplate_85d7015f02634b2775852b43f8de83099d2c5e3e29e1014cca6ef18db7d91030 extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $this->blocks = [ 'title' => [$this, 'block_title'], 'actionMenu' => [$this, 'block_actionMenu'], 'pageContent' => [$this, 'block_pageContent'], 'javaScript' => [$this, 'block_javaScript'], ]; } protected function doGetParent(array $context) { // line 1 return "authed.twig"; } protected function doDisplay(array $context, array $blocks = []) { $macros = $this->macros; // line 2 $macros["inline"] = $this->macros["inline"] = $this->loadTemplate("inline.twig", "menuboard-category-page.twig", 2)->unwrap(); // line 1 $this->parent = $this->loadTemplate("authed.twig", "menuboard-category-page.twig", 1); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 4 public function block_title($context, array $blocks = []) { $macros = $this->macros; echo twig_escape_filter($this->env, __("Categories for "), "html", null, true); echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["menuBoard"] ?? null), "name", [], "any", false, false, false, 4), "html", null, true); echo " | "; } // line 6 public function block_actionMenu($context, array $blocks = []) { $macros = $this->macros; // line 7 echo " "; if (twig_get_attribute($this->env, $this->source, ($context["currentUser"] ?? null), "featureEnabled", [0 => "menuBoard.modify"], "method", false, false, false, 7)) { // line 8 echo " <div class=\"widget-action-menu pull-right\"> <button class=\"btn btn-success XiboFormButton\" title=\""; // line 9 echo __("Add a new Menu Board Category"); echo "\" href=\""; echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("menuBoard.category.add.form", ["id" => twig_get_attribute($this->env, $this->source, ($context["menuBoard"] ?? null), "menuId", [], "any", false, false, false, 9)]), "html", null, true); echo "\"><i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> "; echo __("Add Category"); echo "</button> </div> "; } } // line 14 public function block_pageContent($context, array $blocks = []) { $macros = $this->macros; // line 15 echo " <div class=\"widget\"> <div class=\"widget-title\">"; // line 16 echo __("Menu Board Categories for"); echo " "; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["menuBoard"] ?? null), "name", [], "any", false, false, false, 16), "html", null, true); echo "</div> <div class=\"widget-body\"> <div class=\"XiboGrid\" id=\""; // line 18 echo twig_escape_filter($this->env, twig_random($this->env), "html", null, true); echo "\" data-grid-type=\"menuBoardCategories\" data-grid-name=\"menuBoardCategoryView\"> <div class=\"XiboFilter card mb-3 bg-light\"> <div class=\"FilterDiv card-body\" id=\"Filter\"> <form class=\"form-inline\"> "; // line 22 ob_start(function () { return ''; }); echo __("ID"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 23 echo " "; echo twig_call_macro($macros["inline"], "macro_number", ["menuCategoryId", ($context["title"] ?? null)], 23, $context, $this->getSourceContext()); echo " <div class=\"form-group mr-1 mb-1\"> <label class=\"control-label mr-1\" title=\"\" for=\"name\" accesskey=\"\">"; // line 26 echo __("Name"); echo "</label> <div class=\"input-group\"> <input class=\"form-control\" name=\"name\" type=\"text\" id=\"name\" value=\"\"> <div class=\"input-group-append input-group-addon\"> <div class=\"input-group-text\"> <input title=\""; // line 31 echo __("Use Regex?"); echo "\" type=\"checkbox\" id=\"useRegexForName\" name=\"useRegexForName\"> </div> </div> </div> </div> "; // line 37 ob_start(function () { return ''; }); echo __("Code"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 38 echo " "; echo twig_call_macro($macros["inline"], "macro_input", ["code", ($context["title"] ?? null)], 38, $context, $this->getSourceContext()); echo " </form> </div> </div> <div class=\"XiboData card pt-3\"> <table id=\"menuBoardCategories\" class=\"table table-striped responsive nowrap\" data-content-type=\"menuBoardCategory\" data-content-id-name=\"menuCategoryId\" data-state-preference-name=\"menuBoardCategoriesGrid\" style=\"width: 100%;\"> <thead> <tr> <th>"; // line 46 echo __("ID"); echo "</th> <th>"; // line 47 echo __("Name"); echo "</th> <th>"; // line 48 echo __("Media"); echo "</th> <th>"; // line 49 echo __("Code"); echo "</th> <th class=\"rowMenu\"></th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> "; } // line 63 public function block_javaScript($context, array $blocks = []) { $macros = $this->macros; // line 64 echo " <script type=\"text/javascript\"> var table; \$(document).ready(function() { table = \$(\"#menuBoardCategories\").DataTable({ \"language\": dataTablesLanguage, \"lengthMenu\": [10, 25, 50, 100, 250, 500], serverSide: true, stateSave: true, stateDuration: 0, responsive: true, stateLoadCallback: dataTableStateLoadCallback, stateSaveCallback: dataTableStateSaveCallback, filter: false, searchDelay: 3000, dataType: 'json', \"order\": [[1, \"asc\"]], ajax: { url: \""; // line 81 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("menuBoard.category.search", ["id" => twig_get_attribute($this->env, $this->source, ($context["menuBoard"] ?? null), "menuId", [], "any", false, false, false, 81)]), "html", null, true); echo "\", \"data\": function (d) { \$.extend(d, \$(\"#menuBoardCategories\").closest(\".XiboGrid\").find(\".FilterDiv form\").serializeObject()); } }, \"columns\": [ {\"data\": \"menuCategoryId\", responsivePriority: 2}, { \"data\": \"name\", responsivePriority: 2, \"render\": dataTableSpacingPreformatted }, { \"name\": \"mediaId\", responsivePriority: 3, \"data\": null, \"render\": {\"_\": \"thumbnail\", \"display\": \"thumbnail\", \"sort\": \"mediaId\"} }, { \"data\": \"code\", responsivePriority: 3 }, { \"orderable\": false, responsivePriority: 1, \"data\": dataTableButtonsColumn } ] }); table.on('draw', dataTableDraw); table.on('processing.dt', dataTableProcessing); dataTableAddButtons(table, \$('#menuBoardCategories_wrapper').find('.col-md-6').eq(1)); }); </script> "; } public function getTemplateName() { return "menuboard-category-page.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 201 => 81, 182 => 64, 178 => 63, 161 => 49, 157 => 48, 153 => 47, 149 => 46, 137 => 38, 133 => 37, 124 => 31, 116 => 26, 109 => 23, 105 => 22, 98 => 18, 91 => 16, 88 => 15, 84 => 14, 72 => 9, 69 => 8, 66 => 7, 62 => 6, 52 => 4, 47 => 1, 45 => 2, 38 => 1,); } public function getSourceContext() { return new Source("", "menuboard-category-page.twig", "/home/mgatv524/public_html/cms311/views/menuboard-category-page.twig"); } }