0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
somares
/
cache
/
ae
/
[
Home
]
File: aefa5dcbd318318a5a7c07ad19a6fd78b850dbd20a5e66340e27f08f46ed4045.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; /* layout-form-add.twig */ class __TwigTemplate_544212306e5c026b5784a546249e197378f3d35ff1c9b1253227c52cb276909c 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'], 'formFieldActions' => [$this, 'block_formFieldActions'], 'formHtml' => [$this, 'block_formHtml'], ]; } protected function doGetParent(array $context) { // line 9 return "form-base.twig"; } protected function doDisplay(array $context, array $blocks = []) { // line 10 $context["forms"] = $this->loadTemplate("forms.twig", "layout-form-add.twig", 10)->unwrap(); // line 9 $this->parent = $this->loadTemplate("form-base.twig", "layout-form-add.twig", 9); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 12 public function block_formTitle($context, array $blocks = []) { // line 13 echo " "; echo __("Add Layout"); } // line 16 public function block_formButtons($context, array $blocks = []) { // line 17 echo " "; echo __("Help"); echo ", XiboHelpRender(\""; echo twig_escape_filter($this->env, ($context["help"] ?? null), "html", null, true); echo "\") "; // line 18 echo __("Cancel"); echo ", XiboDialogClose() "; // line 19 echo __("Save"); echo ", \$(\"#layoutAddForm\").submit() "; } // line 22 public function block_callBack($context, array $blocks = []) { echo "layoutAddFormOpen"; } // line 24 public function block_formFieldActions($context, array $blocks = []) { // line 25 echo " [{ \"field\": \"layoutId\", \"trigger\": \"change\", \"value\": 0, \"operation\": \"equals\", \"actions\": { \".resolution-group\": { \"display\": \"block\" } } },{ \"field\": \"layoutId\", \"trigger\": \"change\", \"value\": 0, \"operation\": \"not\", \"actions\": { \".resolution-group\": { \"display\": \"none\" } } }] "; } // line 44 public function block_formHtml($context, array $blocks = []) { // line 45 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 48 echo __("General"); echo "</span></a></li> <li><a href=\"#description\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 49 echo __("Description"); echo "</span></a></li> </ul> <form id=\"layoutAddForm\" class=\"form-horizontal\" method=\"post\" action=\""; // line 51 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("layout.add"), "html", null, true); echo "\" data-redirect=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("layout.designer"), "html", null, true); echo "\" data-gettag=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("tag.getByName"), "html", null, true); echo "\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> "; // line 54 ob_start(); echo __("Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 55 echo " "; ob_start(); echo __("The Name of the Layout - (1 - 50 characters)"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 56 echo " "; echo $context["forms"]->getinput("name", ($context["title"] ?? null), "", ($context["helpText"] ?? null)); echo " "; // line 58 ob_start(); echo __("Tags"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 59 echo " "; ob_start(); echo __("Tags for this Layout - Comma separated string of Tags or Tag|Value format. If you choose a Tag that has associated values, they will be shown for selection below."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 60 echo " "; echo $context["forms"]->getinputWithTags("tags", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "tags-with-value"); echo " <p id=\"loadingValues\" style=\"margin-left: 17%\"></p> "; // line 64 ob_start(); echo __("Tag value"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 65 echo " "; echo $context["forms"]->getdropdown("tagValue", "single", ($context["title"] ?? null), "", ($context["options"] ?? null), "key", "value"); echo " <div id=\"tagValueContainer\"> "; // line 68 ob_start(); echo __("Tag value"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 69 echo " "; ob_start(); echo __("Please provide the value for this Tag and confirm by pressing enter on your keyboard."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 70 echo " "; echo $context["forms"]->getinput("tagValueInput", ($context["title"] ?? null), "", ($context["helpText"] ?? null)); echo " </div> <div id=\"tagValueRequired\" class=\"alert alert-info\"> <p>"; // line 74 echo __("This tag requires a set value, please select one from the Tag value dropdown or provide Tag value in the dedicated field."); echo "</p> </div> "; // line 77 ob_start(); echo __("Template"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 78 echo " "; ob_start(); echo __("Optionally choose a template you have saved before."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 79 echo " "; $context["layouts"] = twig_array_merge([0 => ["layoutId" => null, "layout" => ""]], ($context["layouts"] ?? null)); // line 80 echo " "; echo $context["forms"]->getdropdown("layoutId", "single", ($context["title"] ?? null), "", ($context["layouts"] ?? null), "layoutId", "layout", ($context["helpText"] ?? null)); echo " "; // line 82 ob_start(); echo __("Resolution"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 83 echo " "; ob_start(); echo __("Choose the resolution this Layout should be designed for."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 84 echo " "; echo $context["forms"]->getdropdown("resolutionId", "single", ($context["title"] ?? null), "", ($context["resolutions"] ?? null), "resolutionId", "resolution", ($context["helpText"] ?? null), "resolution-group"); echo " "; // line 86 ob_start(); echo __("Enable Stats Collection?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 87 echo " "; ob_start(); echo __("Enable the collection of Proof of Play statistics for this Layout. Ensure that ‘Enable Stats Collection’ is set to ‘On’ in the Display Settings."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 88 echo " "; echo $context["forms"]->getcheckbox("enableStat", ($context["title"] ?? null), $this->getAttribute(($context["theme"] ?? null), "getSetting", [0 => "LAYOUT_STATS_ENABLED_DEFAULT"], "method"), ($context["helpText"] ?? null)); echo " "; // line 90 ob_start(); echo __("Automatically apply Transitions?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 91 echo " "; ob_start(); echo __("When enabled, the default Transition type and duration will be applied to all widgets on this Layout."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 92 echo " "; echo $context["forms"]->getcheckbox("autoApplyTransitions", ($context["title"] ?? null), $this->getAttribute(($context["theme"] ?? null), "getSetting", [0 => "DEFAULT_TRANSITION_AUTO_APPLY"], "method"), ($context["helpText"] ?? null)); echo " </div> <div class=\"tab-pane\" id=\"description\"> "; // line 95 ob_start(); echo __("Description"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 96 echo " "; ob_start(); echo __("An optional description of the Layout. (1 - 250 characters)"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 97 echo " "; echo $context["forms"]->gettextarea("description", ($context["title"] ?? null), "", ($context["helpText"] ?? null)); echo " </div> </div> </form> </div> </div> "; } public function getTemplateName() { return "layout-form-add.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 270 => 97, 265 => 96, 261 => 95, 254 => 92, 249 => 91, 245 => 90, 239 => 88, 234 => 87, 230 => 86, 224 => 84, 219 => 83, 215 => 82, 209 => 80, 206 => 79, 201 => 78, 197 => 77, 191 => 74, 183 => 70, 178 => 69, 174 => 68, 167 => 65, 163 => 64, 155 => 60, 150 => 59, 146 => 58, 140 => 56, 135 => 55, 131 => 54, 121 => 51, 116 => 49, 112 => 48, 107 => 45, 104 => 44, 83 => 25, 80 => 24, 74 => 22, 68 => 19, 64 => 18, 57 => 17, 54 => 16, 49 => 13, 46 => 12, 41 => 9, 39 => 10, 33 => 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 Source("{# /* * Spring Signage Ltd - http://www.springsignage.com * Copyright (C) 2015 Spring Signage Ltd * (\${FILE_NAME}) */ #} {% extends \"form-base.twig\" %} {% import \"forms.twig\" as forms %} {% block formTitle %} {% trans \"Add Layout\" %} {% endblock %} {% block formButtons %} {% trans \"Help\" %}, XiboHelpRender(\"{{ help }}\") {% trans \"Cancel\" %}, XiboDialogClose() {% trans \"Save\" %}, \$(\"#layoutAddForm\").submit() {% endblock %} {% block callBack %}layoutAddFormOpen{% endblock %} {% block formFieldActions %} [{ \"field\": \"layoutId\", \"trigger\": \"change\", \"value\": 0, \"operation\": \"equals\", \"actions\": { \".resolution-group\": { \"display\": \"block\" } } },{ \"field\": \"layoutId\", \"trigger\": \"change\", \"value\": 0, \"operation\": \"not\", \"actions\": { \".resolution-group\": { \"display\": \"none\" } } }] {% 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><a href=\"#description\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"Description\" %}</span></a></li> </ul> <form id=\"layoutAddForm\" class=\"form-horizontal\" method=\"post\" action=\"{{ urlFor(\"layout.add\") }}\" data-redirect=\"{{ urlFor(\"layout.designer\") }}\" data-gettag=\"{{ urlFor(\"tag.getByName\") }}\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> {% set title %}{% trans \"Name\" %}{% endset %} {% set helpText %}{% trans \"The Name of the Layout - (1 - 50 characters)\" %}{% endset %} {{ forms.input(\"name\", title, \"\", helpText) }} {% set title %}{% trans \"Tags\" %}{% endset %} {% set helpText %}{% trans \"Tags for this Layout - Comma separated string of Tags or Tag|Value format. If you choose a Tag that has associated values, they will be shown for selection below.\" %}{% endset %} {{ forms.inputWithTags(\"tags\", title, \"\", helpText, 'tags-with-value') }} <p id=\"loadingValues\" style=\"margin-left: 17%\"></p> {% set title %}{% trans \"Tag value\" %}{% endset %} {{ forms.dropdown(\"tagValue\", \"single\", title, \"\", options, \"key\", \"value\") }} <div id=\"tagValueContainer\"> {% set title %}{% trans \"Tag value\" %}{% endset %} {% set helpText %}{% trans \"Please provide the value for this Tag and confirm by pressing enter on your keyboard.\" %}{% endset %} {{ forms.input(\"tagValueInput\", title, \"\", helpText) }} </div> <div id=\"tagValueRequired\" class=\"alert alert-info\"> <p>{% trans \"This tag requires a set value, please select one from the Tag value dropdown or provide Tag value in the dedicated field.\" %}</p> </div> {% set title %}{% trans \"Template\" %}{% endset %} {% set helpText %}{% trans \"Optionally choose a template you have saved before.\" %}{% endset %} {% set layouts = [{layoutId: null, layout: \"\"}]|merge(layouts) %} {{ forms.dropdown(\"layoutId\", \"single\", title, \"\", layouts, \"layoutId\", \"layout\", helpText) }} {% set title %}{% trans \"Resolution\" %}{% endset %} {% set helpText %}{% trans \"Choose the resolution this Layout should be designed for.\" %}{% endset %} {{ forms.dropdown(\"resolutionId\", \"single\", title, \"\", resolutions, \"resolutionId\", \"resolution\", helpText, \"resolution-group\") }} {% set title %}{% trans \"Enable Stats Collection?\" %}{% endset %} {% set helpText %}{% trans \"Enable the collection of Proof of Play statistics for this Layout. Ensure that ‘Enable Stats Collection’ is set to ‘On’ in the Display Settings.\" %}{% endset %} {{ forms.checkbox(\"enableStat\", title, theme.getSetting(\"LAYOUT_STATS_ENABLED_DEFAULT\"), helpText) }} {% set title %}{% trans \"Automatically apply Transitions?\" %}{% endset %} {% set helpText %}{% trans \"When enabled, the default Transition type and duration will be applied to all widgets on this Layout.\" %}{% endset %} {{ forms.checkbox(\"autoApplyTransitions\", title, theme.getSetting(\"DEFAULT_TRANSITION_AUTO_APPLY\"), helpText) }} </div> <div class=\"tab-pane\" id=\"description\"> {% set title %}{% trans \"Description\" %}{% endset %} {% set helpText %}{% trans \"An optional description of the Layout. (1 - 250 characters)\" %}{% endset %} {{ forms.textarea(\"description\", title, \"\", helpText) }} </div> </div> </form> </div> </div> {% endblock %}", "layout-form-add.twig", "/home/mgatv524/public_html/somares/views/layout-form-add.twig"); } }