0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
midiatech
/
cache
/
4a
/
[
Home
]
File: 4a3f625dd923a98145e774e8c5788b3a15534f0ca6b775ea94965d68344ada75.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; /* task-form-edit.twig */ class __TwigTemplate_78d7ac84730b94a6337cd711f6b588489e30cb1cecfb8d8186611d0dac65b1e4 extends \Twig\Template { public function __construct(Environment $env) { parent::__construct($env); $this->blocks = [ 'formTitle' => [$this, 'block_formTitle'], 'formButtons' => [$this, 'block_formButtons'], 'formHtml' => [$this, 'block_formHtml'], ]; } protected function doGetParent(array $context) { // line 8 return "form-base.twig"; } protected function doDisplay(array $context, array $blocks = []) { // line 9 $context["forms"] = $this->loadTemplate("forms.twig", "task-form-edit.twig", 9)->unwrap(); // line 8 $this->parent = $this->loadTemplate("form-base.twig", "task-form-edit.twig", 8); $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 11 public function block_formTitle($context, array $blocks = []) { // line 12 echo " "; echo __("Edit Task"); } // line 15 public function block_formButtons($context, array $blocks = []) { // line 16 echo " "; echo __("Cancel"); echo ", XiboDialogClose() "; // line 17 echo __("Save"); echo ", \$(\"#taskEdit\").submit() "; } // line 20 public function block_formHtml($context, array $blocks = []) { // line 21 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 24 echo __("General"); echo "</span></a></li> <li><a href=\"#options\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 25 echo __("Options"); echo "</span></a></li> </ul> <form id=\"taskEdit\" class=\"XiboForm form-horizontal\" method=\"put\" action=\""; // line 27 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("task.edit", ["id" => $this->getAttribute(($context["task"] ?? null), "taskId", [])]), "html", null, true); echo "\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> "; // line 30 ob_start(); echo __("Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 31 echo " "; ob_start(); echo __("The Name for this Task"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 32 echo " "; echo $context["forms"]->getinput("name", ($context["title"] ?? null), $this->getAttribute(($context["task"] ?? null), "name", []), ($context["helpText"] ?? null), "", "required"); echo " "; // line 34 ob_start(); echo __("Schedule"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 35 echo " "; ob_start(); echo __("The schedule for this task in CRON syntax"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 36 echo " "; echo $context["forms"]->getinput("schedule", ($context["title"] ?? null), $this->getAttribute(($context["task"] ?? null), "schedule", []), ($context["helpText"] ?? null), "", "required"); echo " "; // line 38 ob_start(); echo __("Active"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 39 echo " "; ob_start(); echo __("Is the task active?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 40 echo " "; echo $context["forms"]->getcheckbox("isActive", ($context["title"] ?? null), $this->getAttribute(($context["task"] ?? null), "isActive", []), ($context["helpText"] ?? null)); echo " </div> <div class=\"tab-pane\" id=\"options\"> "; // line 43 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["task"] ?? null), "options", [])); foreach ($context['_seq'] as $context["option"] => $context["value"]) { // line 44 echo " "; echo $context["forms"]->getinput($context["option"], $context["option"], $context["value"]); echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 46 echo " </div> </div> </form> </div> </div> "; } public function getTemplateName() { return "task-form-edit.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 148 => 46, 139 => 44, 135 => 43, 128 => 40, 123 => 39, 119 => 38, 113 => 36, 108 => 35, 104 => 34, 98 => 32, 93 => 31, 89 => 30, 83 => 27, 78 => 25, 74 => 24, 69 => 21, 66 => 20, 60 => 17, 55 => 16, 52 => 15, 47 => 12, 44 => 11, 39 => 8, 37 => 9, 31 => 8,); } /** @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) 2016 Spring Signage Ltd * (task-form-edit.twig) */ #} {% extends \"form-base.twig\" %} {% import \"forms.twig\" as forms %} {% block formTitle %} {% trans \"Edit Task\" %} {% endblock %} {% block formButtons %} {% trans \"Cancel\" %}, XiboDialogClose() {% trans \"Save\" %}, \$(\"#taskEdit\").submit() {% 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=\"#options\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"Options\" %}</span></a></li> </ul> <form id=\"taskEdit\" class=\"XiboForm form-horizontal\" method=\"put\" action=\"{{ urlFor(\"task.edit\", {id: task.taskId}) }}\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> {% set title %}{% trans \"Name\" %}{% endset %} {% set helpText %}{% trans \"The Name for this Task\" %}{% endset %} {{ forms.input(\"name\", title, task.name, helpText, \"\", \"required\") }} {% set title %}{% trans \"Schedule\" %}{% endset %} {% set helpText %}{% trans \"The schedule for this task in CRON syntax\" %}{% endset %} {{ forms.input(\"schedule\", title, task.schedule, helpText, \"\", \"required\") }} {% set title %}{% trans \"Active\" %}{% endset %} {% set helpText %}{% trans \"Is the task active?\" %}{% endset %} {{ forms.checkbox(\"isActive\", title, task.isActive, helpText) }} </div> <div class=\"tab-pane\" id=\"options\"> {% for option,value in task.options %} {{ forms.input(option, option, value) }} {% endfor %} </div> </div> </form> </div> </div> {% endblock %}", "task-form-edit.twig", "/home/mgatv524/public_html/midiatech/views/task-form-edit.twig"); } }