0byt3m1n1
Path:
/
home
/
mgatv524
/
mixmidia.mgaplay.com.br
/
cache
/
4d
/
[
Home
]
File: 4daf3da8ca1f5c9ccaae84b97361cdcf05e052e8914e285726945dd97fc95611.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; /* user-form-add.twig */ class __TwigTemplate_e8d4f167cdba79c2e34a82eea42ddeb7398abbf41df1ea9516752d33b7741022 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", "user-form-add.twig", 25)->unwrap(); // line 24 $this->parent = $this->loadTemplate("form-base.twig", "user-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 User"); } // 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, twig_get_attribute($this->env, $this->source, ($context["help"] ?? null), "add", [], "any", false, false, false, 32), "html", null, true); echo "\") "; // line 33 echo __("Cancel"); echo ", XiboDialogClose() "; // line 34 echo __("Save"); echo ", \$(\"#userAddForm\").submit() "; } // line 37 public function block_callBack($context, array $blocks = []) { $macros = $this->macros; echo "userFormOpen"; } // 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 __("Details"); echo "</span></a></li> <li class=\"nav-item\"><a class=\"nav-link\" href=\"#reference\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 44 echo __("Reference"); echo "</span></a></li> "; // line 45 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["currentUser"] ?? null), "userTypeId", [], "any", false, false, false, 45), 1))) { // line 46 echo " <li class=\"nav-item\"><a class=\"nav-link\" href=\"#notifications\" role=\"tab\" data-toggle=\"tab\"><span>"; echo __("Notifications"); echo "</span></a></li> "; } // line 48 echo " <li class=\"nav-item\"><a class=\"nav-link\" href=\"#optionsTab\" role=\"tab\" data-toggle=\"tab\"><span>"; echo __("Options"); echo "</span></a></li> </ul> <form id=\"userAddForm\" class=\"UserForm form-horizontal\" method=\"post\" action=\""; // line 50 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("user.add"), "html", null, true); echo "\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> "; // line 53 ob_start(function () { return ''; }); echo __("User Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 54 echo " "; ob_start(function () { return ''; }); echo __("The Login Name of the user."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 55 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["userName", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "required maxlength='50'"], 55, $context, $this->getSourceContext()); echo " "; // line 57 ob_start(function () { return ''; }); echo __("Password"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 58 echo " "; ob_start(function () { return ''; }); echo __("The Password for this user."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 59 echo " "; echo twig_call_macro($macros["forms"], "macro_password", ["password", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "required"], 59, $context, $this->getSourceContext()); echo " "; // line 61 ob_start(function () { return ''; }); echo __("Email"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 62 echo " "; ob_start(function () { return ''; }); echo __("The Email Address for this user."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 63 echo " "; echo twig_call_macro($macros["forms"], "macro_email", ["email", ($context["title"] ?? null), "", ($context["helpText"] ?? null)], 63, $context, $this->getSourceContext()); echo " "; // line 65 ob_start(function () { return ''; }); echo __("User Type"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 66 echo " "; ob_start(function () { return ''; }); echo __("What is this users type?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 67 echo " "; echo twig_call_macro($macros["forms"], "macro_dropdown", ["userTypeId", "single", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "defaultUserType", [], "any", false, false, false, 67), twig_get_attribute($this->env, $this->source, ($context["options"] ?? null), "userTypes", [], "any", false, false, false, 67), "userTypeId", "userType", ($context["helpText"] ?? null)], 67, $context, $this->getSourceContext()); echo " "; // line 69 ob_start(function () { return ''; }); echo __("Library Quota"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 70 echo " "; ob_start(function () { return ''; }); echo __("The quota that should be applied. Enter 0 for no quota."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 71 echo " <div class=\"form-group row\"> <label class=\"col-sm-2 control-label\" for=\"libraryQuota\">"; // line 72 echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true); echo "</label> <div class=\"col-sm-6\"> <input class=\"form-control\" name=\"libraryQuota\" type=\"number\" id=\"libraryQuota\" min=\"0\" /> <span class=\"help-block\">"; // line 75 echo twig_escape_filter($this->env, ($context["helpText"] ?? null), "html", null, true); echo "</span> </div> <div class=\"col-sm-4\"> <select name=\"libraryQuotaUnits\" class=\"form-control\"> <option value=\"kb\">KiB</option> <option value=\"mb\">MiB</option> <option value=\"gb\">GiB</option> </select> </div> </div> "; // line 86 $context["attributes"] = [0 => ["name" => "data-live-search", "value" => "true"], 1 => ["name" => "data-placeholder--id", "value" => null], 2 => ["name" => "data-placeholder--value", "value" => ""], 3 => ["name" => "data-search-url", "value" => $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("group.search")], 4 => ["name" => "data-search-term", "value" => "group"], 5 => ["name" => "data-id-property", "value" => "groupId"], 6 => ["name" => "data-text-property", "value" => "group"], 7 => ["name" => "data-initial-key", "value" => "userGroupId"], 8 => ["name" => "data-initial-value", "value" => twig_get_attribute($this->env, $this->source, // line 95 ($context["options"] ?? null), "defaultGroupId", [], "any", false, false, false, 95)], 9 => ["name" => "data-selected-text-format", "value" => "count > 4"]]; // line 98 echo " "; // line 99 ob_start(function () { return ''; }); echo __("Initial User Group"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 100 echo " "; ob_start(function () { return ''; }); echo __("Select a User Group for this User so that they get access to the parts of the application they need."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 101 echo " "; echo twig_call_macro($macros["forms"], "macro_dropdown", ["groupId", "single", ($context["title"] ?? null), null, [], "groupId", "group", ($context["helpText"] ?? null), "pagedSelect", "", "", "", ($context["attributes"] ?? null)], 101, $context, $this->getSourceContext()); echo " "; // line 103 echo twig_call_macro($macros["forms"], "macro_message", [__("User Groups are an easy way to configure a set of features and sharing which can be applied to multiple users. After adding a User they can be assigned to multiple Groups or have individual sharing assigned to them directly."), "card p-3 mb-3 bg-light"], 103, $context, $this->getSourceContext()); echo " "; // line 105 ob_start(function () { return ''; }); echo __("Homepage"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 106 echo " "; ob_start(function () { return ''; }); echo __("Homepage for this user. This is the page they will be taken to when they login."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 107 echo " <div class=\"form-group row\"> <label class=\"col-sm-2 control-label\" for=\"homePageId\">"; // line 108 echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true); echo "</label> <div class=\"col-sm-10\"> <select name=\"homePageId\" class=\"form-control homepage-select\" required data-search-url=\""; // line 110 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("user.homepages.search"), "html", null, true); echo "\"> </select> <span class=\"help-block\">"; // line 112 echo twig_escape_filter($this->env, ($context["helpText"] ?? null), "html", null, true); echo "</span> </div> </div> </div> <div class=\"tab-pane\" id=\"reference\"> "; // line 117 ob_start(function () { return ''; }); echo __("First Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 118 echo " "; ob_start(function () { return ''; }); echo __("The User's First Name."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 119 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["firstName", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "maxlength='254'"], 119, $context, $this->getSourceContext()); echo " "; // line 121 ob_start(function () { return ''; }); echo __("Last Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 122 echo " "; ob_start(function () { return ''; }); echo __("The User's Last Name."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 123 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["lastName", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "maxlength='254'"], 123, $context, $this->getSourceContext()); echo " "; // line 125 ob_start(function () { return ''; }); echo __("Phone Number"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 126 echo " "; ob_start(function () { return ''; }); echo __("The User's Phone Number."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 127 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["phone", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "maxlength='254'"], 127, $context, $this->getSourceContext()); echo " "; // line 129 ob_start(function () { return ''; }); echo __("Reference 1"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 130 echo " "; ob_start(function () { return ''; }); echo __("A reference field for custom user data"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 131 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["ref1", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "maxlength='254'"], 131, $context, $this->getSourceContext()); echo " "; // line 133 ob_start(function () { return ''; }); echo __("Reference 2"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 134 echo " "; ob_start(function () { return ''; }); echo __("A reference field for custom user data"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 135 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["ref2", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "maxlength='254'"], 135, $context, $this->getSourceContext()); echo " "; // line 137 ob_start(function () { return ''; }); echo __("Reference 3"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 138 echo " "; ob_start(function () { return ''; }); echo __("A reference field for custom user data"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 139 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["ref3", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "maxlength='254'"], 139, $context, $this->getSourceContext()); echo " "; // line 141 ob_start(function () { return ''; }); echo __("Reference 4"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 142 echo " "; ob_start(function () { return ''; }); echo __("A reference field for custom user data"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 143 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["ref4", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "maxlength='254'"], 143, $context, $this->getSourceContext()); echo " "; // line 145 ob_start(function () { return ''; }); echo __("Reference 5"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 146 echo " "; ob_start(function () { return ''; }); echo __("A reference field for custom user data"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 147 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["ref5", ($context["title"] ?? null), "", ($context["helpText"] ?? null), "", "maxlength='254'"], 147, $context, $this->getSourceContext()); echo " </div> "; // line 149 if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, ($context["currentUser"] ?? null), "userTypeId", [], "any", false, false, false, 149), 1))) { // line 150 echo " <div class=\"tab-pane\" id=\"notifications\"> "; // line 151 ob_start(function () { return ''; }); echo __("Receive System Notifications?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 152 echo " "; ob_start(function () { return ''; }); echo __("Should this User receive system notifications?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 153 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["isSystemNotification", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)], 153, $context, $this->getSourceContext()); echo " "; // line 155 ob_start(function () { return ''; }); echo __("Receive Display Notifications?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 156 echo " "; ob_start(function () { return ''; }); echo __("Should this User receive Display notifications for Displays they have permission to see?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 157 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["isDisplayNotification", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)], 157, $context, $this->getSourceContext()); echo " </div> "; } // line 160 echo " <div class=\"tab-pane\" id=\"optionsTab\"> "; // line 161 ob_start(function () { return ''; }); echo __("Hide navigation?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 162 echo " "; ob_start(function () { return ''; }); echo __("Should the navigation side bar be hidden for this User?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 163 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["hideNavigation", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)], 163, $context, $this->getSourceContext()); echo " "; // line 165 ob_start(function () { return ''; }); echo __("Hide User Guide?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 166 echo " "; ob_start(function () { return ''; }); echo __("Should this User see the new user guide when they log in?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 167 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["newUserWizard", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)], 167, $context, $this->getSourceContext()); echo " "; // line 169 ob_start(function () { return ''; }); echo __("Force Password Change"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 170 echo " "; ob_start(function () { return ''; }); echo __("Should this User be forced to change password next time they log in?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 171 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["isPasswordChangeRequired", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)], 171, $context, $this->getSourceContext()); echo " </div> </div> </form> </div> </div> "; } public function getTemplateName() { return "user-form-add.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 472 => 171, 467 => 170, 463 => 169, 457 => 167, 452 => 166, 448 => 165, 442 => 163, 437 => 162, 433 => 161, 430 => 160, 423 => 157, 418 => 156, 414 => 155, 408 => 153, 403 => 152, 399 => 151, 396 => 150, 394 => 149, 388 => 147, 383 => 146, 379 => 145, 373 => 143, 368 => 142, 364 => 141, 358 => 139, 353 => 138, 349 => 137, 343 => 135, 338 => 134, 334 => 133, 328 => 131, 323 => 130, 319 => 129, 313 => 127, 308 => 126, 304 => 125, 298 => 123, 293 => 122, 289 => 121, 283 => 119, 278 => 118, 274 => 117, 266 => 112, 261 => 110, 256 => 108, 253 => 107, 248 => 106, 244 => 105, 239 => 103, 233 => 101, 228 => 100, 224 => 99, 221 => 98, 219 => 95, 218 => 86, 204 => 75, 198 => 72, 195 => 71, 190 => 70, 186 => 69, 180 => 67, 175 => 66, 171 => 65, 165 => 63, 160 => 62, 156 => 61, 150 => 59, 145 => 58, 141 => 57, 135 => 55, 130 => 54, 126 => 53, 120 => 50, 114 => 48, 108 => 46, 106 => 45, 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("", "user-form-add.twig", "/home/mgatv524/mixmidia.mgaplay.com.br/views/user-form-add.twig"); } }