0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
shimoda
/
cache
/
3c
/
[
Home
]
File: 3cddf34d2137408a65d6f5ab74da0d3ef56d8306a3768e1dc5d9d414f46a5115.php
<?php /* dataset-column-page.twig */ class __TwigTemplate_1f9369d9bee358b118ce92eb5be90a1b26f25e1f0c29106d24df9834cbda0f43 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 9 $this->parent = $this->loadTemplate("authed.twig", "dataset-column-page.twig", 9); $this->blocks = array( 'actionMenu' => array($this, 'block_actionMenu'), 'pageContent' => array($this, 'block_pageContent'), 'javaScript' => array($this, 'block_javaScript'), ); } protected function doGetParent(array $context) { return "authed.twig"; } protected function doDisplay(array $context, array $blocks = array()) { // line 10 $context["inline"] = $this->loadTemplate("inline.twig", "dataset-column-page.twig", 10); // line 9 $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 12 public function block_actionMenu($context, array $blocks = array()) { // line 13 echo " <ul class=\"nav nav-pills pull-right\"> <li class=\"btn btn-success btn-xs\"><a class=\"XiboFormButton btns\" title=\""; // line 14 echo __("Add Column"); echo "\" href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("dataSet.column.add.form", array("id" => $this->getAttribute(($context["dataSet"] ?? null), "dataSetId", array()))), "html", null, true); echo "\"><i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> "; echo __("Add Column"); echo "</a></li> <li class=\"btn btn-info btn-xs\"><a class=\"btns\" title=\""; // line 15 echo __("View Data"); echo "\" href=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("dataSet.view.data", array("id" => $this->getAttribute(($context["dataSet"] ?? null), "dataSetId", array()))), "html", null, true); echo "\"><i class=\"fa fa-eye\" aria-hidden=\"true\"></i> "; echo __("View Data"); echo "</a></li> </ul> "; } // line 20 public function block_pageContent($context, array $blocks = array()) { // line 21 echo " "; $context["dataSetName"] = $this->getAttribute(($context["dataSet"] ?? null), "dataSet", array()); // line 22 echo " "; ob_start(); /* xgettext:no-php-format */ echo strtr(__("Columns for %dataSetName%"), array("%dataSetName%" => ($context["dataSetName"] ?? null), )); $context["widgetTitle"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 23 echo " <div class=\"widget\"> <div class=\"widget-title\">"; // line 24 echo twig_escape_filter($this->env, ($context["widgetTitle"] ?? null), "html", null, true); echo "</div> <div class=\"widget-body\"> <div class=\"XiboGrid\" id=\""; // line 26 echo twig_escape_filter($this->env, twig_random($this->env), "html", null, true); echo "\"> <div class=\"XiboFilter\"> <div class=\"FilterDiv\" id=\"Filter\"> <form class=\"form-inline\"> </form> </div> </div> <div class=\"XiboData\"> <table id=\"datasets\" class=\"table table-striped\"> <thead> <tr> <th>"; // line 38 echo __("Heading"); echo "</th> <th>"; // line 39 echo __("DataType"); echo "</th> <th>"; // line 40 echo __("Column Type"); echo "</th> <th>"; // line 41 echo __("List Content"); echo "</th> <th>"; // line 42 echo __("Order"); echo "</th> <th></th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> "; } // line 56 public function block_javaScript($context, array $blocks = array()) { // line 57 echo " <script type=\"text/javascript\"> var table = \$(\"#datasets\").DataTable({ \"language\": dataTablesLanguage, serverSide: true, stateSave: true, stateDuration: 0, stateLoadCallback: function (settings, callback) { var data; \$.ajax({ type: \"GET\", async: false, url: \""; // line 65 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("user.pref"), "html", null, true); echo "?preference=dataSetColumnGrid\", dataType: 'json', success: function (json) { if (json.success) data = JSON.parse(json.data.value); } }); return data; }, stateSaveCallback: function (settings, data) { \$.ajax({ type: \"POST\", url: \""; // line 77 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("user.pref"), "html", null, true); echo "\", data: { preference: [{ option: \"dataSetColumnGrid\", value: JSON.stringify(data) }] } }); }, filter: false, searchDelay: 3000, \"order\": [[ 0, \"asc\"]], ajax: { \"url\": \""; // line 90 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("dataSet.column.search", array("id" => $this->getAttribute(($context["dataSet"] ?? null), "dataSetId", array()))), "html", null, true); echo "\", \"data\": function(d) { \$.extend(d, \$(\"#datasets\").closest(\".XiboGrid\").find(\".FilterDiv form\").serializeObject()); } }, \"columns\": [ { \"data\": \"heading\", \"render\": dataTableSpacingPreformatted }, { \"data\": \"dataType\" }, { \"data\": \"dataSetColumnType\" }, { \"data\": \"listContent\" }, { \"data\": \"columnOrder\" }, { \"orderable\": false, \"data\": dataTableButtonsColumn } ] }); table.on('draw', dataTableDraw); table.on('processing.dt', dataTableProcessing); </script> "; } public function getTemplateName() { return "dataset-column-page.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 169 => 90, 153 => 77, 138 => 65, 128 => 57, 125 => 56, 108 => 42, 104 => 41, 100 => 40, 96 => 39, 92 => 38, 77 => 26, 72 => 24, 69 => 23, 64 => 22, 61 => 21, 58 => 20, 47 => 15, 39 => 14, 36 => 13, 33 => 12, 29 => 9, 27 => 10, 11 => 9,); } /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */ public function getSource() { @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED); return $this->getSourceContext()->getCode(); } public function getSourceContext() { return new Twig_Source("{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015 Spring Signage Ltd * (\${FILE_NAME}) */ #} {% extends \"authed.twig\" %} {% import \"inline.twig\" as inline %} {% block actionMenu %} <ul class=\"nav nav-pills pull-right\"> <li class=\"btn btn-success btn-xs\"><a class=\"XiboFormButton btns\" title=\"{% trans \"Add Column\" %}\" href=\"{{ urlFor(\"dataSet.column.add.form\", {id: dataSet.dataSetId}) }}\"><i class=\"fa fa-plus-circle\" aria-hidden=\"true\"></i> {% trans \"Add Column\" %}</a></li> <li class=\"btn btn-info btn-xs\"><a class=\"btns\" title=\"{% trans \"View Data\" %}\" href=\"{{ urlFor(\"dataSet.view.data\", {id: dataSet.dataSetId}) }}\"><i class=\"fa fa-eye\" aria-hidden=\"true\"></i> {% trans \"View Data\" %}</a></li> </ul> {% endblock %} {% block pageContent %} {% set dataSetName = dataSet.dataSet %} {% set widgetTitle %}{% trans %}Columns for {{ dataSetName }}{% endtrans %}{% endset %} <div class=\"widget\"> <div class=\"widget-title\">{{ widgetTitle }}</div> <div class=\"widget-body\"> <div class=\"XiboGrid\" id=\"{{ random() }}\"> <div class=\"XiboFilter\"> <div class=\"FilterDiv\" id=\"Filter\"> <form class=\"form-inline\"> </form> </div> </div> <div class=\"XiboData\"> <table id=\"datasets\" class=\"table table-striped\"> <thead> <tr> <th>{% trans \"Heading\" %}</th> <th>{% trans \"DataType\" %}</th> <th>{% trans \"Column Type\" %}</th> <th>{% trans \"List Content\" %}</th> <th>{% trans \"Order\" %}</th> <th></th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> {% endblock %} {% block javaScript %} <script type=\"text/javascript\"> var table = \$(\"#datasets\").DataTable({ \"language\": dataTablesLanguage, serverSide: true, stateSave: true, stateDuration: 0, stateLoadCallback: function (settings, callback) { var data; \$.ajax({ type: \"GET\", async: false, url: \"{{ urlFor(\"user.pref\") }}?preference=dataSetColumnGrid\", dataType: 'json', success: function (json) { if (json.success) data = JSON.parse(json.data.value); } }); return data; }, stateSaveCallback: function (settings, data) { \$.ajax({ type: \"POST\", url: \"{{ urlFor(\"user.pref\") }}\", data: { preference: [{ option: \"dataSetColumnGrid\", value: JSON.stringify(data) }] } }); }, filter: false, searchDelay: 3000, \"order\": [[ 0, \"asc\"]], ajax: { \"url\": \"{{ urlFor(\"dataSet.column.search\", {id: dataSet.dataSetId}) }}\", \"data\": function(d) { \$.extend(d, \$(\"#datasets\").closest(\".XiboGrid\").find(\".FilterDiv form\").serializeObject()); } }, \"columns\": [ { \"data\": \"heading\", \"render\": dataTableSpacingPreformatted }, { \"data\": \"dataType\" }, { \"data\": \"dataSetColumnType\" }, { \"data\": \"listContent\" }, { \"data\": \"columnOrder\" }, { \"orderable\": false, \"data\": dataTableButtonsColumn } ] }); table.on('draw', dataTableDraw); table.on('processing.dt', dataTableProcessing); </script> {% endblock %}", "dataset-column-page.twig", "/home/mgatv524/public_html/shimoda/views/dataset-column-page.twig"); } }