0byt3m1n1
Path:
/
home
/
mgatv524
/
public_html
/
fmd
/
cache
/
f5
/
[
Home
]
File: f57edbb2f21fe28b6bcddaec5ebdbda06c8b30649df6a556486f9c42357beaae.php
<?php /* applications-form-edit.twig */ class __TwigTemplate_c822d97b4c3729f27e6a1314e673b51851f4e25cdb05a5197f831bbb904c44a3 extends Twig_Template { public function __construct(Twig_Environment $env) { parent::__construct($env); // line 10 $this->parent = $this->loadTemplate("form-base.twig", "applications-form-edit.twig", 10); $this->blocks = array( 'formTitle' => array($this, 'block_formTitle'), 'formButtons' => array($this, 'block_formButtons'), 'callBack' => array($this, 'block_callBack'), 'formHtml' => array($this, 'block_formHtml'), ); } protected function doGetParent(array $context) { return "form-base.twig"; } protected function doDisplay(array $context, array $blocks = array()) { // line 11 $context["forms"] = $this->loadTemplate("forms.twig", "applications-form-edit.twig", 11); // line 10 $this->parent->display($context, array_merge($this->blocks, $blocks)); } // line 13 public function block_formTitle($context, array $blocks = array()) { // line 14 echo " "; echo __("Edit Application"); } // line 17 public function block_formButtons($context, array $blocks = array()) { // line 18 echo " "; echo __("Help"); echo ", XiboHelpRender(\""; echo twig_escape_filter($this->env, ($context["help"] ?? null), "html", null, true); echo "\") "; // line 19 echo __("Cancel"); echo ", XiboDialogClose() "; // line 20 echo __("Save"); echo ", \$(\"#applicationFormSubmit\").submit() "; } // line 23 public function block_callBack($context, array $blocks = array()) { echo "copyFromSecretInput"; } // 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><a href=\"#scopes\" role=\"tab\" data-toggle=\"tab\"><span>"; // line 30 echo __("Permissions"); echo "</span></a></li> </ul> <form id=\"applicationFormSubmit\" class=\"XiboForm form-horizontal\" method=\"put\" action=\""; // line 32 echo twig_escape_filter($this->env, $this->env->getExtension('Slim\Views\TwigExtension')->urlFor("application.edit", array("id" => $this->getAttribute(($context["client"] ?? null), "key", array()))), "html", null, true); echo "\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> "; // line 35 ob_start(); echo __("Application Name"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 36 echo " "; echo $context["forms"]->getinput("name", ($context["title"] ?? null), $this->getAttribute(($context["client"] ?? null), "name", array())); echo " "; // line 38 ob_start(); echo __("Client Id"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 39 echo " "; echo $context["forms"]->getdisabled("clientId", ($context["title"] ?? null), $this->getAttribute(($context["client"] ?? null), "key", array()), "", "", "disabled"); echo " "; // line 41 ob_start(); echo __("Client Secret"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 42 echo " "; ob_start(); echo __("Copy to Clipboard"); $context["buttonTitle"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 43 echo " "; echo $context["forms"]->getinputWithButton("clientSecret", ($context["title"] ?? null), $this->getAttribute(($context["client"] ?? null), "secret", array()), "", "", "readonly='readonly'", "", "copy-button", ($context["buttonTitle"] ?? null), "button", ""); echo " "; // line 45 ob_start(); echo __("Reset Secret?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 46 echo " "; ob_start(); echo __("Reset your client secret to prevent access from any existing application."); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 47 echo " "; echo $context["forms"]->getcheckbox("resetKeys", ($context["title"] ?? null), 0, ($context["helpText"] ?? null)); echo " "; // line 49 ob_start(); echo __("Authorization Code?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 50 echo " "; ob_start(); echo __("Allow the Authorization Code Grant for this Client?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 51 echo " "; echo $context["forms"]->getcheckbox("authCode", ($context["title"] ?? null), $this->getAttribute(($context["client"] ?? null), "authCode", array()), ($context["helpText"] ?? null)); echo " "; // line 53 ob_start(); echo __("Client Credentials?"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 54 echo " "; ob_start(); echo __("Allow the Client Credentials Grant for this Client?"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 55 echo " "; echo $context["forms"]->getcheckbox("clientCredentials", ($context["title"] ?? null), $this->getAttribute(($context["client"] ?? null), "clientCredentials", array()), ($context["helpText"] ?? null)); echo " "; // line 57 ob_start(); echo __("Redirect URI"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 58 echo " "; ob_start(); echo __("White listed redirect URI's that will be allowed, only application for Authorization Code Grants"); $context["helpText"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 59 echo " "; echo $context["forms"]->getinput("redirectUri[]", ($context["title"] ?? null), "", ($context["helpText"] ?? null)); echo " </div> <div class=\"tab-pane\" id=\"scopes\"> "; // line 62 ob_start(); echo __("Select permissions to grant to this application (scopes)."); $context["message"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 63 echo " "; echo $context["forms"]->getmessage(($context["message"] ?? null)); echo " "; // line 65 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["client"] ?? null), "redirectUris", array())); foreach ($context['_seq'] as $context["_key"] => $context["url"]) { // line 66 echo " "; ob_start(); echo __("Redirect URI"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 67 echo " "; echo $context["forms"]->getinput("redirectUri[]", ($context["title"] ?? null), $this->getAttribute($context["url"], "redirectUri", array())); 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 69 echo " "; // line 70 $context['_parent'] = $context; $context['_seq'] = twig_ensure_traversable(($context["scopes"] ?? null)); foreach ($context['_seq'] as $context["_key"] => $context["scope"]) { // line 71 echo " "; ob_start(); echo twig_escape_filter($this->env, $this->getAttribute($context["scope"], "description", array()), "html", null, true); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 72 echo " "; ob_start(); echo "scope_"; echo twig_escape_filter($this->env, $this->getAttribute($context["scope"], "id", array()), "html", null, true); $context["id"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 73 echo " "; echo $context["forms"]->getcheckbox(($context["id"] ?? null), ($context["title"] ?? null), $this->getAttribute($context["scope"], "selected", array())); 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 75 echo " "; // line 76 ob_start(); echo __("Owner"); $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 77 echo " "; ob_start(); 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 Twig_Markup($tmp, $this->env->getCharset()); // line 78 echo " "; $context["users"] = twig_array_merge(array(0 => array("userId" => null, "user" => "")), ($context["users"] ?? null)); // line 79 echo " "; echo $context["forms"]->getdropdown("userId", "single", ($context["title"] ?? null), "", ($context["users"] ?? null), "userId", "userName", ($context["helpText"] ?? null)); echo " </div> </div> </form> </div> </div> "; } public function getTemplateName() { return "applications-form-edit.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 257 => 79, 254 => 78, 249 => 77, 245 => 76, 242 => 75, 233 => 73, 227 => 72, 222 => 71, 218 => 70, 215 => 69, 206 => 67, 201 => 66, 197 => 65, 191 => 63, 187 => 62, 180 => 59, 175 => 58, 171 => 57, 165 => 55, 160 => 54, 156 => 53, 150 => 51, 145 => 50, 141 => 49, 135 => 47, 130 => 46, 126 => 45, 120 => 43, 115 => 42, 111 => 41, 105 => 39, 101 => 38, 95 => 36, 91 => 35, 85 => 32, 80 => 30, 76 => 29, 71 => 26, 68 => 25, 62 => 23, 56 => 20, 52 => 19, 45 => 18, 42 => 17, 37 => 14, 34 => 13, 30 => 10, 28 => 11, 11 => 10,); } /** @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 Application\" %} {% endblock %} {% block formButtons %} {% trans \"Help\" %}, XiboHelpRender(\"{{ help }}\") {% trans \"Cancel\" %}, XiboDialogClose() {% trans \"Save\" %}, \$(\"#applicationFormSubmit\").submit() {% endblock %} {% block callBack %}copyFromSecretInput{% 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=\"#scopes\" role=\"tab\" data-toggle=\"tab\"><span>{% trans \"Permissions\" %}</span></a></li> </ul> <form id=\"applicationFormSubmit\" class=\"XiboForm form-horizontal\" method=\"put\" action=\"{{ urlFor(\"application.edit\", {id: client.key}) }}\"> <div class=\"tab-content\"> <div class=\"tab-pane active\" id=\"general\"> {% set title %}{% trans \"Application Name\" %}{% endset %} {{ forms.input(\"name\", title, client.name) }} {% set title %}{% trans \"Client Id\" %}{% endset %} {{ forms.disabled(\"clientId\", title, client.key, \"\", \"\", \"disabled\") }} {% set title %}{% trans \"Client Secret\" %}{% endset %} {% set buttonTitle %}{% trans \"Copy to Clipboard\" %}{% endset %} {{ forms.inputWithButton(\"clientSecret\", title, client.secret, \"\", \"\", \"readonly='readonly'\", \"\", \"copy-button\", buttonTitle, \"button\", \"\") }} {% set title %}{% trans \"Reset Secret?\" %}{% endset %} {% set helpText %}{% trans \"Reset your client secret to prevent access from any existing application.\" %}{% endset %} {{ forms.checkbox(\"resetKeys\", title, 0, helpText) }} {% set title %}{% trans \"Authorization Code?\" %}{% endset %} {% set helpText %}{% trans \"Allow the Authorization Code Grant for this Client?\" %}{% endset %} {{ forms.checkbox(\"authCode\", title, client.authCode, helpText) }} {% set title %}{% trans \"Client Credentials?\" %}{% endset %} {% set helpText %}{% trans \"Allow the Client Credentials Grant for this Client?\" %}{% endset %} {{ forms.checkbox(\"clientCredentials\", title, client.clientCredentials, helpText) }} {% set title %}{% trans \"Redirect URI\" %}{% endset %} {% set helpText %}{% trans \"White listed redirect URI's that will be allowed, only application for Authorization Code Grants\" %}{% endset %} {{ forms.input(\"redirectUri[]\", title, \"\", helpText) }} </div> <div class=\"tab-pane\" id=\"scopes\"> {% set message %}{% trans \"Select permissions to grant to this application (scopes).\" %}{% endset %} {{ forms.message(message) }} {% for url in client.redirectUris %} {% set title %}{% trans \"Redirect URI\" %}{% endset %} {{ forms.input(\"redirectUri[]\", title, url.redirectUri) }} {% endfor %} {% for scope in scopes %} {% set title %}{{ scope.description }}{% endset %} {% set id %}scope_{{ scope.id }}{% endset %} {{ forms.checkbox(id, title, scope.selected) }} {% endfor %} {% set title %}{% trans \"Owner\" %}{% endset %} {% set helpText %}{% trans \"Set the owner of this Application. If you are not an admin you will not be able to reverse this action.\" %}{% endset %} {% set users = [{userId: null, user: \"\"}]|merge(users) %} {{ forms.dropdown(\"userId\", \"single\", title, \"\", users, \"userId\", \"userName\", helpText) }} </div> </div> </form> </div> </div> {% endblock %}", "applications-form-edit.twig", "/home2/mgatv524/public_html/fmd/views/applications-form-edit.twig"); } }