0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
fmd
/
cache
/
3a
/
[
Home
]
File: 3a3b98634224f51dee53931c9ff2ac65e79c888053b85a67969bcf07ba0a9bf8.php
<?php /* schedule-form-edit.twig */ class __TwigTemplate_c6927607538fe0bc6d0a34dc4ead37301e12d7b2429dd3ae5ea61f57aa394488 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 9 $this->parent = $this->loadTemplate("form-base.twig", "schedule-form-edit.twig", 9); $this->blocks = array( 'formTitle' => array($this, 'block_formTitle'), 'callBack' => array($this, 'block_callBack'), 'formButtons' => array($this, 'block_formButtons'), 'formHtml' => array($this, 'block_formHtml'), ); } protected function doGetParent(array $context) { return "form-base.twig"; } protected function doDisplay(array $context, array $blocks = array()) { // line 10 $context["forms"] = $this->loadTemplate("forms.twig", "schedule-form-edit.twig", 10); // line 9 $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 12 public function block_formTitle($context, array $blocks = array()) { // line 13 echo " "; echo __("Edit Event"); } // line 16 public function block_callBack($context, array $blocks = array()) { echo "setupScheduleForm"; } // line 18 public function block_formButtons($context, array $blocks = array()) { // line 19 echo " "; echo __("Help"); echo ", XiboHelpRender(\""; echo twig_escape_filter($this->env, ($context["help"] ?? null), "html", null, true); echo "\") "; // line 20 echo __("Cancel"); echo ", XiboDialogClose() "; // line 21 echo __("Delete"); echo ", XiboSwapDialog(\""; echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("schedule.delete.form", array("id" => $this->getAttribute(($context["event"] ?? null), "eventId", array()))), "html", null, true); echo "\") "; // line 22 echo __("Save"); echo ", \$(\"#scheduleEditForm\").submit() "; } // line 25 public function block_formHtml($context, array $blocks = array()) { // line 26 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 29 echo __("General"); echo "</span></a></li> <li class=\"repeats\"><a href=\"#repeats\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 30 echo __("Repeats"); echo "</span></a></li> </ul> "; // line 32 ob_start(); echo __("Select the start time for this event"); $context["dayPartMessage"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 33 echo " "; ob_start(); echo __("Start and end time will be defined by the daypart's configuration for this day of the week. Use a repeating schedule to apply this event over multiple days"); $context["notDayPartMessage"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 34 echo " <form id=\"scheduleEditForm\" class=\"form-horizontal\" method=\"put\" action=\""; echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("schedule.edit", array("id" => $this->getAttribute(($context["event"] ?? null), "eventId", array()))), "html", null, true); echo "\" data-daypart-message=\""; // line 35 echo twig_escape_filter($this->env, ($context["dayPartMessage"] ?? null), "html", null, true); echo "\" data-not-daypart-message=\""; // line 36 echo twig_escape_filter($this->env, ($context["notDayPartMessage"] ?? null), "html", null, true); echo "\" data-add-url=\""; // line 37 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("schedule.add"), "html", null, true); echo "\" data-duplicated-message=\""; // line 38 echo __("Duplicate form loaded, make adjustments and press save."); echo "\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> "; // line 41 ob_start(); echo __("Event Type"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 42 echo " "; ob_start(); echo __("Select the type of event to schedule"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 43 echo " "; ob_start(); echo __("Campaign/Layout"); $context["layoutEventType"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 44 echo " "; ob_start(); echo __("Command"); $context["commandEventType"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 45 echo " "; ob_start(); echo __("Overlay Layout"); $context["overlayEventType"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 46 echo " "; $context["eventTypes"] = array(0 => array("id" => 1, "label" => // line 47 ($context["layoutEventType"] ?? null)), 1 => array("id" => 2, "label" => // line 48 ($context["commandEventType"] ?? null)), 2 => array("id" => 3, "label" => // line 49 ($context["overlayEventType"] ?? null))); // line 51 echo " "; echo $context["forms"]->getdropdown("eventTypeId", "single", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "eventTypeId", array()), ($context["eventTypes"] ?? null), "id", "label", ($context["helpText"] ?? null)); echo " "; // line 53 ob_start(); echo __("Display"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 54 echo " "; ob_start(); echo __("Please select one or more displays / groups for this event to be shown on."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 55 echo " "; $context["attributes"] = array(0 => array("name" => "data-live-search", "value" => "true"), 1 => array("name" => "data-selected-text-format", "value" => "count > 4")); // line 59 echo " "; ob_start(); echo __("Groups"); $context["transGroups"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 60 echo " "; ob_start(); echo __("Display"); $context["transDisplays"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 61 echo " "; $context["optionGroups"] = array(0 => array("id" => "group", "label" => // line 62 ($context["transGroups"] ?? null)), 1 => array("id" => "display", "label" => // line 63 ($context["transDisplays"] ?? null))); // line 65 echo " "; echo $context["forms"]->getdropdown("displayGroupIds[]", "dropdownmulti", ($context["title"] ?? null), ($context["displayGroupIds"] ?? null), array("group" => ($context["displayGroups"] ?? null), "display" => ($context["displays"] ?? null)), "displayGroupId", "displayGroup", ($context["helpText"] ?? null), "", "", "", "", ($context["attributes"] ?? null), ($context["optionGroups"] ?? null)); echo " "; // line 67 ob_start(); echo __("Dayparting"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 68 echo " "; ob_start(); echo __("Select the dayparting information for this event. To set your own times select custom and to have the event run constantly select Always."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 69 echo " <div class=\"form-group day-part-control\"> <label class=\"col-sm-2 control-label\" for=\"dayPartId\">"; // line 70 echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true); echo "</label> <div class=\"col-sm-10\"> <select class=\"form-control\" name=\"dayPartId\" id=\"dayPartId\"> "; // line 73 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["dayParts"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["dayPart"]) { // line 74 echo " <option "; if (($this->getAttribute($context["dayPart"], "dayPartId", array()) == $this->getAttribute(($context["event"] ?? null), "dayPartId", array()))) { echo "selected"; } // line 75 echo " value=\""; echo twig_escape_filter($this->env, $this->getAttribute($context["dayPart"], "dayPartId", array()), "html", null, true); echo "\" data-is-always=\""; // line 76 echo twig_escape_filter($this->env, $this->getAttribute($context["dayPart"], "isAlways", array()), "html", null, true); echo "\" data-is-custom=\""; // line 77 echo twig_escape_filter($this->env, $this->getAttribute($context["dayPart"], "isCustom", array()), "html", null, true); echo "\">"; echo twig_escape_filter($this->env, $this->getAttribute($context["dayPart"], "name", array()), "html", null, true); echo "</option> "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['dayPart'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 79 echo " </select> <span class=\"help-block\">"; // line 80 echo twig_escape_filter($this->env, ($context["helpText"] ?? null), "html", null, true); echo "</span> </div> </div> "; // line 84 ob_start(); echo __("Start Time"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 85 echo " "; ob_start(); echo __("Select the start time for this event"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 86 echo " "; echo $context["forms"]->getdateTime("fromDt", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "fromDt", array()), ($context["helpText"] ?? null), "starttime-control", "required", ""); echo " "; // line 88 ob_start(); echo __("End Time"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 89 echo " "; ob_start(); echo __("Select the end time for this event"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 90 echo " "; echo $context["forms"]->getdateTime("toDt", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "toDt", array()), ($context["helpText"] ?? null), "endtime-control", "required", ""); echo " "; // line 93 echo " "; $context["layoutOptions"] = array(); // line 94 echo " "; $context["campaignOptions"] = array(); // line 95 echo " "; // line 96 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["campaigns"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["item"]) { // line 97 echo " "; if (($this->getAttribute($context["item"], "isLayoutSpecific", array()) == 1)) { // line 98 echo " "; $context["layoutOptions"] = twig_array_merge(($context["layoutOptions"] ?? null), array(0 => array("id" => $this->getAttribute($context["item"], "campaignId", array()), "value" => $this->getAttribute($context["item"], "campaign", array())))); // line 99 echo " "; } else { // line 100 echo " "; $context["campaignOptions"] = twig_array_merge(($context["campaignOptions"] ?? null), array(0 => array("id" => $this->getAttribute($context["item"], "campaignId", array()), "value" => $this->getAttribute($context["item"], "campaign", array())))); // line 101 echo " "; } // line 102 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 103 echo " "; // line 105 echo " "; $context["campaignOptions"] = twig_array_merge(array(0 => array("id" => "", "value" => "")), ($context["campaignOptions"] ?? null)); // line 106 echo " "; // line 108 echo " "; $context["layoutOptions"] = twig_array_merge(array(0 => array("id" => "", "value" => "")), ($context["layoutOptions"] ?? null)); // line 109 echo " "; // line 110 ob_start(); echo __("Campaigns"); $context["campaigns"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 111 echo " "; ob_start(); echo __("Layouts"); $context["layouts"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 112 echo " "; $context["optionGroups"] = array(0 => array("id" => "campaign", "label" => // line 113 ($context["campaigns"] ?? null)), 1 => array("id" => "layout", "label" => // line 114 ($context["layouts"] ?? null))); // line 116 echo " "; ob_start(); echo __("Layout / Campaign"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 117 echo " "; ob_start(); echo __("Please select a Layout or Campaign for this Event to show"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 118 echo " "; $context["attributes"] = array(0 => array("name" => "data-live-search", "value" => "true"), 1 => array("name" => "data-selected-text-format", "value" => "count > 4")); // line 122 echo " "; echo $context["forms"]->getdropdown("campaignId", "single", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "campaignId", array()), array("campaign" => ($context["campaignOptions"] ?? null), "layout" => ($context["layoutOptions"] ?? null)), "id", "value", ($context["helpText"] ?? null), "layout-control", "", "", "", ($context["attributes"] ?? null), ($context["optionGroups"] ?? null)); echo " <div class=\"form-group preview-button-container\"> <div class=\"col-md-offset-2 col-md-10\"> <a id=\"previewButton\" class=\"btn btn-success\" target=\"_blank\" data-url=\""; // line 126 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("campaign.preview"), "html", null, true); echo "\">"; echo __("Preview"); echo " <span class=\"fa fa-tablet\"></span></a> <span class=\"help-block\">"; // line 127 echo __("Preview your selection in a new tab"); echo "</span> </div> </div> "; // line 131 ob_start(); echo __("Command"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 132 echo " "; ob_start(); echo __("Please select a command for this Event."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 133 echo " "; echo $context["forms"]->getdropdown("commandId", "single", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "commandId", array()), twig_array_merge(array(0 => array("commandId" => "", "command" => "")), ($context["commands"] ?? null)), "commandId", "command", ($context["helpText"] ?? null), "command-control"); echo " "; // line 135 ob_start(); echo __("Display Order"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 136 echo " "; ob_start(); echo __("Please select the order this event should appear in relation to others when there is more than one event scheduled"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 137 echo " "; echo $context["forms"]->getnumber("displayOrder", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "displayOrder", array()), ($context["helpText"] ?? null)); echo " "; // line 139 ob_start(); echo __("Priority"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 140 echo " "; ob_start(); echo __("Sets the event priority - events with the highest priority play in preference to lower priority events."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 141 echo " "; echo $context["forms"]->getnumber("isPriority", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "isPriority", array()), ($context["helpText"] ?? null)); echo " "; // line 143 ob_start(); echo __("Run at CMS Time?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 144 echo " "; ob_start(); echo __("When selected, your event will run according to the timezone set on the CMS, otherwise the event will run at Display local time"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 145 echo " "; echo $context["forms"]->getcheckbox("syncTimezone", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "syncTimezone", array()), ($context["helpText"] ?? null)); echo " </div> <div class=\"tab-pane\" id=\"repeats\"> "; // line 150 ob_start(); echo __("Repeats"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 151 echo " "; ob_start(); echo __("What type of repeat is required?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 152 echo " "; ob_start(); echo __("None"); $context["noneOption"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 153 echo " "; ob_start(); echo __("Per Minute"); $context["minute"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 154 echo " "; ob_start(); echo __("Hourly"); $context["hourly"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 155 echo " "; ob_start(); echo __("Daily"); $context["daily"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 156 echo " "; ob_start(); echo __("Weekly"); $context["weekly"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 157 echo " "; ob_start(); echo __("Monthly"); $context["monthly"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 158 echo " "; ob_start(); echo __("Yearly"); $context["yearly"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 159 echo " "; $context["options"] = array(0 => array("id" => "", "name" => // line 160 ($context["noneOption"] ?? null)), 1 => array("id" => "Minute", "name" => // line 161 ($context["minute"] ?? null)), 2 => array("id" => "Hour", "name" => // line 162 ($context["hourly"] ?? null)), 3 => array("id" => "Day", "name" => // line 163 ($context["daily"] ?? null)), 4 => array("id" => "Week", "name" => // line 164 ($context["weekly"] ?? null)), 5 => array("id" => "Month", "name" => // line 165 ($context["monthly"] ?? null)), 6 => array("id" => "Year", "name" => // line 166 ($context["yearly"] ?? null))); // line 168 echo " "; echo $context["forms"]->getdropdown("recurrenceType", "single", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "recurrenceType", array()), ($context["options"] ?? null), "id", "name", ($context["helpText"] ?? null)); echo " "; // line 170 ob_start(); echo __("Which days of the week does this event repeat?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 171 echo " "; ob_start(); echo __(""); $context["noneOption"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 172 echo " "; ob_start(); echo __("Monday"); $context["monday"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 173 echo " "; ob_start(); echo __("Tuesday"); $context["tuesday"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 174 echo " "; ob_start(); echo __("Wednesday"); $context["wednesday"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 175 echo " "; ob_start(); echo __("Thursday"); $context["thursday"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 176 echo " "; ob_start(); echo __("Friday"); $context["friday"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 177 echo " "; ob_start(); echo __("Saturday"); $context["saturday"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 178 echo " "; ob_start(); echo __("Sunday"); $context["sunday"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 179 echo " "; $context["options"] = array(0 => array("id" => 0, "name" => // line 180 ($context["noneOption"] ?? null)), 1 => array("id" => 1, "name" => // line 181 ($context["monday"] ?? null)), 2 => array("id" => 2, "name" => // line 182 ($context["tuesday"] ?? null)), 3 => array("id" => 3, "name" => // line 183 ($context["wednesday"] ?? null)), 4 => array("id" => 4, "name" => // line 184 ($context["thursday"] ?? null)), 5 => array("id" => 5, "name" => // line 185 ($context["friday"] ?? null)), 6 => array("id" => 6, "name" => // line 186 ($context["saturday"] ?? null)), 7 => array("id" => 7, "name" => // line 187 ($context["sunday"] ?? null))); // line 189 echo " "; echo $context["forms"]->getdropdown("recurrenceRepeatsOn[]", "dropdownmulti", "", $this->getAttribute(($context["event"] ?? null), "recurrenceRepeatsOn", array()), ($context["options"] ?? null), "id", "name", ($context["helpText"] ?? null), "repeat-weekly-control-group"); echo " "; // line 191 ob_start(); echo __("Repeat every"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 192 echo " "; ob_start(); echo __("How often does this event repeat?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 193 echo " "; echo $context["forms"]->getnumber("recurrenceDetail", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "recurrenceDetail", array()), ($context["helpText"] ?? null), "repeat-control-group"); echo " "; // line 195 ob_start(); echo __("Until"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 196 echo " "; ob_start(); echo __("When should this event stop repeating? Leave empty to repeat forever."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 197 echo " "; echo $context["forms"]->getdateTime("recurrenceRange", ($context["title"] ?? null), $this->getAttribute(($context["event"] ?? null), "recurrenceRange", array()), ($context["helpText"] ?? null), "repeat-control-group", "", ""); echo " </div> </div> </form> </div> </div> "; } public function getTemplateName() { return "schedule-form-edit.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 583 => 197, 578 => 196, 574 => 195, 568 => 193, 563 => 192, 559 => 191, 553 => 189, 551 => 187, 550 => 186, 549 => 185, 548 => 184, 547 => 183, 546 => 182, 545 => 181, 544 => 180, 542 => 179, 537 => 178, 532 => 177, 527 => 176, 522 => 175, 517 => 174, 512 => 173, 507 => 172, 502 => 171, 498 => 170, 492 => 168, 490 => 166, 489 => 165, 488 => 164, 487 => 163, 486 => 162, 485 => 161, 484 => 160, 482 => 159, 477 => 158, 472 => 157, 467 => 156, 462 => 155, 457 => 154, 452 => 153, 447 => 152, 442 => 151, 438 => 150, 429 => 145, 424 => 144, 420 => 143, 414 => 141, 409 => 140, 405 => 139, 399 => 137, 394 => 136, 390 => 135, 384 => 133, 379 => 132, 375 => 131, 368 => 127, 362 => 126, 354 => 122, 351 => 118, 346 => 117, 341 => 116, 339 => 114, 338 => 113, 336 => 112, 331 => 111, 327 => 110, 324 => 109, 321 => 108, 318 => 106, 315 => 105, 312 => 103, 306 => 102, 303 => 101, 300 => 100, 297 => 99, 294 => 98, 291 => 97, 287 => 96, 284 => 95, 281 => 94, 278 => 93, 272 => 90, 267 => 89, 263 => 88, 257 => 86, 252 => 85, 248 => 84, 241 => 80, 238 => 79, 228 => 77, 224 => 76, 219 => 75, 214 => 74, 210 => 73, 204 => 70, 201 => 69, 196 => 68, 192 => 67, 186 => 65, 184 => 63, 183 => 62, 181 => 61, 176 => 60, 171 => 59, 168 => 55, 163 => 54, 159 => 53, 153 => 51, 151 => 49, 150 => 48, 149 => 47, 147 => 46, 142 => 45, 137 => 44, 132 => 43, 127 => 42, 123 => 41, 117 => 38, 113 => 37, 109 => 36, 105 => 35, 100 => 34, 95 => 33, 91 => 32, 86 => 30, 82 => 29, 77 => 26, 74 => 25, 68 => 22, 62 => 21, 58 => 20, 51 => 19, 48 => 18, 42 => 16, 37 => 13, 34 => 12, 30 => 9, 28 => 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 \"form-base.twig\" %} {% import \"forms.twig\" as forms %} {% block formTitle %} {% trans \"Edit Event\" %} {% endblock %} {% block callBack %}setupScheduleForm{% endblock %} {% block formButtons %} {% trans \"Help\" %}, XiboHelpRender(\"{{ help }}\") {% trans \"Cancel\" %}, XiboDialogClose() {% trans \"Delete\" %}, XiboSwapDialog(\"{{ urlFor(\"schedule.delete.form\", {id: event.eventId}) }}\") {% trans \"Save\" %}, \$(\"#scheduleEditForm\").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 class=\"repeats\"><a href=\"#repeats\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"Repeats\" %}</span></a></li> </ul> {% set dayPartMessage %}{% trans \"Select the start time for this event\" %}{% endset %} {% set notDayPartMessage %}{% trans \"Start and end time will be defined by the daypart's configuration for this day of the week. Use a repeating schedule to apply this event over multiple days\" %}{% endset %} <form id=\"scheduleEditForm\" class=\"form-horizontal\" method=\"put\" action=\"{{ urlFor(\"schedule.edit\", {id: event.eventId}) }}\" data-daypart-message=\"{{ dayPartMessage }}\" data-not-daypart-message=\"{{ notDayPartMessage }}\" data-add-url=\"{{ urlFor(\"schedule.add\") }}\" data-duplicated-message=\"{% trans \"Duplicate form loaded, make adjustments and press save.\" %}\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> {% set title %}{% trans \"Event Type\" %}{% endset %} {% set helpText %}{% trans \"Select the type of event to schedule\" %}{% endset %} {% set layoutEventType %}{% trans \"Campaign/Layout\" %}{% endset %} {% set commandEventType %}{% trans \"Command\" %}{% endset %} {% set overlayEventType %}{% trans \"Overlay Layout\" %}{% endset %} {% set eventTypes = [ {id: 1, label: layoutEventType}, {id: 2, label: commandEventType}, {id: 3, label: overlayEventType} ] %} {{ forms.dropdown(\"eventTypeId\", \"single\", title, event.eventTypeId, eventTypes, \"id\", \"label\", helpText) }} {% set title %}{% trans \"Display\" %}{% endset %} {% set helpText %}{% trans \"Please select one or more displays / groups for this event to be shown on.\" %}{% endset %} {% set attributes = [ { name: \"data-live-search\", value: \"true\" }, { name: \"data-selected-text-format\", value: \"count > 4\" } ] %} {% set transGroups %}{% trans \"Groups\" %}{% endset %} {% set transDisplays %}{% trans \"Display\" %}{% endset %} {% set optionGroups = [ {id: \"group\", label: transGroups}, {id: \"display\", label: transDisplays} ] %} {{ forms.dropdown(\"displayGroupIds[]\", \"dropdownmulti\", title, displayGroupIds, {group: displayGroups, display: displays}, \"displayGroupId\", \"displayGroup\", helpText, \"\", \"\", \"\", \"\", attributes, optionGroups) }} {% set title %}{% trans \"Dayparting\" %}{% endset %} {% set helpText %}{% trans \"Select the dayparting information for this event. To set your own times select custom and to have the event run constantly select Always.\" %}{% endset %} <div class=\"form-group day-part-control\"> <label class=\"col-sm-2 control-label\" for=\"dayPartId\">{{ title }}</label> <div class=\"col-sm-10\"> <select class=\"form-control\" name=\"dayPartId\" id=\"dayPartId\"> {% for dayPart in dayParts %} <option {% if dayPart.dayPartId == event.dayPartId %}selected{% endif %} value=\"{{ dayPart.dayPartId }}\" data-is-always=\"{{ dayPart.isAlways }}\" data-is-custom=\"{{ dayPart.isCustom }}\">{{ dayPart.name }}</option> {% endfor %} </select> <span class=\"help-block\">{{ helpText }}</span> </div> </div> {% set title %}{% trans \"Start Time\" %}{% endset %} {% set helpText %}{% trans \"Select the start time for this event\" %}{% endset %} {{ forms.dateTime(\"fromDt\", title, event.fromDt, helpText, \"starttime-control\", \"required\", \"\") }} {% set title %}{% trans \"End Time\" %}{% endset %} {% set helpText %}{% trans \"Select the end time for this event\" %}{% endset %} {{ forms.dateTime(\"toDt\", title, event.toDt, helpText, \"endtime-control\", \"required\", \"\") }} {# Campaign / Layout list. We want to build two arrays for us to use. #} {% set layoutOptions = [] %} {% set campaignOptions = [] %} {% for item in campaigns %} {% if item.isLayoutSpecific == 1 %} {% set layoutOptions = layoutOptions|merge([{id: item.campaignId, value: item.campaign}]) %} {% else %} {% set campaignOptions = campaignOptions|merge([{id: item.campaignId, value: item.campaign}]) %} {% endif %} {% endfor %} {# Add a blank campaign record #} {% set campaignOptions = [{id: \"\", value: \"\"}]|merge(campaignOptions) %} {# Add a blank layout record #} {% set layoutOptions = [{id: \"\", value: \"\"}]|merge(layoutOptions) %} {% set campaigns %}{% trans \"Campaigns\" %}{% endset %} {% set layouts %}{% trans \"Layouts\" %}{% endset %} {% set optionGroups = [ {id: \"campaign\", label: campaigns}, {id: \"layout\", label: layouts} ] %} {% set title %}{% trans \"Layout / Campaign\" %}{% endset %} {% set helpText %}{% trans \"Please select a Layout or Campaign for this Event to show\" %}{% endset %} {% set attributes = [ { name: \"data-live-search\", value: \"true\" }, { name: \"data-selected-text-format\", value: \"count > 4\" } ] %} {{ forms.dropdown(\"campaignId\", \"single\", title, event.campaignId, {campaign: campaignOptions, layout: layoutOptions}, \"id\", \"value\", helpText, \"layout-control\", \"\", \"\", \"\", attributes, optionGroups) }} <div class=\"form-group preview-button-container\"> <div class=\"col-md-offset-2 col-md-10\"> <a id=\"previewButton\" class=\"btn btn-success\" target=\"_blank\" data-url=\"{{ urlFor(\"campaign.preview\") }}\">{% trans \"Preview\" %} <span class=\"fa fa-tablet\"></span></a> <span class=\"help-block\">{% trans \"Preview your selection in a new tab\" %}</span> </div> </div> {% set title %}{% trans \"Command\" %}{% endset %} {% set helpText %}{% trans \"Please select a command for this Event.\" %}{% endset %} {{ forms.dropdown(\"commandId\", \"single\", title, event.commandId, [{commandId: \"\", command: \"\"}]|merge(commands), \"commandId\", \"command\", helpText, \"command-control\") }} {% set title %}{% trans \"Display Order\" %}{% endset %} {% set helpText %}{% trans \"Please select the order this event should appear in relation to others when there is more than one event scheduled\" %}{% endset %} {{ forms.number(\"displayOrder\", title, event.displayOrder, helpText) }} {% set title %}{% trans \"Priority\" %}{% endset %} {% set helpText %}{% trans \"Sets the event priority - events with the highest priority play in preference to lower priority events.\" %}{% endset %} {{ forms.number(\"isPriority\", title, event.isPriority, helpText) }} {% set title %}{% trans \"Run at CMS Time?\" %}{% endset %} {% set helpText %}{% trans \"When selected, your event will run according to the timezone set on the CMS, otherwise the event will run at Display local time\" %}{% endset %} {{ forms.checkbox(\"syncTimezone\", title, event.syncTimezone, helpText) }} </div> <div class=\"tab-pane\" id=\"repeats\"> {% set title %}{% trans \"Repeats\" %}{% endset %} {% set helpText %}{% trans \"What type of repeat is required?\" %}{% endset %} {% set noneOption %}{% trans \"None\" %}{% endset %} {% set minute %}{% trans \"Per Minute\" %}{% endset %} {% set hourly %}{% trans \"Hourly\" %}{% endset %} {% set daily %}{% trans \"Daily\" %}{% endset %} {% set weekly %}{% trans \"Weekly\" %}{% endset %} {% set monthly %}{% trans \"Monthly\" %}{% endset %} {% set yearly %}{% trans \"Yearly\" %}{% endset %} {% set options = [ { id: \"\", name: noneOption }, { id: \"Minute\", name: minute }, { id: \"Hour\", name: hourly}, { id: \"Day\", name: daily}, { id: \"Week\", name: weekly}, { id: \"Month\", name: monthly}, { id: \"Year\", name: yearly} ] %} {{ forms.dropdown(\"recurrenceType\", \"single\", title, event.recurrenceType, options, \"id\", \"name\", helpText) }} {% set helpText %}{% trans \"Which days of the week does this event repeat?\" %}{% endset %} {% set noneOption %}{% trans \"\" %}{% endset %} {% set monday %}{% trans \"Monday\" %}{% endset %} {% set tuesday %}{% trans \"Tuesday\" %}{% endset %} {% set wednesday %}{% trans \"Wednesday\" %}{% endset %} {% set thursday %}{% trans \"Thursday\" %}{% endset %} {% set friday %}{% trans \"Friday\" %}{% endset %} {% set saturday %}{% trans \"Saturday\" %}{% endset %} {% set sunday %}{% trans \"Sunday\" %}{% endset %} {% set options = [ { id: 0, name: noneOption }, { id: 1, name: monday }, { id: 2, name: tuesday }, { id: 3, name: wednesday }, { id: 4, name: thursday }, { id: 5, name: friday }, { id: 6, name: saturday }, { id: 7, name: sunday }, ] %} {{ forms.dropdown(\"recurrenceRepeatsOn[]\", \"dropdownmulti\", \"\", event.recurrenceRepeatsOn, options, \"id\", \"name\", helpText, \"repeat-weekly-control-group\") }} {% set title %}{% trans \"Repeat every\" %}{% endset %} {% set helpText %}{% trans \"How often does this event repeat?\" %}{% endset %} {{ forms.number(\"recurrenceDetail\", title, event.recurrenceDetail, helpText, \"repeat-control-group\") }} {% set title %}{% trans \"Until\" %}{% endset %} {% set helpText %}{% trans \"When should this event stop repeating? Leave empty to repeat forever.\" %}{% endset %} {{ forms.dateTime(\"recurrenceRange\", title, event.recurrenceRange, helpText, \"repeat-control-group\", \"\", \"\") }} </div> </div> </form> </div> </div> {% endblock %}", "schedule-form-edit.twig", "/home/mgatv524/public_html/fmd/views/schedule-form-edit.twig"); } }