<?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;
/* CRUD\list__action_deploy.html.twig */
class __TwigTemplate_adeecef4136dcae561e2a6873115b3b6acee84f8c4f028ad4d827c830e71ea8e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'field' => [$this, 'block_field'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CRUD\\list__action_deploy.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CRUD\\list__action_deploy.html.twig"));
// line 1
$this->displayBlock('field', $context, $blocks);
// line 200
echo "
";
// line 201
$this->displayBlock('javascripts', $context, $blocks);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 1
public function block_field($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "field"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "field"));
// line 2
if (twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 2, $this->source); })()), "isDbSet", [], "any", false, false, false, 2)) {
// line 3
echo "\t<select class=\"deploy_version_version\" data-id=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 3, $this->source); })()), "id", [], "any", false, false, false, 3), "html", null, true);
echo "\" id=\"deploy_version_version_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 3, $this->source); })()), "id", [], "any", false, false, false, 3), "html", null, true);
echo "\">
\t\t<option value=\"-\" readonly selected>Válassz verziót!</option>
\t\t<optgroup label=\"Project images\">
\t\t\t";
// line 6
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 6, $this->source); })()), "getProject", [], "any", false, false, false, 6), "getDeployTags", [], "any", false, false, false, 6));
foreach ($context['_seq'] as $context["_key"] => $context["deployTag"]) {
// line 7
echo "\t\t\t\t<option title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["deployTag"], "name", [], "any", false, false, false, 7), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["deployTag"], "name", [], "any", false, false, false, 7), "html", null, true);
echo "\">
\t\t\t\t\t";
// line 8
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["deployTag"], "name", [], "any", false, false, false, 8), "html", null, true);
echo "
\t\t\t\t\t";
// line 9
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["deployTag"], "environment", [], "any", false, false, false, 9), ""))) {
// line 10
echo "\t\t\t\t\t\t(#";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "environment", [], "any", false, false, false, 10), "id", [], "any", false, false, false, 10), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "environment", [], "any", false, false, false, 10), "project", [], "any", false, false, false, 10), "name", [], "any", false, false, false, 10), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "environment", [], "any", false, false, false, 10), "type", [], "any", false, false, false, 10), "name", [], "any", false, false, false, 10), "html", null, true);
echo ")
\t\t\t\t\t";
}
// line 12
echo "\t\t\t\t\t";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["deployTag"], "labels", [], "any", false, false, false, 12))) {
// line 13
echo "\t\t\t\t\t\t[";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["deployTag"], "getLabels", [], "any", false, false, false, 13));
foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
// line 14
echo "\t\t\t\t\t\t\t[color=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["label"], "GetParamsDecoded", [], "method", false, false, false, 14), "color", [], "array", false, false, false, 14), "html", null, true);
echo "]";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["label"], "value", [], "any", false, false, false, 14), "html", null, true);
echo "[/color]
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 15
echo "]
\t\t\t\t\t";
}
// line 17
echo "\t\t\t\t\t";
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["deployTag"], "note", [], "any", false, false, false, 17), ""))) {
// line 18
echo "\t\t\t\t\t\t(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["deployTag"], "note", [], "any", false, false, false, 18), "html", null, true);
echo ")
\t\t\t\t\t";
}
// line 20
echo "
\t\t\t\t</option>
\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['deployTag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 23
echo "\t\t</optgroup>
\t\t";
// line 24
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 24, $this->source); })()), "sharedDeployTags", [], "any", false, false, false, 24))) {
// line 25
echo "\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 25, $this->source); })()), "sharedDeployTags", [], "any", false, false, false, 25));
foreach ($context['_seq'] as $context["projectType"] => $context["deployTags"]) {
// line 26
echo "\t\t\t\t";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 26, $this->source); })()), "project", [], "any", false, false, false, 26), "type", [], "any", false, false, false, 26), "value", [], "any", false, false, false, 26), $context["projectType"]))) {
// line 27
echo "\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["deployTags"]);
foreach ($context['_seq'] as $context["projectTypeName"] => $context["sharedDeployTag"]) {
// line 28
echo "\t\t\t\t\t\t<optgroup label=\"";
echo twig_escape_filter($this->env, $context["projectTypeName"], "html", null, true);
echo " shared images\">
\t\t\t\t\t\t\t";
// line 29
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["sharedDeployTag"]);
foreach ($context['_seq'] as $context["_key"] => $context["deployTag"]) {
// line 30
echo "\t\t\t\t\t\t\t\t<option title=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "project", [], "any", false, false, false, 30), "botname", [], "any", false, false, false, 30), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["deployTag"], "name", [], "any", false, false, false, 30), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "project", [], "any", false, false, false, 30), "botname", [], "any", false, false, false, 30), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["deployTag"], "name", [], "any", false, false, false, 30), "html", null, true);
echo "\">
\t\t\t\t\t\t\t\t\t";
// line 31
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "project", [], "any", false, false, false, 31), "botname", [], "any", false, false, false, 31), "html", null, true);
echo ":";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["deployTag"], "name", [], "any", false, false, false, 31), "html", null, true);
echo "
\t\t\t\t\t\t\t\t\t";
// line 32
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["deployTag"], "environment", [], "any", false, false, false, 32), ""))) {
// line 33
echo "\t\t\t\t\t\t\t\t\t\t(#";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "environment", [], "any", false, false, false, 33), "id", [], "any", false, false, false, 33), "html", null, true);
echo ": ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "environment", [], "any", false, false, false, 33), "project", [], "any", false, false, false, 33), "name", [], "any", false, false, false, 33), "html", null, true);
echo "/";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["deployTag"], "environment", [], "any", false, false, false, 33), "type", [], "any", false, false, false, 33), "name", [], "any", false, false, false, 33), "html", null, true);
echo ")
\t\t\t\t\t\t\t\t\t";
}
// line 35
echo "\t\t\t\t\t\t\t\t\t";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["deployTag"], "labels", [], "any", false, false, false, 35))) {
// line 36
echo "\t\t\t\t\t\t\t\t\t\t[";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, $context["deployTag"], "getLabels", [], "any", false, false, false, 36));
foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
// line 37
echo "\t\t\t\t\t\t\t\t\t\t\t[color=";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["label"], "GetParamsDecoded", [], "method", false, false, false, 37), "color", [], "array", false, false, false, 37), "html", null, true);
echo "]";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["label"], "value", [], "any", false, false, false, 37), "html", null, true);
echo "[/color]
\t\t\t\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo "]
\t\t\t\t\t\t\t\t\t";
}
// line 40
echo "\t\t\t\t\t\t\t\t\t";
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, $context["deployTag"], "note", [], "any", false, false, false, 40), ""))) {
// line 41
echo "\t\t\t\t\t\t\t\t\t\t(";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["deployTag"], "note", [], "any", false, false, false, 41), "html", null, true);
echo ")
\t\t\t\t\t\t\t\t\t";
}
// line 43
echo "\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['deployTag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 45
echo "\t\t\t\t\t\t</optgroup>
\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['projectTypeName'], $context['sharedDeployTag'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 47
echo "\t\t\t\t";
}
// line 48
echo "\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['projectType'], $context['deployTags'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 49
echo "\t\t";
}
// line 50
echo "\t</select>
\t";
// line 51
if ((0 !== twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 51, $this->source); })()), "project", [], "any", false, false, false, 51), "type", [], "any", false, false, false, 51), "value", [], "any", false, false, false, 51), "phoenix"))) {
// line 52
echo "\t\t<a class=\"btn btn-sm btn-default bg-success\" id=\"deploy_version_button_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 52, $this->source); })()), "id", [], "any", false, false, false, 52), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 52, $this->source); })()), "generateObjectUrl", [0 => "deploy", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 52, $this->source); })()), 2 => ["version" => ""]], "method", false, false, false, 52), "html", null, true);
echo "\" href=\"#\" disabled><i class=\"fa fa-magic\" aria-hidden=\"true\"> </i>Deploy</a>
\t";
} else {
// line 54
echo "\t\t<a class=\"btn btn-sm btn-default bg-success\" href=\"https://jenkins.talkabot.net\" target=\"_blank\"><i class=\"fa fa-magic\" aria-hidden=\"true\"> </i>Deploy</a>
\t\t<a class=\"btn btn-sm btn-default bg-success\" href=\"#\" onclick=\"copyToClipboard(document.getElementById('deploy_version_version_";
// line 55
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 55, $this->source); })()), "id", [], "any", false, false, false, 55), "html", null, true);
echo "').value)\"><i class=\"fa fa-copy\" aria-hidden=\"true\"> </i> Copy Tag</a>
\t";
}
// line 57
echo "\t<a class=\"btn btn-sm btn-default bg-danger\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 57, $this->source); })()), "generateObjectUrl", [0 => "stop", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 57, $this->source); })())], "method", false, false, false, 57), "html", null, true);
echo "\"><i class=\"fa fa-stop\" aria-hidden=\"true\"> </i>Stop</a>
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"";
// line 58
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 58, $this->source); })()), "generateObjectUrl", [0 => "idp_generate", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 58, $this->source); })())], "method", false, false, false, 58), "html", null, true);
echo "\" title=\"If you would like to make an existing project to use IDP, use this button.\"><i class=\"fa fa-sign-in\" aria-hidden=\"true\"> </i>IDPfy</a>
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"";
// line 59
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 59, $this->source); })()), "generateObjectUrl", [0 => "create_resourceproxy_user", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 59, $this->source); })())], "method", false, false, false, 59), "html", null, true);
echo "\" title=\"Create a new resourceproxy user\" data-toggle=\"modal\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>Create Resourceproxy User</a>
\t";
// line 60
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 60, $this->source); })()), "project", [], "any", false, false, false, 60), "type", [], "any", false, false, false, 60), "value", [], "any", false, false, false, 60), "cheq"))) {
// line 61
echo "\t<a class=\"btn btn-sm btn-default bg-info\" href=\"#\" title=\"Register Viber Auth token (DB update and webhoor registration)!\" data-toggle=\"modal\" data-target=\"#viberTokenModal_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 61, $this->source); })()), "id", [], "any", false, false, false, 61), "html", null, true);
echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>vibertoken</a>\t\t
\t";
}
// line 63
echo "\t";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 63, $this->source); })()), "project", [], "any", false, false, false, 63), "type", [], "any", false, false, false, 63), "value", [], "any", false, false, false, 63), "cheq"))) {
// line 64
echo "\t<a class=\"btn btn-sm btn-default bg-info\" href=\"#\" title=\"Create this user to permauser and create new inviteToken for it!\" data-toggle=\"modal\" data-target=\"#permaUserCreateModal_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 64, $this->source); })()), "id", [], "any", false, false, false, 64), "html", null, true);
echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>PermaUser</a>\t\t
\t";
}
// line 66
echo "\t";
if ((0 === twig_compare(twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 66, $this->source); })()), "type", [], "any", false, false, false, 66), "name", [], "any", false, false, false, 66), "prod"))) {
// line 67
echo "\t\t<a class=\"btn btn-sm btn-default\" href=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 67, $this->source); })()), "generateObjectUrl", [0 => "debug", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 67, $this->source); })())], "method", false, false, false, 67), "html", null, true);
echo "\" title=\"Give deploy access to Developers for 1 hour\"><i class=\"fa fa-bug\" aria-hidden=\"true\"> </i>Debug</a>
\t";
}
// line 69
echo "\t
\t<!-- Modal -->
\t<div class=\"modal fade\" id=\"botidpUserCreateModal_";
// line 72
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 72, $this->source); })()), "id", [], "any", false, false, false, 72), "html", null, true);
echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"botidpUserCreateModalLabel_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 72, $this->source); })()), "id", [], "any", false, false, false, 72), "html", null, true);
echo "\" aria-hidden=\"true\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<h5 class=\"modal-title\" id=\"botidpUserCreateModalLabel_";
// line 76
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 76, $this->source); })()), "id", [], "any", false, false, false, 76), "html", null, true);
echo "\">Create new user in ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 76, $this->source); })()), "getProject", [], "any", false, false, false, 76), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 76, $this->source); })()), "getType", [], "any", false, false, false, 76), "getName", [], "any", false, false, false, 76), "html", null, true);
echo "</h5>
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>
\t\t\t\t\t</button>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<form>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label for=\"botidpUserCreateEmail_";
// line 84
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 84, $this->source); })()), "id", [], "any", false, false, false, 84), "html", null, true);
echo "\">Email address</label>
\t\t\t\t\t\t\t<input type=\"email\" name='botidpUserCreateEmail_";
// line 85
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 85, $this->source); })()), "id", [], "any", false, false, false, 85), "html", null, true);
echo "' class=\"form-control\" id=\"botidpUserCreateEmail_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 85, $this->source); })()), "id", [], "any", false, false, false, 85), "html", null, true);
echo "\" aria-describedby=\"botidpUserCreateEmailHelp\" placeholder=\"Enter email\" style=\"border: solid 2px red;\">
\t\t\t\t\t\t\t<small id=\"botidpUserCreateEmailHelp\" class=\"form-text text-muted\">The password will be sent to this e-mail address. You can add max 10 e-mail-addresses, separated by comma.</small>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label for=\"botidpUserCreateLanguage_";
// line 89
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 89, $this->source); })()), "id", [], "any", false, false, false, 89), "html", null, true);
echo "\">Language of email</label>
\t\t\t\t\t\t\t<select name='botidpUserCreateLanguage_";
// line 90
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 90, $this->source); })()), "id", [], "any", false, false, false, 90), "html", null, true);
echo "' class=\"form-control\" id=\"botidpUserCreateLanguage_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 90, $this->source); })()), "id", [], "any", false, false, false, 90), "html", null, true);
echo "\" aria-describedby=\"botidpUserCreateEmailHelp\">
\t\t\t\t\t\t\t\t<option value='hu_HU' selected>hu_HU</option>
\t\t\t\t\t\t\t\t<option value='en_US'>en_US</option>
\t\t\t\t\t\t\t\t<option value='nl_NL'>nl_NL</option>
\t\t\t\t\t\t\t\t<option value='pl_PL'>pl_PL</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label for=\"botidpUserCreateGroup_";
// line 98
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 98, $this->source); })()), "id", [], "any", false, false, false, 98), "html", null, true);
echo "\">Group of user</label>
\t\t\t\t\t\t\t<select name='botidpUserCreateGroup_";
// line 99
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 99, $this->source); })()), "id", [], "any", false, false, false, 99), "html", null, true);
echo "' class=\"form-control\" id=\"botidpUserCreateGroup_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 99, $this->source); })()), "id", [], "any", false, false, false, 99), "html", null, true);
echo "\" aria-describedby=\"botidpUserCreateGroupHelp\" multiple>
\t\t\t\t\t\t\t\t<option value='admin' selected>admin</option>
\t\t\t\t\t\t\t\t<option value='superuser'>superuser</option>
\t\t\t\t\t\t\t\t<option value='operator'>operator</option>
\t\t\t\t\t\t\t\t<option value='hr admin'>hr admin</option>
\t\t\t\t\t\t\t\t<option value='trainer'>trainer</option>
\t\t\t\t\t\t\t\t<option value='statistics'>statistics</option>
\t\t\t\t\t\t\t\t<option value='user'>user</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-footer\">
\t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
\t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_create_botdip_user_";
// line 113
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 113, $this->source); })()), "id", [], "any", false, false, false, 113), "html", null, true);
echo "\" href=\"#\" data-baseurl=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 113, $this->source); })()), "generateObjectUrl", [0 => "create_botdip_user", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 113, $this->source); })()), 2 => ["email" => "none", "language" => "en_US", "group" => "defaultgroup"]], "method", false, false, false, 113), "html", null, true);
echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>Create User</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t\t<!-- Modal Permauser -->
\t<div class=\"modal fade\" id=\"permaUserCreateModal_";
// line 120
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 120, $this->source); })()), "id", [], "any", false, false, false, 120), "html", null, true);
echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"permaUserCreateModalLabel_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 120, $this->source); })()), "id", [], "any", false, false, false, 120), "html", null, true);
echo "\" aria-hidden=\"true\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<h5 class=\"modal-title\" id=\"permaUserCreateModalLabel_";
// line 124
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 124, $this->source); })()), "id", [], "any", false, false, false, 124), "html", null, true);
echo "\">Create PermaUser user in ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 124, $this->source); })()), "getProject", [], "any", false, false, false, 124), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 124, $this->source); })()), "getType", [], "any", false, false, false, 124), "getName", [], "any", false, false, false, 124), "html", null, true);
echo "</h5>
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>
\t\t\t\t\t</button>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<form>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t
\t\t\t\t\t\t\t<label for=\"altusername_";
// line 133
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 133, $this->source); })()), "id", [], "any", false, false, false, 133), "html", null, true);
echo "\">Username</label>
\t\t\t\t\t\t\t<input type=\"text\" name='altusername_";
// line 134
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 134, $this->source); })()), "id", [], "any", false, false, false, 134), "html", null, true);
echo "' class=\"form-control\" id=\"altusername_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 134, $this->source); })()), "id", [], "any", false, false, false, 134), "html", null, true);
echo "\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Leave empty for your user or enter another user!\" style=\"border: solid 2px red;\">
\t\t\t\t\t\t
\t\t\t\t\t\t\t<label for=\"token1_";
// line 136
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 136, $this->source); })()), "id", [], "any", false, false, false, 136), "html", null, true);
echo "\">Invite Token 1</label>
\t\t\t\t\t\t\t<input type=\"text\" name='token1_";
// line 137
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 137, $this->source); })()), "id", [], "any", false, false, false, 137), "html", null, true);
echo "' class=\"form-control\" id=\"token1_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 137, $this->source); })()), "id", [], "any", false, false, false, 137), "html", null, true);
echo "\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Enter Invite token 1!\" style=\"border: solid 2px red;\">
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<label for=\"token2_";
// line 139
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 139, $this->source); })()), "id", [], "any", false, false, false, 139), "html", null, true);
echo "\">Invite Token 2</label>
\t\t\t\t\t\t\t<input type=\"text\" name='token2_";
// line 140
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 140, $this->source); })()), "id", [], "any", false, false, false, 140), "html", null, true);
echo "' class=\"form-control\" id=\"token2_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 140, $this->source); })()), "id", [], "any", false, false, false, 140), "html", null, true);
echo "\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Enter Invite token 2!\" style=\"border: solid 2px red;\">
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<small id=\"permaUserCreateHelp\" class=\"form-text text-muted\">Please redeploy to be a permauser. Invite Tokens are available immediately!</small>
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-footer\">
\t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
\t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_create_perma_user_";
// line 148
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 148, $this->source); })()), "id", [], "any", false, false, false, 148), "html", null, true);
echo "\" href=\"#\" data-baseurl=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 148, $this->source); })()), "generateObjectUrl", [0 => "create_perma_user", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 148, $this->source); })()), 2 => ["token1" => "none", "token2" => "none", "altusername" => "none"]], "method", false, false, false, 148), "html", null, true);
echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>Create Permauser</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t\t\t<!-- Modal viber -->
\t<div class=\"modal fade\" id=\"viberTokenModal_";
// line 155
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 155, $this->source); })()), "id", [], "any", false, false, false, 155), "html", null, true);
echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"viberTokenModalLabel_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 155, $this->source); })()), "id", [], "any", false, false, false, 155), "html", null, true);
echo "\" aria-hidden=\"true\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<h5 class=\"modal-title\" id=\"viberTokenModalLabel_";
// line 159
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 159, $this->source); })()), "id", [], "any", false, false, false, 159), "html", null, true);
echo "\">Adding viber auth token to ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 159, $this->source); })()), "getProject", [], "any", false, false, false, 159), "html", null, true);
echo " / ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 159, $this->source); })()), "getType", [], "any", false, false, false, 159), "getName", [], "any", false, false, false, 159), "html", null, true);
echo "</h5>
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>
\t\t\t\t\t</button>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<form>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label for=\"vibertoken_";
// line 167
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 167, $this->source); })()), "id", [], "any", false, false, false, 167), "html", null, true);
echo "\">Viber auth token</label>
\t\t\t\t\t\t\t<input type=\"text\" name='vibertoken_";
// line 168
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 168, $this->source); })()), "id", [], "any", false, false, false, 168), "html", null, true);
echo "' class=\"form-control\" id=\"vibertoken_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 168, $this->source); })()), "id", [], "any", false, false, false, 168), "html", null, true);
echo "\" aria-describedby=\"viberTokenHelp\" placeholder=\"Enter Viber auth token!\" style=\"border: solid 2px green;\">
\t\t\t\t\t\t\t<small id=\"viberTokenHelp\" class=\"form-text text-muted\">Enter viber auth token or leave empty, if you want to remove auth token from this CHEQ project</small>
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-footer\">
\t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
\t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_add_viber_token_";
// line 175
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 175, $this->source); })()), "id", [], "any", false, false, false, 175), "html", null, true);
echo "\" href=\"#\" data-baseurl=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 175, $this->source); })()), "generateObjectUrl", [0 => "viber_token", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 175, $this->source); })()), 2 => ["vibertoken" => "none"]], "method", false, false, false, 175), "html", null, true);
echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>add Viber auth token</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t
";
} else {
// line 183
echo "\t<p class='font-italic'>Missing DB config!</p>
\t<select class=\"init_shared_db_dbserver\" data-id=\"";
// line 184
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 184, $this->source); })()), "id", [], "any", false, false, false, 184), "html", null, true);
echo "\" id=\"init_shared_db_dbserver_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 184, $this->source); })()), "id", [], "any", false, false, false, 184), "html", null, true);
echo "\">
\t\t<option value=\"-\" readonly selected>Válassz Szervert!</option>
\t\t";
// line 186
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 186, $this->source); })()), "sharedDBServers", [], "any", false, false, false, 186));
foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
// line 187
echo "\t\t\t<option value=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["value"], "id", [], "any", false, false, false, 187), "html", null, true);
echo "\">
\t\t\t\t";
// line 188
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["value"], "name", [], "any", false, false, false, 188), "html", null, true);
echo "
\t\t\t</option>
\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 191
echo "\t</select>
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"";
// line 192
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 192, $this->source); })()), "generateObjectUrl", [0 => "init_rds_db", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 192, $this->source); })())], "method", false, false, false, 192), "html", null, true);
echo "\" title=\"Init new RDS (AWS SaaS Postgres) Database!\"><i class=\"fa fa-database\" aria-hidden=\"true\"> </i>Init RDS DB</a>
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"";
// line 193
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 193, $this->source); })()), "generateObjectUrl", [0 => "init_adp_db", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 193, $this->source); })())], "method", false, false, false, 193), "html", null, true);
echo "\" title=\"Init new ADP (Azure Database for PostgreSQL) Database!\"><i class=\"fa fa-database\" aria-hidden=\"true\"> </i>Init ADP DB</a>
\t<a class=\"btn btn-sm btn-default bg-success\" id=\"init_shared_db_button_";
// line 194
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 194, $this->source); })()), "id", [], "any", false, false, false, 194), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 194, $this->source); })()), "generateObjectUrl", [0 => "init_shared_db", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 194, $this->source); })()), 2 => ["dbserver" => ""]], "method", false, false, false, 194), "html", null, true);
echo "\" href=\"#\" disabled title=\"Init new PostgreSQL database on shared server\"><i class=\"fa fa-database\" aria-hidden=\"true\"> </i>Init shared db</a>
\t<a class=\"btn btn-sm btn-default bg-success\" id=\"init_shared_db_admin_button_";
// line 195
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 195, $this->source); })()), "id", [], "any", false, false, false, 195), "html", null, true);
echo "\" data-url=\"";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["admin"]) || array_key_exists("admin", $context) ? $context["admin"] : (function () { throw new RuntimeError('Variable "admin" does not exist.', 195, $this->source); })()), "generateObjectUrl", [0 => "init_shared_db", 1 => (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 195, $this->source); })()), 2 => ["prefix" => "admin", "dbserver" => ""]], "method", false, false, false, 195), "html", null, true);
echo "\" href=\"#\" disabled title=\"Init new PostgreSQL database for ADMIN on shared server\"><i class=\"fa fa-database\" aria-hidden=\"true\"><i class=\"fa fa-user\" aria-hidden=\"true\"> </i></i>Init ADMIN shared db</a>
";
}
// line 198
echo "
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 201
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 202
echo "\t";
if (twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 202, $this->source); })()), "isDbSet", [], "any", false, false, false, 202)) {
// line 203
echo "\t\t<script type=\"text/javascript\">
\t\t\tfunction copyToClipboard(text) {
\t\t\t\tvar dummy = document.createElement(\"textarea\");
\t\t\t\tdocument.body.appendChild(dummy);
\t\t\t\tdummy.value = text;
\t\t\t\tdummy.select();
\t\t\t\tdocument.execCommand(\"copy\");
\t\t\t\tdocument.body.removeChild(dummy);
\t\t\t}
\t\t\t\$( document ).ready(function() {
\t\t\t
\t\t\t\t
\t\t\t\t\$('#botidpUserCreateEmail_";
// line 215
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 215, $this->source); })()), "id", [], "any", false, false, false, 215), "html", null, true);
echo "').keypress(function (e) {
\t\t\t\t\tif (e.which == 13) {
\t\t\t\t\t\treturn false; //<---- Add this line
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t\$(\"#botidpUserCreateLanguage_";
// line 220
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 220, $this->source); })()), "id", [], "any", false, false, false, 220), "html", null, true);
echo "\").on(\"change\", function (e) {
\t\t\t\t\tcheckCreateUser(e);
\t\t\t\t});
\t\t\t\t\$(\"#botidpUserCreateGroup_";
// line 223
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 223, $this->source); })()), "id", [], "any", false, false, false, 223), "html", null, true);
echo "\").on(\"change\", function (e) {
\t\t\t\t\tcheckCreateUser(e);
\t\t\t\t});
\t\t\t\t\$(\"#botidpUserCreateEmail_";
// line 226
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 226, $this->source); })()), "id", [], "any", false, false, false, 226), "html", null, true);
echo "\").keyup(function (e) {
\t\t\t\t\tcheckCreateUser(e);
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$('#token1_";
// line 230
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 230, $this->source); })()), "id", [], "any", false, false, false, 230), "html", null, true);
echo "').keypress(function (e) {
\t\t\t\t\tif (e.which == 13) {
\t\t\t\t\t\treturn false; //<---- Add this line
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t\t\t\t\t
\t\t\t\t\$('#token2_";
// line 236
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 236, $this->source); })()), "id", [], "any", false, false, false, 236), "html", null, true);
echo "').keypress(function (e) {
\t\t\t\t\tif (e.which == 13) {
\t\t\t\t\t\treturn false; //<---- Add this line
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$(\"#token1_";
// line 242
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 242, $this->source); })()), "id", [], "any", false, false, false, 242), "html", null, true);
echo "\").keyup(function (e) {
\t\t\t\t\tcheckCreatePermaUser(e);
\t\t\t\t});
\t\t\t\t\$(\"#token2_";
// line 245
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 245, $this->source); })()), "id", [], "any", false, false, false, 245), "html", null, true);
echo "\").keyup(function (e) {
\t\t\t\t\tcheckCreatePermaUser(e);
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$('#vibertoken_";
// line 249
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 249, $this->source); })()), "id", [], "any", false, false, false, 249), "html", null, true);
echo "').keypress(function (e) {
\t\t\t\t\tif (e.which == 13) {
\t\t\t\t\t\treturn false; //<---- Add this line
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t\$(\"#vibertoken_";
// line 254
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 254, $this->source); })()), "id", [], "any", false, false, false, 254), "html", null, true);
echo "\").keyup(function (e) {
\t\t\t\t\taddViberToken();
\t\t\t\t});
\t\t\t\t
\t\t\t\tfunction checkCreateUser(e) {
\t\t\t\t\tif(\$(\"#botidpUserCreateEmail_";
// line 259
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 259, $this->source); })()), "id", [], "any", false, false, false, 259), "html", null, true);
echo "\").val() == \"\") {
\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_";
// line 260
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 260, $this->source); })()), "id", [], "any", false, false, false, 260), "html", null, true);
echo "\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\$(\"#button_create_botdip_user_";
// line 261
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 261, $this->source); })()), "id", [], "any", false, false, false, 261), "html", null, true);
echo "\").attr(\"href\", \"#\");
\t\t\t\t\t} else {
\t\t\t\t\t\tvar re = /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))\$/;
\t\t\t\t\t\tvar validEmails = true;
\t\t\t\t\t\tvar emailSplit = \$(\"#botidpUserCreateEmail_";
// line 265
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 265, $this->source); })()), "id", [], "any", false, false, false, 265), "html", null, true);
echo "\").val().split(\",\");
\t\t\t\t\t\t
\t\t\t\t\t\t\$.each( emailSplit, function( index, value ) {
\t\t\t\t\t\t\tconsole.log(value);
\t\t\t\t\t\t\tif(re.test(value.trim())) {
\t\t\t\t\t\t\t\treturn;
\t\t\t\t\t\t\t} else {
\t\t\t\t\t\t\t\tvalidEmails = false;
\t\t\t\t\t\t\t}
\t\t\t\t\t\t});
\t\t\t\t\t\tif(!validEmails) {
\t\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_";
// line 276
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 276, $this->source); })()), "id", [], "any", false, false, false, 276), "html", null, true);
echo "\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\t\$(\"#button_create_botdip_user_";
// line 277
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 277, $this->source); })()), "id", [], "any", false, false, false, 277), "html", null, true);
echo "\").attr(\"href\", \"#\");
\t\t\t\t\t\t} else {
\t\t\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_";
// line 279
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 279, $this->source); })()), "id", [], "any", false, false, false, 279), "html", null, true);
echo "\").css(\"border\", \"solid 2px green\");
\t\t\t\t\t\t\t\tbaseurl = \$(\"#button_create_botdip_user_";
// line 280
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 280, $this->source); })()), "id", [], "any", false, false, false, 280), "html", null, true);
echo "\").attr(\"data-baseurl\");
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#botidpUserCr7eateEmail_";
// line 281
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 281, $this->source); })()), "id", [], "any", false, false, false, 281), "html", null, true);
echo "\").val());
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"en_US\", \$(\"#botidpUserCreateLanguage_";
// line 282
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 282, $this->source); })()), "id", [], "any", false, false, false, 282), "html", null, true);
echo "\").val());
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"defaultgroup\", \$(\"#botidpUserCreateGroup_";
// line 283
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 283, $this->source); })()), "id", [], "any", false, false, false, 283), "html", null, true);
echo "\").val());
\t\t\t\t\t\t\t\t\$(\"#button_create_botdip_user_";
// line 284
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 284, $this->source); })()), "id", [], "any", false, false, false, 284), "html", null, true);
echo "\").attr(\"href\", baseurl);
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t};
\t\t\t\t
\t\t\t\tfunction checkCreatePermaUser(e) {
\t\t\t
\t\t\t\t\tif(\$(\"#token1_";
// line 292
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 292, $this->source); })()), "id", [], "any", false, false, false, 292), "html", null, true);
echo "\").val() == \"\" || \$(\"#token2_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 292, $this->source); })()), "id", [], "any", false, false, false, 292), "html", null, true);
echo "\").val() == \"\" ) {
\t\t\t\t\t\t\$(\"#token1_";
// line 293
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 293, $this->source); })()), "id", [], "any", false, false, false, 293), "html", null, true);
echo "\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\$(\"#token2_";
// line 294
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 294, $this->source); })()), "id", [], "any", false, false, false, 294), "html", null, true);
echo "\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\$(\"#button_create_perma_user_";
// line 295
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 295, $this->source); })()), "id", [], "any", false, false, false, 295), "html", null, true);
echo "\").attr(\"href\", \"#\");
\t\t\t\t\t} else {
\t\t\t\t\t\t\t
\t\t\t\t\t\tif(\$(\"#token1_";
// line 298
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 298, $this->source); })()), "id", [], "any", false, false, false, 298), "html", null, true);
echo "\").val().length >4 && \$(\"#token2_";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 298, $this->source); })()), "id", [], "any", false, false, false, 298), "html", null, true);
echo "\").val().length >4 ) {
\t\t\t\t\t\t\t\t\$(\"#token1_";
// line 299
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 299, $this->source); })()), "id", [], "any", false, false, false, 299), "html", null, true);
echo "\").css(\"border\", \"solid 2px green\");
\t\t\t\t\t\t\t\t\$(\"#token2_";
// line 300
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 300, $this->source); })()), "id", [], "any", false, false, false, 300), "html", null, true);
echo "\").css(\"border\", \"solid 2px green\");
\t\t\t\t\t\t\t\t\$(\"#altusername_";
// line 301
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 301, $this->source); })()), "id", [], "any", false, false, false, 301), "html", null, true);
echo "\").css(\"border\", \"solid 2px green\");
\t\t\t\t\t\t\t\tbaseurl = \$(\"#button_create_perma_user_";
// line 302
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 302, $this->source); })()), "id", [], "any", false, false, false, 302), "html", null, true);
echo "\").attr(\"data-baseurl\");
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#token1_";
// line 303
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 303, $this->source); })()), "id", [], "any", false, false, false, 303), "html", null, true);
echo "\").val());
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#token2_";
// line 304
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 304, $this->source); })()), "id", [], "any", false, false, false, 304), "html", null, true);
echo "\").val());
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#altusername_";
// line 305
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 305, $this->source); })()), "id", [], "any", false, false, false, 305), "html", null, true);
echo "\").val());
\t\t\t\t\t\t\t\t\$(\"#button_create_perma_user_";
// line 306
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 306, $this->source); })()), "id", [], "any", false, false, false, 306), "html", null, true);
echo "\").attr(\"href\", baseurl);\t\t\t\t\t\t
\t\t\t\t\t\t} else {
\t\t\t\t\t\t\t\t\$(\"#token1_";
// line 308
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 308, $this->source); })()), "id", [], "any", false, false, false, 308), "html", null, true);
echo "\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\t\t\$(\"#token2_";
// line 309
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 309, $this->source); })()), "id", [], "any", false, false, false, 309), "html", null, true);
echo "\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\t\t\$(\"#altusername_";
// line 310
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 310, $this->source); })()), "id", [], "any", false, false, false, 310), "html", null, true);
echo "\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\t \$(\"#button_create_perma_user_";
// line 311
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 311, $this->source); })()), "id", [], "any", false, false, false, 311), "html", null, true);
echo "\").attr(\"href\", \"#\");
\t
\t\t\t\t\t\t}
\t\t\t\t }
\t\t\t\t\t};
\t\t\t\t
\t\t\t\t function addViberToken(e) {
\t\t\t
\t\t\t\t\t\$(\"#vibertoken_";
// line 319
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 319, $this->source); })()), "id", [], "any", false, false, false, 319), "html", null, true);
echo "\").css(\"border\", \"solid 2px green\");\t
\t\t\t\t\t\$(\"#button_add_viber_token_";
// line 320
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 320, $this->source); })()), "id", [], "any", false, false, false, 320), "html", null, true);
echo "\").attr(\"href\", \"#\");
\t\t\t\t\tconsole.log(\"Viberbuli\");
\t\t\t\t\t
\t\t\t\t\t\t\t\tbaseurl = \$(\"#button_add_viber_token_";
// line 323
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 323, $this->source); })()), "id", [], "any", false, false, false, 323), "html", null, true);
echo "\").attr(\"data-baseurl\");
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#vibertoken_";
// line 324
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 324, $this->source); })()), "id", [], "any", false, false, false, 324), "html", null, true);
echo "\").val());
\t\t\t\t\t\t\t\t\$(\"#button_add_viber_token_";
// line 325
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 325, $this->source); })()), "id", [], "any", false, false, false, 325), "html", null, true);
echo "\").attr(\"href\", baseurl);\t\t\t\t\t\t
\t\t\t\t
\t\t\t\t\t};
\t\t\t\t
\t\t
\t\t\t\t\$(\"#deploy_version_version_";
// line 331
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 331, $this->source); })()), "id", [], "any", false, false, false, 331), "html", null, true);
echo "\").change(function() {
\t\t\t\t\tif(\$(this).val() != \"-\") {
\t\t\t\t\t\tbutton = \$(\"#deploy_version_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\turl = button.attr(\"data-url\");
\t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
\t\t\t\t\t\tbutton.removeAttr(\"disabled\");
\t\t\t\t\t} else {
\t\t\t\t\t\tbutton = \$(\"#deploy_version_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\tbutton.attr(\"href\", \"#\");
\t\t\t\t\t\tbutton.attr(\"disabled\", true);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\tif(\$(\"#deploy_version_version_";
// line 344
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 344, $this->source); })()), "id", [], "any", false, false, false, 344), "html", null, true);
echo "\").val() != \"-\") {
\t\t\t\t\t\$(\"#deploy_version_version_";
// line 345
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 345, $this->source); })()), "id", [], "any", false, false, false, 345), "html", null, true);
echo "\").trigger(\"change\");
\t\t\t\t}
\t\t\t\t\$(\".deploy_version_version\").select2({
\t\t\t\t\tescapeMarkup: function(m) {
\t\t\t\t\t\treturn m.replace(/\\[color\\=([a-z\\-]+)\\](.*)\\[\\/color\\]/gi, '<span style=\\'color:\$1;\\'>\$2</span>');
\t\t\t\t\t}
\t\t\t\t});
\t\t\t});
\t\t</script>
\t";
} else {
// line 356
echo "\t\t<script type=\"text/javascript\">
\t\t\t\$( document ).ready(function() {
\t\t\t\t\$(\"#init_shared_db_dbserver_";
// line 358
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 358, $this->source); })()), "id", [], "any", false, false, false, 358), "html", null, true);
echo "\").change(function() {
\t\t\t\t\tif(\$(this).val() != \"-\") {
\t\t\t\t\t\tbutton = \$(\"#init_shared_db_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\turl = button.attr(\"data-url\");
\t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
\t\t\t\t\t\tbutton.removeAttr(\"disabled\");
\t\t\t\t\t\tbutton = \$(\"#init_shared_db_admin_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\turl = button.attr(\"data-url\");
\t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
\t\t\t\t\t\tbutton.removeAttr(\"disabled\");
\t\t\t\t\t} else {
\t\t\t\t\t\tbutton = \$(\"#init_shared_db_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\tbutton.attr(\"href\", \"#\");
\t\t\t\t\t\tbutton.attr(\"disabled\", true);
\t\t\t\t\t\tbutton = \$(\"#init_shared_db_admin_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\tbutton.attr(\"href\", \"#\");
\t\t\t\t\t\tbutton.attr(\"disabled\", true);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\tif(\$(\"#init_shared_db_dbserver_";
// line 377
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 377, $this->source); })()), "id", [], "any", false, false, false, 377), "html", null, true);
echo "\").val() != \"-\") {
\t\t\t\t\t\$(\"#init_shared_db_dbserver_";
// line 378
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["object"]) || array_key_exists("object", $context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.', 378, $this->source); })()), "id", [], "any", false, false, false, 378), "html", null, true);
echo "\").trigger(\"change\");
\t\t\t\t}
\t\t\t});
\t\t</script>
\t";
}
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "CRUD\\list__action_deploy.html.twig";
}
public function getDebugInfo()
{
return array ( 952 => 378, 948 => 377, 926 => 358, 922 => 356, 908 => 345, 904 => 344, 888 => 331, 879 => 325, 875 => 324, 871 => 323, 865 => 320, 861 => 319, 850 => 311, 846 => 310, 842 => 309, 838 => 308, 833 => 306, 829 => 305, 825 => 304, 821 => 303, 817 => 302, 813 => 301, 809 => 300, 805 => 299, 799 => 298, 793 => 295, 789 => 294, 785 => 293, 779 => 292, 768 => 284, 764 => 283, 760 => 282, 756 => 281, 752 => 280, 748 => 279, 743 => 277, 739 => 276, 725 => 265, 718 => 261, 714 => 260, 710 => 259, 702 => 254, 694 => 249, 687 => 245, 681 => 242, 672 => 236, 663 => 230, 656 => 226, 650 => 223, 644 => 220, 636 => 215, 622 => 203, 619 => 202, 609 => 201, 598 => 198, 590 => 195, 584 => 194, 580 => 193, 576 => 192, 573 => 191, 564 => 188, 559 => 187, 555 => 186, 548 => 184, 545 => 183, 532 => 175, 520 => 168, 516 => 167, 501 => 159, 492 => 155, 480 => 148, 467 => 140, 463 => 139, 456 => 137, 452 => 136, 445 => 134, 441 => 133, 425 => 124, 416 => 120, 404 => 113, 385 => 99, 381 => 98, 368 => 90, 364 => 89, 355 => 85, 351 => 84, 336 => 76, 327 => 72, 322 => 69, 316 => 67, 313 => 66, 307 => 64, 304 => 63, 298 => 61, 296 => 60, 292 => 59, 288 => 58, 283 => 57, 278 => 55, 275 => 54, 267 => 52, 265 => 51, 262 => 50, 259 => 49, 253 => 48, 250 => 47, 243 => 45, 236 => 43, 230 => 41, 227 => 40, 223 => 38, 212 => 37, 207 => 36, 204 => 35, 194 => 33, 192 => 32, 186 => 31, 175 => 30, 171 => 29, 166 => 28, 161 => 27, 158 => 26, 153 => 25, 151 => 24, 148 => 23, 140 => 20, 134 => 18, 131 => 17, 127 => 15, 116 => 14, 111 => 13, 108 => 12, 98 => 10, 96 => 9, 92 => 8, 85 => 7, 81 => 6, 72 => 3, 70 => 2, 60 => 1, 50 => 201, 47 => 200, 45 => 1,);
}
public function getSourceContext()
{
return new Source("{% block field %}
{% if object.isDbSet %}
\t<select class=\"deploy_version_version\" data-id=\"{{ object.id }}\" id=\"deploy_version_version_{{ object.id }}\">
\t\t<option value=\"-\" readonly selected>Válassz verziót!</option>
\t\t<optgroup label=\"Project images\">
\t\t\t{% for deployTag in object.getProject.getDeployTags %}
\t\t\t\t<option title=\"{{ deployTag.name }}\" value=\"{{ deployTag.name }}\">
\t\t\t\t\t{{ deployTag.name }}
\t\t\t\t\t{% if deployTag.environment != \"\" %}
\t\t\t\t\t\t(#{{ deployTag.environment.id }}: {{ deployTag.environment.project.name }}/{{ deployTag.environment.type.name }})
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if deployTag.labels is not empty %}
\t\t\t\t\t\t[{% for label in deployTag.getLabels %}
\t\t\t\t\t\t\t[color={{ label.GetParamsDecoded()[\"color\"] }}]{{ label.value }}[/color]
\t\t\t\t\t\t{% endfor %}]
\t\t\t\t\t{% endif %}
\t\t\t\t\t{% if deployTag.note != \"\" %}
\t\t\t\t\t\t({{ deployTag.note }})
\t\t\t\t\t{% endif %}
\t\t\t\t</option>
\t\t\t{% endfor %}
\t\t</optgroup>
\t\t{% if admin.sharedDeployTags is not empty %}
\t\t\t{% for projectType,deployTags in admin.sharedDeployTags %}
\t\t\t\t{% if object.project.type.value == projectType %}
\t\t\t\t\t{% for projectTypeName,sharedDeployTag in deployTags %}
\t\t\t\t\t\t<optgroup label=\"{{ projectTypeName }} shared images\">
\t\t\t\t\t\t\t{% for deployTag in sharedDeployTag %}
\t\t\t\t\t\t\t\t<option title=\"{{ deployTag.project.botname }}:{{ deployTag.name }}\" value=\"{{ deployTag.project.botname }}:{{ deployTag.name }}\">
\t\t\t\t\t\t\t\t\t{{ deployTag.project.botname }}:{{ deployTag.name }}
\t\t\t\t\t\t\t\t\t{% if deployTag.environment != \"\" %}
\t\t\t\t\t\t\t\t\t\t(#{{ deployTag.environment.id }}: {{ deployTag.environment.project.name }}/{{ deployTag.environment.type.name }})
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% if deployTag.labels is not empty %}
\t\t\t\t\t\t\t\t\t\t[{% for label in deployTag.getLabels %}
\t\t\t\t\t\t\t\t\t\t\t[color={{ label.GetParamsDecoded()[\"color\"] }}]{{ label.value }}[/color]
\t\t\t\t\t\t\t\t\t\t{% endfor %}]
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t\t{% if deployTag.note != \"\" %}
\t\t\t\t\t\t\t\t\t\t({{ deployTag.note }})
\t\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t</option>
\t\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t\t</optgroup>
\t\t\t\t\t{% endfor %}
\t\t\t\t{% endif %}
\t\t\t{% endfor %}
\t\t{% endif %}
\t</select>
\t{% if object.project.type.value != \"phoenix\" %}
\t\t<a class=\"btn btn-sm btn-default bg-success\" id=\"deploy_version_button_{{ object.id }}\" data-url=\"{{ admin.generateObjectUrl('deploy', object, {\"version\":\"\"}) }}\" href=\"#\" disabled><i class=\"fa fa-magic\" aria-hidden=\"true\"> </i>Deploy</a>
\t{% else %}
\t\t<a class=\"btn btn-sm btn-default bg-success\" href=\"https://jenkins.talkabot.net\" target=\"_blank\"><i class=\"fa fa-magic\" aria-hidden=\"true\"> </i>Deploy</a>
\t\t<a class=\"btn btn-sm btn-default bg-success\" href=\"#\" onclick=\"copyToClipboard(document.getElementById('deploy_version_version_{{ object.id }}').value)\"><i class=\"fa fa-copy\" aria-hidden=\"true\"> </i> Copy Tag</a>
\t{% endif %}
\t<a class=\"btn btn-sm btn-default bg-danger\" href=\"{{ admin.generateObjectUrl('stop', object) }}\"><i class=\"fa fa-stop\" aria-hidden=\"true\"> </i>Stop</a>
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"{{ admin.generateObjectUrl('idp_generate', object) }}\" title=\"If you would like to make an existing project to use IDP, use this button.\"><i class=\"fa fa-sign-in\" aria-hidden=\"true\"> </i>IDPfy</a>
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"{{ admin.generateObjectUrl('create_resourceproxy_user', object) }}\" title=\"Create a new resourceproxy user\" data-toggle=\"modal\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>Create Resourceproxy User</a>
\t{% if object.project.type.value == \"cheq\" %}
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"#\" title=\"Register Viber Auth token (DB update and webhoor registration)!\" data-toggle=\"modal\" data-target=\"#viberTokenModal_{{ object.id }}\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>vibertoken</a>\t\t
\t{% endif %}
\t{% if object.project.type.value == \"cheq\" %}
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"#\" title=\"Create this user to permauser and create new inviteToken for it!\" data-toggle=\"modal\" data-target=\"#permaUserCreateModal_{{ object.id }}\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>PermaUser</a>\t\t
\t{% endif %}
\t{% if object.type.name == \"prod\" %}
\t\t<a class=\"btn btn-sm btn-default\" href=\"{{ admin.generateObjectUrl('debug', object) }}\" title=\"Give deploy access to Developers for 1 hour\"><i class=\"fa fa-bug\" aria-hidden=\"true\"> </i>Debug</a>
\t{% endif %}
\t
\t<!-- Modal -->
\t<div class=\"modal fade\" id=\"botidpUserCreateModal_{{ object.id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"botidpUserCreateModalLabel_{{ object.id }}\" aria-hidden=\"true\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<h5 class=\"modal-title\" id=\"botidpUserCreateModalLabel_{{ object.id }}\">Create new user in {{ object.getProject }} / {{ object.getType.getName }}</h5>
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>
\t\t\t\t\t</button>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<form>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label for=\"botidpUserCreateEmail_{{ object.id }}\">Email address</label>
\t\t\t\t\t\t\t<input type=\"email\" name='botidpUserCreateEmail_{{ object.id }}' class=\"form-control\" id=\"botidpUserCreateEmail_{{ object.id }}\" aria-describedby=\"botidpUserCreateEmailHelp\" placeholder=\"Enter email\" style=\"border: solid 2px red;\">
\t\t\t\t\t\t\t<small id=\"botidpUserCreateEmailHelp\" class=\"form-text text-muted\">The password will be sent to this e-mail address. You can add max 10 e-mail-addresses, separated by comma.</small>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label for=\"botidpUserCreateLanguage_{{ object.id }}\">Language of email</label>
\t\t\t\t\t\t\t<select name='botidpUserCreateLanguage_{{ object.id }}' class=\"form-control\" id=\"botidpUserCreateLanguage_{{ object.id }}\" aria-describedby=\"botidpUserCreateEmailHelp\">
\t\t\t\t\t\t\t\t<option value='hu_HU' selected>hu_HU</option>
\t\t\t\t\t\t\t\t<option value='en_US'>en_US</option>
\t\t\t\t\t\t\t\t<option value='nl_NL'>nl_NL</option>
\t\t\t\t\t\t\t\t<option value='pl_PL'>pl_PL</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label for=\"botidpUserCreateGroup_{{ object.id }}\">Group of user</label>
\t\t\t\t\t\t\t<select name='botidpUserCreateGroup_{{ object.id }}' class=\"form-control\" id=\"botidpUserCreateGroup_{{ object.id }}\" aria-describedby=\"botidpUserCreateGroupHelp\" multiple>
\t\t\t\t\t\t\t\t<option value='admin' selected>admin</option>
\t\t\t\t\t\t\t\t<option value='superuser'>superuser</option>
\t\t\t\t\t\t\t\t<option value='operator'>operator</option>
\t\t\t\t\t\t\t\t<option value='hr admin'>hr admin</option>
\t\t\t\t\t\t\t\t<option value='trainer'>trainer</option>
\t\t\t\t\t\t\t\t<option value='statistics'>statistics</option>
\t\t\t\t\t\t\t\t<option value='user'>user</option>
\t\t\t\t\t\t\t</select>
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-footer\">
\t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
\t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_create_botdip_user_{{ object.id }}\" href=\"#\" data-baseurl=\"{{ admin.generateObjectUrl('create_botdip_user', object, {'email': \"none\", 'language': \"en_US\", 'group': \"defaultgroup\"}) }}\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>Create User</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t\t<!-- Modal Permauser -->
\t<div class=\"modal fade\" id=\"permaUserCreateModal_{{ object.id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"permaUserCreateModalLabel_{{ object.id }}\" aria-hidden=\"true\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<h5 class=\"modal-title\" id=\"permaUserCreateModalLabel_{{ object.id }}\">Create PermaUser user in {{ object.getProject }} / {{ object.getType.getName }}</h5>
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>
\t\t\t\t\t</button>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<form>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t
\t\t\t\t\t\t\t<label for=\"altusername_{{ object.id }}\">Username</label>
\t\t\t\t\t\t\t<input type=\"text\" name='altusername_{{ object.id }}' class=\"form-control\" id=\"altusername_{{ object.id }}\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Leave empty for your user or enter another user!\" style=\"border: solid 2px red;\">
\t\t\t\t\t\t
\t\t\t\t\t\t\t<label for=\"token1_{{ object.id }}\">Invite Token 1</label>
\t\t\t\t\t\t\t<input type=\"text\" name='token1_{{ object.id }}' class=\"form-control\" id=\"token1_{{ object.id }}\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Enter Invite token 1!\" style=\"border: solid 2px red;\">
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<label for=\"token2_{{ object.id }}\">Invite Token 2</label>
\t\t\t\t\t\t\t<input type=\"text\" name='token2_{{ object.id }}' class=\"form-control\" id=\"token2_{{ object.id }}\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Enter Invite token 2!\" style=\"border: solid 2px red;\">
\t\t\t\t\t\t\t
\t\t\t\t\t\t\t<small id=\"permaUserCreateHelp\" class=\"form-text text-muted\">Please redeploy to be a permauser. Invite Tokens are available immediately!</small>
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-footer\">
\t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
\t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_create_perma_user_{{ object.id }}\" href=\"#\" data-baseurl=\"{{ admin.generateObjectUrl('create_perma_user', object, {'token1': \"none\",'token2': \"none\",'altusername': \"none\"}) }}\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>Create Permauser</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t\t\t<!-- Modal viber -->
\t<div class=\"modal fade\" id=\"viberTokenModal_{{ object.id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"viberTokenModalLabel_{{ object.id }}\" aria-hidden=\"true\">
\t\t<div class=\"modal-dialog\" role=\"document\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<h5 class=\"modal-title\" id=\"viberTokenModalLabel_{{ object.id }}\">Adding viber auth token to {{ object.getProject }} / {{ object.getType.getName }}</h5>
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
\t\t\t\t\t\t<span aria-hidden=\"true\">×</span>
\t\t\t\t\t</button>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<form>
\t\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t\t<label for=\"vibertoken_{{ object.id }}\">Viber auth token</label>
\t\t\t\t\t\t\t<input type=\"text\" name='vibertoken_{{ object.id }}' class=\"form-control\" id=\"vibertoken_{{ object.id }}\" aria-describedby=\"viberTokenHelp\" placeholder=\"Enter Viber auth token!\" style=\"border: solid 2px green;\">
\t\t\t\t\t\t\t<small id=\"viberTokenHelp\" class=\"form-text text-muted\">Enter viber auth token or leave empty, if you want to remove auth token from this CHEQ project</small>
\t\t\t\t\t\t</div>
\t\t\t\t\t</form>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-footer\">
\t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
\t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_add_viber_token_{{ object.id }}\" href=\"#\" data-baseurl=\"{{ admin.generateObjectUrl('viber_token', object, {'vibertoken': \"none\"}) }}\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\"> </i>add Viber auth token</a>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t
\t
{% else %}
\t<p class='font-italic'>Missing DB config!</p>
\t<select class=\"init_shared_db_dbserver\" data-id=\"{{ object.id }}\" id=\"init_shared_db_dbserver_{{ object.id }}\">
\t\t<option value=\"-\" readonly selected>Válassz Szervert!</option>
\t\t{% for value in admin.sharedDBServers %}
\t\t\t<option value=\"{{ value.id }}\">
\t\t\t\t{{ value.name }}
\t\t\t</option>
\t\t{% endfor %}
\t</select>
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"{{ admin.generateObjectUrl('init_rds_db', object) }}\" title=\"Init new RDS (AWS SaaS Postgres) Database!\"><i class=\"fa fa-database\" aria-hidden=\"true\"> </i>Init RDS DB</a>
\t<a class=\"btn btn-sm btn-default bg-info\" href=\"{{ admin.generateObjectUrl('init_adp_db', object) }}\" title=\"Init new ADP (Azure Database for PostgreSQL) Database!\"><i class=\"fa fa-database\" aria-hidden=\"true\"> </i>Init ADP DB</a>
\t<a class=\"btn btn-sm btn-default bg-success\" id=\"init_shared_db_button_{{ object.id }}\" data-url=\"{{ admin.generateObjectUrl('init_shared_db', object, {\"dbserver\":\"\"}) }}\" href=\"#\" disabled title=\"Init new PostgreSQL database on shared server\"><i class=\"fa fa-database\" aria-hidden=\"true\"> </i>Init shared db</a>
\t<a class=\"btn btn-sm btn-default bg-success\" id=\"init_shared_db_admin_button_{{ object.id }}\" data-url=\"{{ admin.generateObjectUrl('init_shared_db', object, {\"prefix\":\"admin\", \"dbserver\":\"\", }) }}\" href=\"#\" disabled title=\"Init new PostgreSQL database for ADMIN on shared server\"><i class=\"fa fa-database\" aria-hidden=\"true\"><i class=\"fa fa-user\" aria-hidden=\"true\"> </i></i>Init ADMIN shared db</a>
{% endif %}
{% endblock %}
{% block javascripts %}
\t{% if object.isDbSet %}
\t\t<script type=\"text/javascript\">
\t\t\tfunction copyToClipboard(text) {
\t\t\t\tvar dummy = document.createElement(\"textarea\");
\t\t\t\tdocument.body.appendChild(dummy);
\t\t\t\tdummy.value = text;
\t\t\t\tdummy.select();
\t\t\t\tdocument.execCommand(\"copy\");
\t\t\t\tdocument.body.removeChild(dummy);
\t\t\t}
\t\t\t\$( document ).ready(function() {
\t\t\t
\t\t\t\t
\t\t\t\t\$('#botidpUserCreateEmail_{{ object.id }}').keypress(function (e) {
\t\t\t\t\tif (e.which == 13) {
\t\t\t\t\t\treturn false; //<---- Add this line
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t\$(\"#botidpUserCreateLanguage_{{ object.id }}\").on(\"change\", function (e) {
\t\t\t\t\tcheckCreateUser(e);
\t\t\t\t});
\t\t\t\t\$(\"#botidpUserCreateGroup_{{ object.id }}\").on(\"change\", function (e) {
\t\t\t\t\tcheckCreateUser(e);
\t\t\t\t});
\t\t\t\t\$(\"#botidpUserCreateEmail_{{ object.id }}\").keyup(function (e) {
\t\t\t\t\tcheckCreateUser(e);
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$('#token1_{{ object.id }}').keypress(function (e) {
\t\t\t\t\tif (e.which == 13) {
\t\t\t\t\t\treturn false; //<---- Add this line
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t\t\t\t\t
\t\t\t\t\$('#token2_{{ object.id }}').keypress(function (e) {
\t\t\t\t\tif (e.which == 13) {
\t\t\t\t\t\treturn false; //<---- Add this line
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$(\"#token1_{{ object.id }}\").keyup(function (e) {
\t\t\t\t\tcheckCreatePermaUser(e);
\t\t\t\t});
\t\t\t\t\$(\"#token2_{{ object.id }}\").keyup(function (e) {
\t\t\t\t\tcheckCreatePermaUser(e);
\t\t\t\t});
\t\t\t\t
\t\t\t\t\$('#vibertoken_{{ object.id }}').keypress(function (e) {
\t\t\t\t\tif (e.which == 13) {
\t\t\t\t\t\treturn false; //<---- Add this line
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\t\$(\"#vibertoken_{{ object.id }}\").keyup(function (e) {
\t\t\t\t\taddViberToken();
\t\t\t\t});
\t\t\t\t
\t\t\t\tfunction checkCreateUser(e) {
\t\t\t\t\tif(\$(\"#botidpUserCreateEmail_{{ object.id }}\").val() == \"\") {
\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_{{ object.id }}\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\$(\"#button_create_botdip_user_{{ object.id }}\").attr(\"href\", \"#\");
\t\t\t\t\t} else {
\t\t\t\t\t\tvar re = /^(([^<>()[\\]\\\\.,;:\\s@\\\"]+(\\.[^<>()[\\]\\\\.,;:\\s@\\\"]+)*)|(\\\".+\\\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))\$/;
\t\t\t\t\t\tvar validEmails = true;
\t\t\t\t\t\tvar emailSplit = \$(\"#botidpUserCreateEmail_{{ object.id }}\").val().split(\",\");
\t\t\t\t\t\t
\t\t\t\t\t\t\$.each( emailSplit, function( index, value ) {
\t\t\t\t\t\t\tconsole.log(value);
\t\t\t\t\t\t\tif(re.test(value.trim())) {
\t\t\t\t\t\t\t\treturn;
\t\t\t\t\t\t\t} else {
\t\t\t\t\t\t\t\tvalidEmails = false;
\t\t\t\t\t\t\t}
\t\t\t\t\t\t});
\t\t\t\t\t\tif(!validEmails) {
\t\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_{{ object.id }}\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\t\$(\"#button_create_botdip_user_{{ object.id }}\").attr(\"href\", \"#\");
\t\t\t\t\t\t} else {
\t\t\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_{{ object.id }}\").css(\"border\", \"solid 2px green\");
\t\t\t\t\t\t\t\tbaseurl = \$(\"#button_create_botdip_user_{{ object.id }}\").attr(\"data-baseurl\");
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#botidpUserCr7eateEmail_{{ object.id }}\").val());
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"en_US\", \$(\"#botidpUserCreateLanguage_{{ object.id }}\").val());
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"defaultgroup\", \$(\"#botidpUserCreateGroup_{{ object.id }}\").val());
\t\t\t\t\t\t\t\t\$(\"#button_create_botdip_user_{{ object.id }}\").attr(\"href\", baseurl);
\t\t\t\t\t\t}
\t\t\t\t\t}
\t\t\t\t};
\t\t\t\t
\t\t\t\tfunction checkCreatePermaUser(e) {
\t\t\t
\t\t\t\t\tif(\$(\"#token1_{{ object.id }}\").val() == \"\" || \$(\"#token2_{{ object.id }}\").val() == \"\" ) {
\t\t\t\t\t\t\$(\"#token1_{{ object.id }}\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\$(\"#token2_{{ object.id }}\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\$(\"#button_create_perma_user_{{ object.id }}\").attr(\"href\", \"#\");
\t\t\t\t\t} else {
\t\t\t\t\t\t\t
\t\t\t\t\t\tif(\$(\"#token1_{{ object.id }}\").val().length >4 && \$(\"#token2_{{ object.id }}\").val().length >4 ) {
\t\t\t\t\t\t\t\t\$(\"#token1_{{ object.id }}\").css(\"border\", \"solid 2px green\");
\t\t\t\t\t\t\t\t\$(\"#token2_{{ object.id }}\").css(\"border\", \"solid 2px green\");
\t\t\t\t\t\t\t\t\$(\"#altusername_{{ object.id }}\").css(\"border\", \"solid 2px green\");
\t\t\t\t\t\t\t\tbaseurl = \$(\"#button_create_perma_user_{{ object.id }}\").attr(\"data-baseurl\");
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#token1_{{ object.id }}\").val());
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#token2_{{ object.id }}\").val());
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#altusername_{{ object.id }}\").val());
\t\t\t\t\t\t\t\t\$(\"#button_create_perma_user_{{ object.id }}\").attr(\"href\", baseurl);\t\t\t\t\t\t
\t\t\t\t\t\t} else {
\t\t\t\t\t\t\t\t\$(\"#token1_{{ object.id }}\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\t\t\$(\"#token2_{{ object.id }}\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\t\t\$(\"#altusername_{{ object.id }}\").css(\"border\", \"solid 2px red\");
\t\t\t\t\t\t\t \$(\"#button_create_perma_user_{{ object.id }}\").attr(\"href\", \"#\");
\t
\t\t\t\t\t\t}
\t\t\t\t }
\t\t\t\t\t};
\t\t\t\t
\t\t\t\t function addViberToken(e) {
\t\t\t
\t\t\t\t\t\$(\"#vibertoken_{{ object.id }}\").css(\"border\", \"solid 2px green\");\t
\t\t\t\t\t\$(\"#button_add_viber_token_{{ object.id }}\").attr(\"href\", \"#\");
\t\t\t\t\tconsole.log(\"Viberbuli\");
\t\t\t\t\t
\t\t\t\t\t\t\t\tbaseurl = \$(\"#button_add_viber_token_{{ object.id }}\").attr(\"data-baseurl\");
\t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#vibertoken_{{ object.id }}\").val());
\t\t\t\t\t\t\t\t\$(\"#button_add_viber_token_{{ object.id }}\").attr(\"href\", baseurl);\t\t\t\t\t\t
\t\t\t\t
\t\t\t\t\t};
\t\t\t\t
\t\t
\t\t\t\t\$(\"#deploy_version_version_{{ object.id }}\").change(function() {
\t\t\t\t\tif(\$(this).val() != \"-\") {
\t\t\t\t\t\tbutton = \$(\"#deploy_version_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\turl = button.attr(\"data-url\");
\t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
\t\t\t\t\t\tbutton.removeAttr(\"disabled\");
\t\t\t\t\t} else {
\t\t\t\t\t\tbutton = \$(\"#deploy_version_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\tbutton.attr(\"href\", \"#\");
\t\t\t\t\t\tbutton.attr(\"disabled\", true);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\tif(\$(\"#deploy_version_version_{{ object.id }}\").val() != \"-\") {
\t\t\t\t\t\$(\"#deploy_version_version_{{ object.id }}\").trigger(\"change\");
\t\t\t\t}
\t\t\t\t\$(\".deploy_version_version\").select2({
\t\t\t\t\tescapeMarkup: function(m) {
\t\t\t\t\t\treturn m.replace(/\\[color\\=([a-z\\-]+)\\](.*)\\[\\/color\\]/gi, '<span style=\\'color:\$1;\\'>\$2</span>');
\t\t\t\t\t}
\t\t\t\t});
\t\t\t});
\t\t</script>
\t{% else %}
\t\t<script type=\"text/javascript\">
\t\t\t\$( document ).ready(function() {
\t\t\t\t\$(\"#init_shared_db_dbserver_{{ object.id }}\").change(function() {
\t\t\t\t\tif(\$(this).val() != \"-\") {
\t\t\t\t\t\tbutton = \$(\"#init_shared_db_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\turl = button.attr(\"data-url\");
\t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
\t\t\t\t\t\tbutton.removeAttr(\"disabled\");
\t\t\t\t\t\tbutton = \$(\"#init_shared_db_admin_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\turl = button.attr(\"data-url\");
\t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
\t\t\t\t\t\tbutton.removeAttr(\"disabled\");
\t\t\t\t\t} else {
\t\t\t\t\t\tbutton = \$(\"#init_shared_db_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\tbutton.attr(\"href\", \"#\");
\t\t\t\t\t\tbutton.attr(\"disabled\", true);
\t\t\t\t\t\tbutton = \$(\"#init_shared_db_admin_button_\"+\$(this).attr(\"data-id\"));
\t\t\t\t\t\tbutton.attr(\"href\", \"#\");
\t\t\t\t\t\tbutton.attr(\"disabled\", true);
\t\t\t\t\t}
\t\t\t\t});
\t\t\t\tif(\$(\"#init_shared_db_dbserver_{{ object.id }}\").val() != \"-\") {
\t\t\t\t\t\$(\"#init_shared_db_dbserver_{{ object.id }}\").trigger(\"change\");
\t\t\t\t}
\t\t\t});
\t\t</script>
\t{% endif %}
{% endblock %}", "CRUD\\list__action_deploy.html.twig", "/var/www/test-dashboard.talkabot.net/public_html/dashboard/templates/CRUD/list__action_deploy.html.twig");
}
}