0byt3m1n1
Path:
/
home
/
mgatv524
/
www
/
midiatech
/
cache
/
27
/
[
Home
]
File: 272bd0b06d50261ce5517356db2f8f193721791b59a0b24e101d4c7cab4d74b8.php
<?php use Twig\Environment; use Twig\Error\LoaderError; use Twig\Error\RuntimeError; 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; /* dataset-form-add.twig */ class __TwigTemplate_5352b5939d04bb1d802292cdfd626342b19bf1389eb65e76db9cbd1317d87f99 extends \Twig\Template { public function __construct(Environment $env) { parent::__construct($env); $this->blocks = [ 'formTitle' => [$this, 'block_formTitle'], 'formButtons' => [$this, 'block_formButtons'], 'callBack' => [$this, 'block_callBack'], 'formHtml' => [$this, 'block_formHtml'], ]; } protected function doGetParent(array $context) { // line 24 return "form-base.twig"; } protected function doDisplay(array $context, array $blocks = []) { // line 25 $context["forms"] = $this->loadTemplate("forms.twig", "dataset-form-add.twig", 25)->unwrap(); // line 24 $this->parent = $this->loadTemplate("form-base.twig", "dataset-form-add.twig", 24); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 27 public function block_formTitle($context, array $blocks = []) { // line 28 echo " "; echo __("Add DataSet"); } // line 31 public function block_formButtons($context, array $blocks = []) { // line 32 echo " "; echo __("Help"); echo ", XiboHelpRender(\""; echo twig_escape_filter($this->env, ($context["help"] ?? null), "html", null, true); echo "\") "; // line 33 echo __("Cancel"); echo ", XiboDialogClose() "; // line 34 echo __("Save"); echo ", \$(\"#dataSetAddForm\").submit() "; } // line 37 public function block_callBack($context, array $blocks = []) { echo "dataSetFormOpen"; } // line 39 public function block_formHtml($context, array $blocks = []) { // line 40 echo " <div class=\"row\"> <div class=\"col-md-12\"> <ul class=\"nav nav-tabs\" role=\"tablist\"> <li class=\"active\"><a href=\"#general\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 43 echo __("General"); echo "</span></a></li> <li class=\"tabForRemoteDataSet\"><a href=\"#gateway\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 44 echo __("Remote"); echo "</span></a></li> <li class=\"tabForRemoteDataSet\"><a href=\"#auth\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 45 echo __("Authentication"); echo "</span></a></li> <li class=\"tabForRemoteDataSet\"><a href=\"#data\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 46 echo __("Data"); echo "</span></a></li> <li class=\"tabForRemoteDataSet\"><a href=\"#params\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 47 echo __("Advanced"); echo "</span></a></li> </ul> <form id=\"dataSetAddForm\" class=\"XiboForm form-horizontal\" method=\"post\" action=\""; // line 49 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("dataSet.add"), "html", null, true); echo "\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> "; // line 52 ob_start(); echo __("Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 53 echo " "; ob_start(); echo __("A name for this DataSet"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 54 echo " "; echo $context["forms"]->getinput("dataSet", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "required"); echo " "; // line 56 ob_start(); echo __("Description"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 57 echo " "; ob_start(); echo __("An optional description"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 58 echo " "; echo $context["forms"]->getinput("description", ($context["title"] ?? null), "", ($context["helpText"] ?? null)); echo " "; // line 60 ob_start(); echo __("Code"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 61 echo " "; ob_start(); echo __("A code which can be used to lookup this DataSet - usually for an API application"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 62 echo " "; echo $context["forms"]->getinput("code", ($context["title"] ?? null), "", ($context["helpText"] ?? null)); echo " "; // line 64 ob_start(); echo __("Remote?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 65 echo " "; ob_start(); echo __("Is this DataSet connected to a remote data source?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 66 echo " "; echo $context["forms"]->getcheckbox("isRemote", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)); echo " </div> <div class=\"tab-pane\" id=\"gateway\"> "; // line 70 ob_start(); echo __("Method"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 71 echo " "; ob_start(); echo __("What type of request needs to be made to get the remote data?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 72 echo " "; ob_start(); echo __("GET"); $context["request_get"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 73 echo " "; ob_start(); echo __("POST"); $context["request_post"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 74 echo " "; $context["options"] = [0 => ["typeid" => "GET", "type" => // line 75 ($context["request_get"] ?? null)], 1 => ["typeid" => "POST", "type" => // line 76 ($context["request_post"] ?? null)]]; // line 78 echo " "; echo $context["forms"]->getdropdown("method", "single", ($context["title"] ?? null), "", ($context["options"] ?? null), "typeid", "type", ($context["helpText"] ?? null)); echo " "; // line 80 ob_start(); echo __("URI"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 81 echo " "; ob_start(); echo __("URL to the Remote DataSet for GET and POST."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 82 echo " "; echo $context["forms"]->getinput("uri", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "required"); echo " <div class=\"form-group\"> <div class=\"col-sm-12\"> <div class=\"help-block\"> <strong>"; // line 87 echo __("Replacements"); echo "</strong><br> "; // line 88 echo __("Request date: {{DATE}}"); echo "<br> "; // line 89 echo __("Request time: {{TIME}}"); echo "<br> "; // line 90 echo __("Dependant fields: {{COL.NAME}} where NAME is a FieldName from the dependant DataSet"); echo "<br> </div> <div class=\"help-block\"> "; // line 93 echo __("Data to add to this request. This should be URL encoded, e.g. paramA=1&paramB=2."); // line 94 echo " </div> <textarea class=\"form-control\" name=\"postData\" id=\"postData\" rows=\"10\"></textarea> </div> </div> </div> <div class=\"tab-pane\" id=\"auth\"> "; // line 101 ob_start(); echo __("Authentication"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 102 echo " "; ob_start(); echo __("Select the authentication requirements for the remote data source. These will be added to the request."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 103 echo " "; ob_start(); echo __("None"); $context["auth_none"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 104 echo " "; ob_start(); echo __("Basic"); $context["auth_basic"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 105 echo " "; ob_start(); echo __("Digest"); $context["auth_digest"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 106 echo " "; ob_start(); echo __("NTLM"); $context["auth_ntlm"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 107 echo " "; ob_start(); echo __("Bearer"); $context["auth_bearer"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 108 echo " "; $context["options"] = [0 => ["typeid" => "none", "type" => // line 109 ($context["auth_none"] ?? null)], 1 => ["typeid" => "basic", "type" => // line 110 ($context["auth_basic"] ?? null)], 2 => ["typeid" => "digest", "type" => // line 111 ($context["auth_digest"] ?? null)], 3 => ["typeid" => "ntlm", "type" => // line 112 ($context["auth_ntlm"] ?? null)], 4 => ["typeid" => "bearer", "type" => // line 113 ($context["auth_bearer"] ?? null)]]; // line 115 echo " "; echo $context["forms"]->getdropdown("authentication", "single", ($context["title"] ?? null), "", ($context["options"] ?? null), "typeid", "type", ($context["helpText"] ?? null)); echo " "; // line 117 ob_start(); echo __("Username"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 118 echo " "; ob_start(); echo __("Enter the authentication Username"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 119 echo " "; echo $context["forms"]->getinput("username", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "auth-field-username", ""); echo " "; // line 121 ob_start(); echo __("Password"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 122 echo " "; ob_start(); echo __("Corresponding Password"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 123 echo " "; echo $context["forms"]->getinput("password", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "auth-field-password", ""); echo " </div> <div class=\"tab-pane\" id=\"data\"> "; // line 127 ob_start(); echo __("Source"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 128 echo " "; ob_start(); echo __("Select source type of the provided remote Dataset URL"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 129 echo " "; ob_start(); echo __("JSON"); $context["json"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 130 echo " "; ob_start(); echo __("CSV"); $context["csv"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 131 echo " "; $context["options"] = [0 => ["sourceId" => 1, "source" => // line 132 ($context["json"] ?? null)], 1 => ["sourceId" => 2, "source" => // line 133 ($context["csv"] ?? null)]]; // line 135 echo " "; echo $context["forms"]->getdropdown("sourceId", "single", ($context["title"] ?? null), 1, ($context["options"] ?? null), "sourceId", "source", ($context["helpText"] ?? null)); echo " "; // line 137 ob_start(); echo __("Data root"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 138 echo " "; ob_start(); echo __("Please enter the element in your remote data which we should use as the starting point when we match the remote Columns. This should be an array or an object. You can use the test button below to see the structure that is returned."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 139 echo " "; echo $context["forms"]->getinput("dataRoot", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "json-source-field", ""); echo " "; // line 141 ob_start(); echo __("Ignore first row?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 142 echo " "; ob_start(); echo __("For CSV source, should the first row be ignored?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 143 echo " "; echo $context["forms"]->getcheckbox("ignoreFirstRow", ($context["title"] ?? null), 0, ($context["helpText"] ?? null), "csv-source-field"); echo " <div class=\"form-group\"> <div class=\"col-sm-offset-2 col-sm-10\"> <a class=\"btn btn-default\" id=\"dataSetRemoteTestButton\" href=\"#\"> "; // line 148 echo __("Test data URL"); // line 149 echo " </a> </div> </div> "; // line 153 ob_start(); echo __("Aggregation"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 154 echo " "; ob_start(); echo __("Aggregate received data by the given method"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 155 echo " "; ob_start(); echo __("None"); $context["summ_none"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 156 echo " "; ob_start(); echo __("Summarize"); $context["summ_sum"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 157 echo " "; ob_start(); echo __("Count"); $context["summ_count"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 158 echo " "; $context["options"] = [0 => ["typeid" => "none", "type" => // line 159 ($context["summ_none"] ?? null)], 1 => ["typeid" => "sum", "type" => // line 160 ($context["summ_sum"] ?? null)], 2 => ["typeid" => "count", "type" => // line 161 ($context["summ_count"] ?? null)]]; // line 163 echo " "; echo $context["forms"]->getdropdown("summarize", "single", ($context["title"] ?? null), "", ($context["options"] ?? null), "typeid", "type", ($context["helpText"] ?? null), "json-source-field"); echo " <div class=\"form-group json-source-field\"> <label class=\"col-sm-2 control-label\" for=\"summarizeField\">"; // line 166 echo __("By Field"); echo "</label> <div class=\"col-sm-10\"> <input class=\"form-control\" type=\"text\" name=\"summarizeField\" id=\"summarizeField\" /> <div class=\"help-block\"> "; // line 170 echo __("Using JSON syntax enter the path below the Data root by which the above aggregation should be applied."); echo "<br> "; // line 171 echo __("Summarize: Values in this field will be summarized and stored in one column."); echo "<br> "; // line 172 echo __("Count: All individual values in this field will be counted and stored in one Column for each value"); echo "<br> </div> </div> </div> </div> <div class=\"tab-pane\" id=\"params\"> "; // line 179 ob_start(); echo __("Refresh"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 180 echo " "; ob_start(); echo __("How often should this remote data be fetched and imported?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 181 echo " "; // line 182 ob_start(); echo __("Constantly"); $context["refresh_everytime"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 183 echo " "; ob_start(); echo __("Hourly"); $context["refresh_hour"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 184 echo " "; ob_start(); echo __("Daily"); $context["refresh_day"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 185 echo " "; ob_start(); echo __("Weekly"); $context["refresh_week"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 186 echo " "; ob_start(); echo __("Every two Weeks"); $context["refresh_two_week"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 187 echo " "; ob_start(); echo __("Monthly"); $context["refresh_month"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 188 echo " "; ob_start(); echo __("Quaterly"); $context["refresh_quater"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 189 echo " "; ob_start(); echo __("Yearly"); $context["refresh_year"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 190 echo " "; $context["options"] = [0 => ["typeid" => "0", "type" => // line 191 ($context["refresh_everytime"] ?? null)], 1 => ["typeid" => "3600", "type" => // line 192 ($context["refresh_hour"] ?? null)], 2 => ["typeid" => "86400", "type" => // line 193 ($context["refresh_day"] ?? null)], 3 => ["typeid" => "604800", "type" => // line 194 ($context["refresh_week"] ?? null)], 4 => ["typeid" => "1209600", "type" => // line 195 ($context["refresh_two_week"] ?? null)], 5 => ["typeid" => "2419200", "type" => // line 196 ($context["refresh_month"] ?? null)], 6 => ["typeid" => "7257600", "type" => // line 197 ($context["refresh_quater"] ?? null)], 7 => ["typeid" => "29030400", "type" => // line 198 ($context["refresh_year"] ?? null)]]; // line 200 echo " "; echo $context["forms"]->getdropdown("refreshRate", "single", ($context["title"] ?? null), "", ($context["options"] ?? null), "typeid", "type", ($context["helpText"] ?? null)); echo " "; // line 202 ob_start(); echo __("Truncate DataSet"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 203 echo " "; ob_start(); echo __("Select when you would like the Data to be truncated out of this DataSet. The criteria is assessed when synchronisation occurs and is truncated before adding new data."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 204 echo " "; // line 205 ob_start(); echo __("Never"); $context["truncate_never"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 206 echo " "; ob_start(); echo __("Always"); $context["truncate_everytime"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 207 echo " "; ob_start(); echo __("Hourly"); $context["truncate_hour"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 208 echo " "; ob_start(); echo __("Daily"); $context["truncate_day"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 209 echo " "; ob_start(); echo __("Weekly"); $context["truncate_week"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 210 echo " "; ob_start(); echo __("Every two Weeks"); $context["truncate_two_week"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 211 echo " "; ob_start(); echo __("Monthly"); $context["truncate_month"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 212 echo " "; ob_start(); echo __("Quaterly"); $context["truncate_quater"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 213 echo " "; ob_start(); echo __("Yearly"); $context["truncate_year"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 214 echo " "; ob_start(); echo __("Every second Year"); $context["truncate_two_year"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 215 echo " "; $context["options"] = [0 => ["typeid" => "0", "type" => // line 216 ($context["truncate_never"] ?? null)], 1 => ["typeid" => "1", "type" => // line 217 ($context["truncate_everytime"] ?? null)], 2 => ["typeid" => "3600", "type" => // line 218 ($context["truncate_hour"] ?? null)], 3 => ["typeid" => "86400", "type" => // line 219 ($context["truncate_day"] ?? null)], 4 => ["typeid" => "604800", "type" => // line 220 ($context["truncate_week"] ?? null)], 5 => ["typeid" => "1209600", "type" => // line 221 ($context["truncate_two_week"] ?? null)], 6 => ["typeid" => "2419200", "type" => // line 222 ($context["truncate_month"] ?? null)], 7 => ["typeid" => "7257600", "type" => // line 223 ($context["truncate_quater"] ?? null)], 8 => ["typeid" => "29030400", "type" => // line 224 ($context["truncate_year"] ?? null)], 9 => ["typeid" => "58060800", "type" => // line 225 ($context["truncate_two_year"] ?? null)]]; // line 227 echo " "; echo $context["forms"]->getdropdown("clearRate", "single", ($context["title"] ?? null), "1", ($context["options"] ?? null), "typeid", "type", ($context["helpText"] ?? null)); echo " "; // line 229 ob_start(); echo __("Depends on DataSet"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 230 echo " "; $context["dataSets"] = twig_array_merge([0 => ["dataSetId" => null, "dataSet" => ""]], ($context["dataSets"] ?? null)); // line 231 echo " "; ob_start(); echo __("The DataSet you select here will be processed in advance and have its values available for subsitution in the data to add to this request on the Remote tab."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 232 echo " "; echo $context["forms"]->getdropdown("runsAfter", "single", ($context["title"] ?? null), "", ($context["dataSets"] ?? null), "dataSetId", "dataSet", ($context["helpText"] ?? null)); echo " </div> </div> </form> <div id=\"datasetRemoteTestRequestResult\" class=\"col-sm-12\"></div> </div> </div> "; } public function getTemplateName() { return "dataset-form-add.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 626 => 232, 621 => 231, 618 => 230, 614 => 229, 608 => 227, 606 => 225, 605 => 224, 604 => 223, 603 => 222, 602 => 221, 601 => 220, 600 => 219, 599 => 218, 598 => 217, 597 => 216, 595 => 215, 590 => 214, 585 => 213, 580 => 212, 575 => 211, 570 => 210, 565 => 209, 560 => 208, 555 => 207, 550 => 206, 546 => 205, 543 => 204, 538 => 203, 534 => 202, 528 => 200, 526 => 198, 525 => 197, 524 => 196, 523 => 195, 522 => 194, 521 => 193, 520 => 192, 519 => 191, 517 => 190, 512 => 189, 507 => 188, 502 => 187, 497 => 186, 492 => 185, 487 => 184, 482 => 183, 478 => 182, 475 => 181, 470 => 180, 466 => 179, 456 => 172, 452 => 171, 448 => 170, 441 => 166, 434 => 163, 432 => 161, 431 => 160, 430 => 159, 428 => 158, 423 => 157, 418 => 156, 413 => 155, 408 => 154, 404 => 153, 398 => 149, 396 => 148, 387 => 143, 382 => 142, 378 => 141, 372 => 139, 367 => 138, 363 => 137, 357 => 135, 355 => 133, 354 => 132, 352 => 131, 347 => 130, 342 => 129, 337 => 128, 333 => 127, 325 => 123, 320 => 122, 316 => 121, 310 => 119, 305 => 118, 301 => 117, 295 => 115, 293 => 113, 292 => 112, 291 => 111, 290 => 110, 289 => 109, 287 => 108, 282 => 107, 277 => 106, 272 => 105, 267 => 104, 262 => 103, 257 => 102, 253 => 101, 244 => 94, 242 => 93, 236 => 90, 232 => 89, 228 => 88, 224 => 87, 215 => 82, 210 => 81, 206 => 80, 200 => 78, 198 => 76, 197 => 75, 195 => 74, 190 => 73, 185 => 72, 180 => 71, 176 => 70, 168 => 66, 163 => 65, 159 => 64, 153 => 62, 148 => 61, 144 => 60, 138 => 58, 133 => 57, 129 => 56, 123 => 54, 118 => 53, 114 => 52, 108 => 49, 103 => 47, 99 => 46, 95 => 45, 91 => 44, 87 => 43, 82 => 40, 79 => 39, 73 => 37, 67 => 34, 63 => 33, 56 => 32, 53 => 31, 48 => 28, 45 => 27, 40 => 24, 38 => 25, 32 => 24,); } /** @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 Source("{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015-2018 Spring Signage Ltd * contributions by LukyLuke aka Lukas Zurschmiede - https://github.com/LukyLuke * * (dataset-form-add.twig) This file is part of Xibo. * * Xibo is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * any later version. * * Xibo is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with Xibo. If not, see <http://www.gnu.org/licenses/>. */ #} {% extends \"form-base.twig\" %} {% import \"forms.twig\" as forms %} {% block formTitle %} {% trans \"Add DataSet\" %} {% endblock %} {% block formButtons %} {% trans \"Help\" %}, XiboHelpRender(\"{{ help }}\") {% trans \"Cancel\" %}, XiboDialogClose() {% trans \"Save\" %}, \$(\"#dataSetAddForm\").submit() {% endblock %} {% block callBack %}dataSetFormOpen{% endblock %} {% block formHtml %} <div class=\"row\"> <div class=\"col-md-12\"> <ul class=\"nav nav-tabs\" role=\"tablist\"> <li class=\"active\"><a href=\"#general\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"General\" %}</span></a></li> <li class=\"tabForRemoteDataSet\"><a href=\"#gateway\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"Remote\" %}</span></a></li> <li class=\"tabForRemoteDataSet\"><a href=\"#auth\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"Authentication\" %}</span></a></li> <li class=\"tabForRemoteDataSet\"><a href=\"#data\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"Data\" %}</span></a></li> <li class=\"tabForRemoteDataSet\"><a href=\"#params\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"Advanced\" %}</span></a></li> </ul> <form id=\"dataSetAddForm\" class=\"XiboForm form-horizontal\" method=\"post\" action=\"{{ urlFor(\"dataSet.add\") }}\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> {% set title %}{% trans \"Name\" %}{% endset %} {% set helpText %}{% trans \"A name for this DataSet\" %}{% endset %} {{ forms.input(\"dataSet\", title, \"\", helpText, \"\", \"required\") }} {% set title %}{% trans \"Description\" %}{% endset %} {% set helpText %}{% trans \"An optional description\" %}{% endset %} {{ forms.input(\"description\", title, \"\", helpText) }} {% set title %}{% trans \"Code\" %}{% endset %} {% set helpText %}{% trans \"A code which can be used to lookup this DataSet - usually for an API application\" %}{% endset %} {{ forms.input(\"code\", title, \"\", helpText) }} {% set title %}{% trans \"Remote?\" %}{% endset %} {% set helpText %}{% trans \"Is this DataSet connected to a remote data source?\" %}{% endset %} {{ forms.checkbox(\"isRemote\", title, 0, helpText) }} </div> <div class=\"tab-pane\" id=\"gateway\"> {% set title %}{% trans \"Method\" %}{% endset %} {% set helpText %}{% trans \"What type of request needs to be made to get the remote data?\" %}{% endset %} {% set request_get %}{% trans \"GET\" %}{% endset %} {% set request_post %}{% trans \"POST\" %}{% endset %} {% set options = [ { typeid: \"GET\", type: request_get }, { typeid: \"POST\", type: request_post } ] %} {{ forms.dropdown(\"method\", \"single\", title, \"\", options, \"typeid\", \"type\", helpText) }} {% set title %}{% trans \"URI\" %}{% endset %} {% set helpText %}{% trans \"URL to the Remote DataSet for GET and POST.\" %}{% endset %} {{ forms.input(\"uri\", title, \"\", helpText, \"\", \"required\") }} <div class=\"form-group\"> <div class=\"col-sm-12\"> <div class=\"help-block\"> <strong>{% trans \"Replacements\" %}</strong><br> {% trans \"Request date: {{DATE}}\" %}<br> {% trans \"Request time: {{TIME}}\" %}<br> {% trans \"Dependant fields: {{COL.NAME}} where NAME is a FieldName from the dependant DataSet\" %}<br> </div> <div class=\"help-block\"> {% trans \"Data to add to this request. This should be URL encoded, e.g. paramA=1&paramB=2.\" %} </div> <textarea class=\"form-control\" name=\"postData\" id=\"postData\" rows=\"10\"></textarea> </div> </div> </div> <div class=\"tab-pane\" id=\"auth\"> {% set title %}{% trans \"Authentication\" %}{% endset %} {% set helpText %}{% trans \"Select the authentication requirements for the remote data source. These will be added to the request.\" %}{% endset %} {% set auth_none %}{% trans \"None\" %}{% endset %} {% set auth_basic %}{% trans \"Basic\" %}{% endset %} {% set auth_digest %}{% trans \"Digest\" %}{% endset %} {% set auth_ntlm %}{% trans \"NTLM\" %}{% endset %} {% set auth_bearer %}{% trans \"Bearer\" %}{% endset %} {% set options = [ { typeid: \"none\", type: auth_none }, { typeid: \"basic\", type: auth_basic }, { typeid: \"digest\", type: auth_digest }, { typeid: \"ntlm\", type: auth_ntlm }, { typeid: \"bearer\", type: auth_bearer } ] %} {{ forms.dropdown(\"authentication\", \"single\", title, \"\", options, \"typeid\", \"type\", helpText) }} {% set title %}{% trans \"Username\" %}{% endset %} {% set helpText %}{% trans \"Enter the authentication Username\" %}{% endset %} {{ forms.input(\"username\", title, \"\", helpText, \"auth-field-username\", \"\") }} {% set title %}{% trans \"Password\" %}{% endset %} {% set helpText %}{% trans \"Corresponding Password\" %}{% endset %} {{ forms.input(\"password\", title, \"\", helpText, \"auth-field-password\", \"\") }} </div> <div class=\"tab-pane\" id=\"data\"> {% set title %}{% trans \"Source\" %}{% endset %} {% set helpText %}{% trans \"Select source type of the provided remote Dataset URL\" %}{% endset %} {% set json %}{% trans \"JSON\" %}{% endset %} {% set csv %}{% trans \"CSV\" %}{% endset %} {% set options = [ { sourceId: 1, source: json }, { sourceId: 2, source: csv }, ] %} {{ forms.dropdown(\"sourceId\", \"single\", title, 1, options, \"sourceId\", \"source\", helpText) }} {% set title %}{% trans \"Data root\" %}{% endset %} {% set helpText %}{% trans \"Please enter the element in your remote data which we should use as the starting point when we match the remote Columns. This should be an array or an object. You can use the test button below to see the structure that is returned.\" %}{% endset %} {{ forms.input(\"dataRoot\", title, \"\", helpText, \"json-source-field\", \"\") }} {% set title %}{% trans \"Ignore first row?\" %}{% endset %} {% set helpText %}{% trans \"For CSV source, should the first row be ignored?\" %}{% endset %} {{ forms.checkbox(\"ignoreFirstRow\", title, 0, helpText, \"csv-source-field\") }} <div class=\"form-group\"> <div class=\"col-sm-offset-2 col-sm-10\"> <a class=\"btn btn-default\" id=\"dataSetRemoteTestButton\" href=\"#\"> {% trans \"Test data URL\" %} </a> </div> </div> {% set title %}{% trans \"Aggregation\" %}{% endset %} {% set helpText %}{% trans \"Aggregate received data by the given method\" %}{% endset %} {% set summ_none %}{% trans \"None\" %}{% endset %} {% set summ_sum %}{% trans \"Summarize\" %}{% endset %} {% set summ_count %}{% trans \"Count\" %}{% endset %} {% set options = [ { typeid: \"none\", type: summ_none }, { typeid: \"sum\", type: summ_sum }, { typeid: \"count\", type: summ_count } ] %} {{ forms.dropdown(\"summarize\", \"single\", title, \"\", options, \"typeid\", \"type\", helpText, \"json-source-field\") }} <div class=\"form-group json-source-field\"> <label class=\"col-sm-2 control-label\" for=\"summarizeField\">{% trans \"By Field\" %}</label> <div class=\"col-sm-10\"> <input class=\"form-control\" type=\"text\" name=\"summarizeField\" id=\"summarizeField\" /> <div class=\"help-block\"> {% trans \"Using JSON syntax enter the path below the Data root by which the above aggregation should be applied.\" %}<br> {% trans \"Summarize: Values in this field will be summarized and stored in one column.\" %}<br> {% trans \"Count: All individual values in this field will be counted and stored in one Column for each value\" %}<br> </div> </div> </div> </div> <div class=\"tab-pane\" id=\"params\"> {% set title %}{% trans \"Refresh\" %}{% endset %} {% set helpText %}{% trans \"How often should this remote data be fetched and imported?\" %}{% endset %} {% set refresh_everytime %}{% trans \"Constantly\" %}{% endset %} {% set refresh_hour %}{% trans \"Hourly\" %}{% endset %} {% set refresh_day %}{% trans \"Daily\" %}{% endset %} {% set refresh_week %}{% trans \"Weekly\" %}{% endset %} {% set refresh_two_week %}{% trans \"Every two Weeks\" %}{% endset %} {% set refresh_month %}{% trans \"Monthly\" %}{% endset %} {% set refresh_quater %}{% trans \"Quaterly\" %}{% endset %} {% set refresh_year %}{% trans \"Yearly\" %}{% endset %} {% set options = [ { typeid: \"0\", type: refresh_everytime }, { typeid: \"3600\", type: refresh_hour }, { typeid: \"86400\", type: refresh_day }, { typeid: \"604800\", type: refresh_week }, { typeid: \"1209600\", type: refresh_two_week }, { typeid: \"2419200\", type: refresh_month }, { typeid: \"7257600\", type: refresh_quater }, { typeid: \"29030400\", type: refresh_year } ] %} {{ forms.dropdown(\"refreshRate\", \"single\", title, \"\", options, \"typeid\", \"type\", helpText) }} {% set title %}{% trans \"Truncate DataSet\" %}{% endset %} {% set helpText %}{% trans \"Select when you would like the Data to be truncated out of this DataSet. The criteria is assessed when synchronisation occurs and is truncated before adding new data.\" %}{% endset %} {% set truncate_never %}{% trans \"Never\" %}{% endset %} {% set truncate_everytime %}{% trans \"Always\" %}{% endset %} {% set truncate_hour %}{% trans \"Hourly\" %}{% endset %} {% set truncate_day %}{% trans \"Daily\" %}{% endset %} {% set truncate_week %}{% trans \"Weekly\" %}{% endset %} {% set truncate_two_week %}{% trans \"Every two Weeks\" %}{% endset %} {% set truncate_month %}{% trans \"Monthly\" %}{% endset %} {% set truncate_quater %}{% trans \"Quaterly\" %}{% endset %} {% set truncate_year %}{% trans \"Yearly\" %}{% endset %} {% set truncate_two_year %}{% trans \"Every second Year\" %}{% endset %} {% set options = [ { typeid: \"0\", type: truncate_never }, { typeid: \"1\", type: truncate_everytime }, { typeid: \"3600\", type: truncate_hour }, { typeid: \"86400\", type: truncate_day }, { typeid: \"604800\", type: truncate_week }, { typeid: \"1209600\", type: truncate_two_week }, { typeid: \"2419200\", type: truncate_month }, { typeid: \"7257600\", type: truncate_quater }, { typeid: \"29030400\", type: truncate_year }, { typeid: \"58060800\", type: truncate_two_year } ] %} {{ forms.dropdown(\"clearRate\", \"single\", title, \"1\", options, \"typeid\", \"type\", helpText) }} {% set title %}{% trans \"Depends on DataSet\" %}{% endset %} {% set dataSets = [{dataSetId: null, dataSet: \"\"}]|merge(dataSets) %} {% set helpText %}{% trans \"The DataSet you select here will be processed in advance and have its values available for subsitution in the data to add to this request on the Remote tab.\" %}{% endset %} {{ forms.dropdown(\"runsAfter\", \"single\", title, \"\", dataSets, \"dataSetId\", \"dataSet\", helpText) }} </div> </div> </form> <div id=\"datasetRemoteTestRequestResult\" class=\"col-sm-12\"></div> </div> </div> {% endblock %}", "dataset-form-add.twig", "/home/mgatv524/public_html/midiatech/views/dataset-form-add.twig"); } }