0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
giga
/
cache
/
c6
/
[
Home
]
File: c6f18c25dee709d2990590aaf53c8ae94536ea6245479899748c2cbbbd8e16a6.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; /* template-form-add.twig */ class __TwigTemplate_5aa5e3ab23abfb5644c925256e4bd14280d180e42278f83e068d9ce5f2c0487a extends Template { private $source; private $macros = []; public function __construct(Environment $env) { parent::__construct($env); $this->source = $this->getSourceContext(); $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 = []) { $macros = $this->macros; // line 25 $macros["forms"] = $this->macros["forms"] = $this->loadTemplate("forms.twig", "template-form-add.twig", 25)->unwrap(); // line 24 $this->parent = $this->loadTemplate("form-base.twig", "template-form-add.twig", 24); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 27 public function block_formTitle($context, array $blocks = []) { $macros = $this->macros; // line 28 echo " "; echo __("Add Template"); } // line 31 public function block_formButtons($context, array $blocks = []) { $macros = $this->macros; // 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 ", \$(\"#templateAddForm\").submit() "; } // line 37 public function block_callBack($context, array $blocks = []) { $macros = $this->macros; echo "templateFormOpen"; } // line 39 public function block_formHtml($context, array $blocks = []) { $macros = $this->macros; // line 40 echo " <div class=\"row\"> <div class=\"col-md-12\"> <ul class=\"nav nav-tabs\" role=\"tablist\"> <li class=\"nav-item\"><a class=\"nav-link active\" href=\"#general\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 43 echo __("General"); echo "</span></a></li> <li class=\"nav-item\"><a class=\"nav-link\" href=\"#description\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 44 echo __("Description"); echo "</span></a></li> </ul> <form id=\"templateAddForm\" class=\"form-horizontal\" method=\"post\" action=\""; // line 46 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("template.add"), "html", null, true); echo "\" data-redirect=\""; echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("layout.designer", ["id" => ":id"]), "html", null, true); echo "\" data-gettag=\""; echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("tag.getByName"), "html", null, true); echo "\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> "; // line 50 if (twig_get_attribute($this->env, $this->source, ($context["currentUser"] ?? null), "featureEnabled", [0 => "folder.view"], "method", false, false, false, 50)) { // line 51 echo " <div class=\"form-group row\"> <label class=\"col-sm-2 control-label\">"; // line 52 echo __("Folder"); echo "</label> <div class=\"col-sm-10\"> <button type=\"button\" class=\"btn btn-info\" id=\"select-folder-button\" data-toggle=\"modal\" data-target=\"#folder-tree-form-modal\">"; // line 54 echo __("Select Folder"); echo "</button> <span id=\"selectedFormFolder\"></span> </div> </div> "; // line 58 echo twig_call_macro($macros["forms"], "macro_hidden", ["folderId"], 58, $context, $this->getSourceContext()); echo " "; } // line 60 echo " "; // line 61 ob_start(function () { return ''; }); echo __("Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 62 echo " "; ob_start(function () { return ''; }); echo __("The Name of the Template - (1 - 50 characters)"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 63 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["name", ($context["title"] ?? null), "", ($context["helpText"] ?? null)], 63, $context, $this->getSourceContext()); echo " "; // line 65 if (twig_get_attribute($this->env, $this->source, ($context["currentUser"] ?? null), "featureEnabled", [0 => "tag.tagging"], "method", false, false, false, 65)) { // line 66 echo " "; ob_start(function () { return ''; }); echo __("Tags"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 67 echo " "; ob_start(function () { return ''; }); echo __("Tags for this Template - 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 68 echo " "; echo twig_call_macro($macros["forms"], "macro_inputWithTags", ["tags", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "tags-with-value"], 68, $context, $this->getSourceContext()); echo " <p id=\"loadingValues\" style=\"margin-left: 17%\"></p> "; // line 72 ob_start(function () { return ''; }); echo __("Tag value"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 73 echo " "; echo twig_call_macro($macros["forms"], "macro_dropdown", ["tagValue", "single", ($context["title"] ?? null), "", ($context["options"] ?? null), "key", "value"], 73, $context, $this->getSourceContext()); echo " <div id=\"tagValueContainer\"> "; // line 76 ob_start(function () { return ''; }); echo __("Tag value"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 77 echo " "; ob_start(function () { return ''; }); 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 78 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["tagValueInput", ($context["title"] ?? null), "", ($context["helpText"] ?? null)], 78, $context, $this->getSourceContext()); echo " </div> <div id=\"tagValueRequired\" class=\"alert alert-info\"> <p>"; // line 82 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 85 echo " "; // line 86 ob_start(function () { return ''; }); echo __("Resolution"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 87 echo " "; ob_start(function () { return ''; }); echo __("Choose the resolution this Template should be designed for."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 88 echo " "; echo twig_call_macro($macros["forms"], "macro_dropdown", ["resolutionId", "single", ($context["title"] ?? null), "", ($context["resolutions"] ?? null), "resolutionId", "resolution", ($context["helpText"] ?? null), "resolution-group"], 88, $context, $this->getSourceContext()); echo " "; // line 90 echo twig_call_macro($macros["forms"], "macro_message", [__("You can also add a template from an existing Layout from the Layout Designer."), "alert alert-info"], 90, $context, $this->getSourceContext()); echo " </div> <div class=\"tab-pane\" id=\"description\"> "; // line 93 ob_start(function () { return ''; }); echo __("Description"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 94 echo " "; ob_start(function () { return ''; }); echo __("An optional description of the Template. (1 - 250 characters)"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 95 echo " "; echo twig_call_macro($macros["forms"], "macro_textarea", ["description", ($context["title"] ?? null), "", ($context["helpText"] ?? null)], 95, $context, $this->getSourceContext()); echo " </div> </div> </form> </div> </div> "; } public function getTemplateName() { return "template-form-add.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 245 => 95, 240 => 94, 236 => 93, 230 => 90, 224 => 88, 219 => 87, 215 => 86, 212 => 85, 206 => 82, 198 => 78, 193 => 77, 189 => 76, 182 => 73, 178 => 72, 170 => 68, 165 => 67, 160 => 66, 158 => 65, 152 => 63, 147 => 62, 143 => 61, 140 => 60, 135 => 58, 128 => 54, 123 => 52, 120 => 51, 118 => 50, 107 => 46, 102 => 44, 98 => 43, 93 => 40, 89 => 39, 82 => 37, 76 => 34, 72 => 33, 65 => 32, 61 => 31, 56 => 28, 52 => 27, 47 => 24, 45 => 25, 38 => 24,); } public function getSourceContext() { return new Source("", "template-form-add.twig", "/home/mgatv524/public_html/cms311/views/template-form-add.twig"); } }