0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
giga
/
cache
/
c2
/
[
Home
]
File: c2fbc854980768679d83ff2523d70dc0a8efcf1188f0109d2d6e8ab7946db0b9.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; /* applications-form-edit.twig */ class __TwigTemplate_6a406888331f457ee2e57213bac799ba0ba26410fb7490875ec39880ca124ec7 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", "applications-form-edit.twig", 25)->unwrap(); // line 24 $this->parent = $this->loadTemplate("form-base.twig", "applications-form-edit.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 __("Edit Application"); } // 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 ", \$(\"#applicationFormSubmit\").submit() "; } // line 37 public function block_callBack($context, array $blocks = []) { $macros = $this->macros; echo "copyFromSecretInput"; } // 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 tabForAuthCode\"><a class=\"nav-link\" href=\"#advanced\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 44 echo __("Advanced"); echo "</span></a></li> <li class=\"nav-item\"><a class=\"nav-link\" href=\"#scopes\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 45 echo __("Sharing"); echo "</span></a></li> </ul> <form id=\"applicationFormSubmit\" class=\"XiboForm form-horizontal\" method=\"put\" action=\""; // line 47 echo twig_escape_filter($this->env, $this->env->getRuntime('Slim\Views\TwigRuntimeExtension')->urlFor("application.edit", ["id" => twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "key", [], "any", false, false, false, 47)]), "html", null, true); echo "\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> "; // line 50 ob_start(function () { return ''; }); echo __("Application Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 51 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["name", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "name", [], "any", false, false, false, 51)], 51, $context, $this->getSourceContext()); echo " "; // line 53 ob_start(function () { return ''; }); echo __("Client Id"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 54 echo " "; echo twig_call_macro($macros["forms"], "macro_disabled", ["clientId", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "key", [], "any", false, false, false, 54), "", "", "disabled"], 54, $context, $this->getSourceContext()); echo " "; // line 56 ob_start(function () { return ''; }); echo __("Client Secret"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 57 echo " "; ob_start(function () { return ''; }); echo __("Copy to Clipboard"); $context["buttonTitle"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 58 echo " "; echo twig_call_macro($macros["forms"], "macro_inputWithButton", ["clientSecret", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "secret", [], "any", false, false, false, 58), "", "", "readonly='readonly'", "", "copy-button", ($context["buttonTitle"] ?? null), "button", ""], 58, $context, $this->getSourceContext()); echo " "; // line 60 ob_start(function () { return ''; }); echo __("Reset Secret?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 61 echo " "; ob_start(function () { return ''; }); echo __("Reset your client secret to prevent access from any existing application."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 62 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["resetKeys", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)], 62, $context, $this->getSourceContext()); echo " "; // line 64 ob_start(function () { return ''; }); echo __("Selecting only one of the Authorisation Code or Client Credentials grants improves security by allowing us to revoke access tokens more effectively."); $context["message"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 65 echo " "; echo twig_call_macro($macros["forms"], "macro_message", [($context["message"] ?? null), "alert alert-info"], 65, $context, $this->getSourceContext()); echo " "; // line 67 ob_start(function () { return ''; }); echo __("Authorization Code?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 68 echo " "; ob_start(function () { return ''; }); echo __("Allow the Authorization Code Grant for this Client?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 69 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["authCode", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "authCode", [], "any", false, false, false, 69), ($context["helpText"] ?? null)], 69, $context, $this->getSourceContext()); echo " "; // line 71 ob_start(function () { return ''; }); echo __("Client Credentials?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 72 echo " "; ob_start(function () { return ''; }); echo __("Allow the Client Credentials Grant for this Client?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 73 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["clientCredentials", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "clientCredentials", [], "any", false, false, false, 73), ($context["helpText"] ?? null)], 73, $context, $this->getSourceContext()); echo " "; // line 75 ob_start(function () { return ''; }); echo __("Is Confidential?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 76 echo " "; ob_start(function () { return ''; }); echo __("Can this Application keep a secret?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 77 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", ["isConfidential", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "isConfidential", [], "any", false, false, false, 77), ($context["helpText"] ?? null)], 77, $context, $this->getSourceContext()); echo " "; // line 79 ob_start(function () { return ''; }); echo __("New Redirect URI"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 80 echo " "; ob_start(function () { return ''; }); echo __("White listed redirect URI's that will be allowed, only application for Authorization Code Grants"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 81 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["redirectUri[]", ($context["title"] ?? null), "", ($context["helpText"] ?? null)], 81, $context, $this->getSourceContext()); echo " <div class=\"form-group row\"> <span class=\"control-label col-sm-2\">"; // line 84 echo twig_escape_filter($this->env, __("Existing Redirect URI"), "html", null, true); echo ":</span> </div> "; // line 87 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "redirectUris", [], "any", false, false, false, 87)); foreach ($context['_seq'] as $context["_key"] => $context["url"]) { // line 88 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["redirectUri[]", "", twig_get_attribute($this->env, $this->source, $context["url"], "redirectUri", [], "any", false, false, false, 88)], 88, $context, $this->getSourceContext()); echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['url'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 90 echo " </div> <div class=\"tab-pane\" id=\"advanced\"> "; // line 92 ob_start(function () { return ''; }); echo __("Below information will be displayed for User on Application authorization page"); $context["message"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 93 echo " "; echo twig_call_macro($macros["forms"], "macro_message", [($context["message"] ?? null), "alert alert-info"], 93, $context, $this->getSourceContext()); echo " "; // line 95 ob_start(function () { return ''; }); echo __("Application Description"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 96 echo " "; echo twig_call_macro($macros["forms"], "macro_textarea", ["description", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "description", [], "any", false, false, false, 96), ($context["title"] ?? null)], 96, $context, $this->getSourceContext()); echo " "; // line 98 ob_start(function () { return ''; }); echo __("Logo"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 99 echo " "; ob_start(function () { return ''; }); echo __("Url pointing to the logo"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 100 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["logo", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "logo", [], "any", false, false, false, 100), ($context["helpText"] ?? null)], 100, $context, $this->getSourceContext()); echo " "; // line 102 ob_start(function () { return ''; }); echo __("Cover Image"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 103 echo " "; ob_start(function () { return ''; }); echo __("Url pointing to the Cover Image"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 104 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["coverImage", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "coverImage", [], "any", false, false, false, 104), ($context["helpText"] ?? null)], 104, $context, $this->getSourceContext()); echo " "; // line 106 ob_start(function () { return ''; }); echo __("Company Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 107 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["companyName", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "companyName", [], "any", false, false, false, 107)], 107, $context, $this->getSourceContext()); echo " "; // line 109 ob_start(function () { return ''; }); echo __("Terms URL"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 110 echo " "; ob_start(function () { return ''; }); echo __("Url pointing to the terms for this Application"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 111 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["termsUrl", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "termsUrl", [], "any", false, false, false, 111), ($context["helpText"] ?? null)], 111, $context, $this->getSourceContext()); echo " "; // line 113 ob_start(function () { return ''; }); echo __("Privacy Url"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 114 echo " "; ob_start(function () { return ''; }); echo __("Url pointing to the privacy policy for this Application"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 115 echo " "; echo twig_call_macro($macros["forms"], "macro_input", ["privacyUrl", ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, ($context["client"] ?? null), "privacyUrl", [], "any", false, false, false, 115), ($context["helpText"] ?? null)], 115, $context, $this->getSourceContext()); echo " </div> <div class=\"tab-pane\" id=\"scopes\"> "; // line 118 ob_start(function () { return ''; }); echo __("Select sharing to grant to this application (scopes)."); $context["message"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 119 echo " "; echo twig_call_macro($macros["forms"], "macro_message", [($context["message"] ?? null), "alert alert-info"], 119, $context, $this->getSourceContext()); echo " "; // line 120 ob_start(function () { return ''; }); echo __("Scopes grant the Application access to specific routes, all GET,POST and PUT calls for the selected scopes, will be available to use by this Application."); $context["message2"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 121 echo " "; echo twig_call_macro($macros["forms"], "macro_message", [($context["message2"] ?? null), "alert alert-info"], 121, $context, $this->getSourceContext()); echo " "; // line 122 ob_start(function () { return ''; }); echo __("The delete scopes are separate, without these Application will not have access to delete any existing content"); $context["message3"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 123 echo " "; echo twig_call_macro($macros["forms"], "macro_message", [($context["message3"] ?? null), "alert alert-info"], 123, $context, $this->getSourceContext()); echo " <div class=\"form-group row\"> <span class=\"control-label col-sm-2\">"; // line 126 echo twig_escape_filter($this->env, __("Scopes"), "html", null, true); echo ":</span> </div> "; // line 129 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["scopes"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["scope"]) { // line 130 echo " "; ob_start(function () { return ''; }); echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["scope"], "description", [], "any", false, false, false, 130), "html", null, true); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 131 echo " "; ob_start(function () { return ''; }); echo "scope_"; echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["scope"], "id", [], "any", false, false, false, 131), "html", null, true); $context["id"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 132 echo " "; echo twig_call_macro($macros["forms"], "macro_checkbox", [($context["id"] ?? null), ($context["title"] ?? null), twig_get_attribute($this->env, $this->source, $context["scope"], "selected", [], "any", false, false, false, 132)], 132, $context, $this->getSourceContext()); echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['_key'], $context['scope'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 134 echo " "; // line 135 ob_start(function () { return ''; }); echo __("Owner"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 136 echo " "; ob_start(function () { return ''; }); echo __("Set the owner of this Application. If you are not an admin you will not be able to reverse this action."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset()); // line 137 echo " "; $context["users"] = twig_array_merge([0 => ["userId" => null, "user" => ""]], ($context["users"] ?? null)); // line 138 echo " "; echo twig_call_macro($macros["forms"], "macro_dropdown", ["userId", "single", ($context["title"] ?? null), "", ($context["users"] ?? null), "userId", "userName", ($context["helpText"] ?? null)], 138, $context, $this->getSourceContext()); echo " </div> </div> </form> </div> </div> "; } public function getTemplateName() { return "applications-form-edit.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 426 => 138, 423 => 137, 418 => 136, 414 => 135, 411 => 134, 402 => 132, 396 => 131, 391 => 130, 387 => 129, 381 => 126, 374 => 123, 370 => 122, 365 => 121, 361 => 120, 356 => 119, 352 => 118, 345 => 115, 340 => 114, 336 => 113, 330 => 111, 325 => 110, 321 => 109, 315 => 107, 311 => 106, 305 => 104, 300 => 103, 296 => 102, 290 => 100, 285 => 99, 281 => 98, 275 => 96, 271 => 95, 265 => 93, 261 => 92, 257 => 90, 248 => 88, 244 => 87, 238 => 84, 231 => 81, 226 => 80, 222 => 79, 216 => 77, 211 => 76, 207 => 75, 201 => 73, 196 => 72, 192 => 71, 186 => 69, 181 => 68, 177 => 67, 171 => 65, 167 => 64, 161 => 62, 156 => 61, 152 => 60, 146 => 58, 141 => 57, 137 => 56, 131 => 54, 127 => 53, 121 => 51, 117 => 50, 111 => 47, 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("", "applications-form-edit.twig", "/home/mgatv524/public_html/giga/views/applications-form-edit.twig"); } }