var/cache/dev/twig/92/92b3d8b3b0a31dac6abd368d9e6d8d93b7c526a43c11b79dac08627ef2efed1a.php line 45

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* CRUD\list__action_deploy.html.twig */
  14. class __TwigTemplate_adeecef4136dcae561e2a6873115b3b6acee84f8c4f028ad4d827c830e71ea8e extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.             'field' => [$this'block_field'],
  25.             'javascripts' => [$this'block_javascripts'],
  26.         ];
  27.     }
  28.     protected function doDisplay(array $context, array $blocks = [])
  29.     {
  30.         $macros $this->macros;
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  32.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CRUD\\list__action_deploy.html.twig"));
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  34.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""CRUD\\list__action_deploy.html.twig"));
  35.         // line 1
  36.         $this->displayBlock('field'$context$blocks);
  37.         // line 200
  38.         echo "
  39. ";
  40.         // line 201
  41.         $this->displayBlock('javascripts'$context$blocks);
  42.         
  43.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  44.         
  45.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  46.     }
  47.     // line 1
  48.     public function block_field($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""field"));
  53.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""field"));
  55.         // line 2
  56.         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"falsefalsefalse2)) {
  57.             // line 3
  58.             echo "\t<select class=\"deploy_version_version\" data-id=\"";
  59.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse3), "html"nulltrue);
  60.             echo "\" id=\"deploy_version_version_";
  61.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse3), "html"nulltrue);
  62.             echo "\">
  63. \t\t<option value=\"-\" readonly selected>Válassz verziót!</option>
  64. \t\t<optgroup label=\"Project images\">
  65. \t\t\t";
  66.             // line 6
  67.             $context['_parent'] = $context;
  68.             $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse6), "getDeployTags", [], "any"falsefalsefalse6));
  69.             foreach ($context['_seq'] as $context["_key"] => $context["deployTag"]) {
  70.                 // line 7
  71.                 echo "\t\t\t\t<option title=\"";
  72.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["deployTag"], "name", [], "any"falsefalsefalse7), "html"nulltrue);
  73.                 echo "\" value=\"";
  74.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["deployTag"], "name", [], "any"falsefalsefalse7), "html"nulltrue);
  75.                 echo "\">
  76. \t\t\t\t\t";
  77.                 // line 8
  78.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["deployTag"], "name", [], "any"falsefalsefalse8), "html"nulltrue);
  79.                 echo "
  80. \t\t\t\t\t";
  81.                 // line 9
  82.                 if ((!== twig_compare(twig_get_attribute($this->env$this->source$context["deployTag"], "environment", [], "any"falsefalsefalse9), ""))) {
  83.                     // line 10
  84.                     echo "\t\t\t\t\t\t(#";
  85.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "environment", [], "any"falsefalsefalse10), "id", [], "any"falsefalsefalse10), "html"nulltrue);
  86.                     echo ": ";
  87.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "environment", [], "any"falsefalsefalse10), "project", [], "any"falsefalsefalse10), "name", [], "any"falsefalsefalse10), "html"nulltrue);
  88.                     echo "/";
  89.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "environment", [], "any"falsefalsefalse10), "type", [], "any"falsefalsefalse10), "name", [], "any"falsefalsefalse10), "html"nulltrue);
  90.                     echo ")
  91. \t\t\t\t\t";
  92.                 }
  93.                 // line 12
  94.                 echo "\t\t\t\t\t";
  95.                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["deployTag"], "labels", [], "any"falsefalsefalse12))) {
  96.                     // line 13
  97.                     echo "\t\t\t\t\t\t[";
  98.                     $context['_parent'] = $context;
  99.                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["deployTag"], "getLabels", [], "any"falsefalsefalse13));
  100.                     foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
  101.                         // line 14
  102.                         echo "\t\t\t\t\t\t\t[color=";
  103.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["label"], "GetParamsDecoded", [], "method"falsefalsefalse14), "color", [], "array"falsefalsefalse14), "html"nulltrue);
  104.                         echo "]";
  105.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["label"], "value", [], "any"falsefalsefalse14), "html"nulltrue);
  106.                         echo "[/color]
  107. \t\t\t\t\t\t";
  108.                     }
  109.                     $_parent $context['_parent'];
  110.                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
  111.                     $context array_intersect_key($context$_parent) + $_parent;
  112.                     // line 15
  113.                     echo "]
  114. \t\t\t\t\t";
  115.                 }
  116.                 // line 17
  117.                 echo "\t\t\t\t\t";
  118.                 if ((!== twig_compare(twig_get_attribute($this->env$this->source$context["deployTag"], "note", [], "any"falsefalsefalse17), ""))) {
  119.                     // line 18
  120.                     echo "\t\t\t\t\t\t(";
  121.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["deployTag"], "note", [], "any"falsefalsefalse18), "html"nulltrue);
  122.                     echo ")
  123. \t\t\t\t\t";
  124.                 }
  125.                 // line 20
  126.                 echo "
  127. \t\t\t\t</option>
  128. \t\t\t";
  129.             }
  130.             $_parent $context['_parent'];
  131.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['deployTag'], $context['_parent'], $context['loop']);
  132.             $context array_intersect_key($context$_parent) + $_parent;
  133.             // line 23
  134.             echo "\t\t</optgroup>
  135. \t\t";
  136.             // line 24
  137.             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"falsefalsefalse24))) {
  138.                 // line 25
  139.                 echo "\t\t\t";
  140.                 $context['_parent'] = $context;
  141.                 $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"falsefalsefalse25));
  142.                 foreach ($context['_seq'] as $context["projectType"] => $context["deployTags"]) {
  143.                     // line 26
  144.                     echo "\t\t\t\t";
  145.                     if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse26), "type", [], "any"falsefalsefalse26), "value", [], "any"falsefalsefalse26), $context["projectType"]))) {
  146.                         // line 27
  147.                         echo "\t\t\t\t\t";
  148.                         $context['_parent'] = $context;
  149.                         $context['_seq'] = twig_ensure_traversable($context["deployTags"]);
  150.                         foreach ($context['_seq'] as $context["projectTypeName"] => $context["sharedDeployTag"]) {
  151.                             // line 28
  152.                             echo "\t\t\t\t\t\t<optgroup label=\"";
  153.                             echo twig_escape_filter($this->env$context["projectTypeName"], "html"nulltrue);
  154.                             echo " shared images\">
  155. \t\t\t\t\t\t\t";
  156.                             // line 29
  157.                             $context['_parent'] = $context;
  158.                             $context['_seq'] = twig_ensure_traversable($context["sharedDeployTag"]);
  159.                             foreach ($context['_seq'] as $context["_key"] => $context["deployTag"]) {
  160.                                 // line 30
  161.                                 echo "\t\t\t\t\t\t\t\t<option title=\"";
  162.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "project", [], "any"falsefalsefalse30), "botname", [], "any"falsefalsefalse30), "html"nulltrue);
  163.                                 echo ":";
  164.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["deployTag"], "name", [], "any"falsefalsefalse30), "html"nulltrue);
  165.                                 echo "\" value=\"";
  166.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "project", [], "any"falsefalsefalse30), "botname", [], "any"falsefalsefalse30), "html"nulltrue);
  167.                                 echo ":";
  168.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["deployTag"], "name", [], "any"falsefalsefalse30), "html"nulltrue);
  169.                                 echo "\">
  170. \t\t\t\t\t\t\t\t\t";
  171.                                 // line 31
  172.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "project", [], "any"falsefalsefalse31), "botname", [], "any"falsefalsefalse31), "html"nulltrue);
  173.                                 echo ":";
  174.                                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["deployTag"], "name", [], "any"falsefalsefalse31), "html"nulltrue);
  175.                                 echo "
  176. \t\t\t\t\t\t\t\t\t";
  177.                                 // line 32
  178.                                 if ((!== twig_compare(twig_get_attribute($this->env$this->source$context["deployTag"], "environment", [], "any"falsefalsefalse32), ""))) {
  179.                                     // line 33
  180.                                     echo "\t\t\t\t\t\t\t\t\t\t(#";
  181.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "environment", [], "any"falsefalsefalse33), "id", [], "any"falsefalsefalse33), "html"nulltrue);
  182.                                     echo ": ";
  183.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "environment", [], "any"falsefalsefalse33), "project", [], "any"falsefalsefalse33), "name", [], "any"falsefalsefalse33), "html"nulltrue);
  184.                                     echo "/";
  185.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["deployTag"], "environment", [], "any"falsefalsefalse33), "type", [], "any"falsefalsefalse33), "name", [], "any"falsefalsefalse33), "html"nulltrue);
  186.                                     echo ")
  187. \t\t\t\t\t\t\t\t\t";
  188.                                 }
  189.                                 // line 35
  190.                                 echo "\t\t\t\t\t\t\t\t\t";
  191.                                 if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["deployTag"], "labels", [], "any"falsefalsefalse35))) {
  192.                                     // line 36
  193.                                     echo "\t\t\t\t\t\t\t\t\t\t[";
  194.                                     $context['_parent'] = $context;
  195.                                     $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["deployTag"], "getLabels", [], "any"falsefalsefalse36));
  196.                                     foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
  197.                                         // line 37
  198.                                         echo "\t\t\t\t\t\t\t\t\t\t\t[color=";
  199.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["label"], "GetParamsDecoded", [], "method"falsefalsefalse37), "color", [], "array"falsefalsefalse37), "html"nulltrue);
  200.                                         echo "]";
  201.                                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["label"], "value", [], "any"falsefalsefalse37), "html"nulltrue);
  202.                                         echo "[/color]
  203. \t\t\t\t\t\t\t\t\t\t";
  204.                                     }
  205.                                     $_parent $context['_parent'];
  206.                                     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
  207.                                     $context array_intersect_key($context$_parent) + $_parent;
  208.                                     // line 38
  209.                                     echo "]
  210. \t\t\t\t\t\t\t\t\t";
  211.                                 }
  212.                                 // line 40
  213.                                 echo "\t\t\t\t\t\t\t\t\t";
  214.                                 if ((!== twig_compare(twig_get_attribute($this->env$this->source$context["deployTag"], "note", [], "any"falsefalsefalse40), ""))) {
  215.                                     // line 41
  216.                                     echo "\t\t\t\t\t\t\t\t\t\t(";
  217.                                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["deployTag"], "note", [], "any"falsefalsefalse41), "html"nulltrue);
  218.                                     echo ")
  219. \t\t\t\t\t\t\t\t\t";
  220.                                 }
  221.                                 // line 43
  222.                                 echo "\t\t\t\t\t\t\t\t</option>
  223. \t\t\t\t\t\t\t";
  224.                             }
  225.                             $_parent $context['_parent'];
  226.                             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['deployTag'], $context['_parent'], $context['loop']);
  227.                             $context array_intersect_key($context$_parent) + $_parent;
  228.                             // line 45
  229.                             echo "\t\t\t\t\t\t</optgroup>
  230. \t\t\t\t\t";
  231.                         }
  232.                         $_parent $context['_parent'];
  233.                         unset($context['_seq'], $context['_iterated'], $context['projectTypeName'], $context['sharedDeployTag'], $context['_parent'], $context['loop']);
  234.                         $context array_intersect_key($context$_parent) + $_parent;
  235.                         // line 47
  236.                         echo "\t\t\t\t";
  237.                     }
  238.                     // line 48
  239.                     echo "\t\t\t";
  240.                 }
  241.                 $_parent $context['_parent'];
  242.                 unset($context['_seq'], $context['_iterated'], $context['projectType'], $context['deployTags'], $context['_parent'], $context['loop']);
  243.                 $context array_intersect_key($context$_parent) + $_parent;
  244.                 // line 49
  245.                 echo "\t\t";
  246.             }
  247.             // line 50
  248.             echo "\t</select>
  249. \t";
  250.             // line 51
  251.             if ((!== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse51), "type", [], "any"falsefalsefalse51), "value", [], "any"falsefalsefalse51), "phoenix"))) {
  252.                 // line 52
  253.                 echo "\t\t<a class=\"btn btn-sm btn-default bg-success\" id=\"deploy_version_button_";
  254.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse52), "html"nulltrue);
  255.                 echo "\" data-url=\"";
  256.                 echo twig_escape_filter($this->envtwig_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", [=> "deploy"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'52$this->source); })()), => ["version" => ""]], "method"falsefalsefalse52), "html"nulltrue);
  257.                 echo "\" href=\"#\" disabled><i class=\"fa fa-magic\" aria-hidden=\"true\">&nbsp;</i>Deploy</a>
  258. \t";
  259.             } else {
  260.                 // line 54
  261.                 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\">&nbsp;</i>Deploy</a>
  262. \t\t<a class=\"btn btn-sm btn-default bg-success\" href=\"#\" onclick=\"copyToClipboard(document.getElementById('deploy_version_version_";
  263.                 // line 55
  264.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse55), "html"nulltrue);
  265.                 echo "').value)\"><i class=\"fa fa-copy\" aria-hidden=\"true\">&nbsp;</i> Copy Tag</a>
  266. \t";
  267.             }
  268.             // line 57
  269.             echo "\t<a class=\"btn btn-sm btn-default bg-danger\" href=\"";
  270.             echo twig_escape_filter($this->envtwig_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", [=> "stop"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'57$this->source); })())], "method"falsefalsefalse57), "html"nulltrue);
  271.             echo "\"><i class=\"fa fa-stop\" aria-hidden=\"true\">&nbsp;</i>Stop</a>
  272. \t<a class=\"btn btn-sm btn-default bg-info\" href=\"";
  273.             // line 58
  274.             echo twig_escape_filter($this->envtwig_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", [=> "idp_generate"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'58$this->source); })())], "method"falsefalsefalse58), "html"nulltrue);
  275.             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\">&nbsp;</i>IDPfy</a>
  276. \t<a class=\"btn btn-sm btn-default bg-info\" href=\"";
  277.             // line 59
  278.             echo twig_escape_filter($this->envtwig_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", [=> "create_resourceproxy_user"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'59$this->source); })())], "method"falsefalsefalse59), "html"nulltrue);
  279.             echo "\" title=\"Create a new resourceproxy user\" data-toggle=\"modal\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\">&nbsp;</i>Create Resourceproxy User</a>
  280. \t";
  281.             // line 60
  282.             if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse60), "type", [], "any"falsefalsefalse60), "value", [], "any"falsefalsefalse60), "cheq"))) {
  283.                 // line 61
  284.                 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_";
  285.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse61), "html"nulltrue);
  286.                 echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\">&nbsp;</i>vibertoken</a>\t\t
  287. \t";
  288.             }
  289.             // line 63
  290.             echo "\t";
  291.             if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse63), "type", [], "any"falsefalsefalse63), "value", [], "any"falsefalsefalse63), "cheq"))) {
  292.                 // line 64
  293.                 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_";
  294.                 echo twig_escape_filter($this->envtwig_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"falsefalsefalse64), "html"nulltrue);
  295.                 echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\">&nbsp;</i>PermaUser</a>\t\t
  296. \t";
  297.             }
  298.             // line 66
  299.             echo "\t";
  300.             if ((=== twig_compare(twig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse66), "name", [], "any"falsefalsefalse66), "prod"))) {
  301.                 // line 67
  302.                 echo "\t\t<a class=\"btn btn-sm btn-default\" href=\"";
  303.                 echo twig_escape_filter($this->envtwig_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", [=> "debug"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'67$this->source); })())], "method"falsefalsefalse67), "html"nulltrue);
  304.                 echo "\" title=\"Give deploy access to Developers for 1 hour\"><i class=\"fa fa-bug\" aria-hidden=\"true\">&nbsp;</i>Debug</a>
  305. \t";
  306.             }
  307.             // line 69
  308.             echo "\t
  309. \t<!-- Modal -->
  310. \t<div class=\"modal fade\" id=\"botidpUserCreateModal_";
  311.             // line 72
  312.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse72), "html"nulltrue);
  313.             echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"botidpUserCreateModalLabel_";
  314.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse72), "html"nulltrue);
  315.             echo "\" aria-hidden=\"true\">
  316. \t\t<div class=\"modal-dialog\" role=\"document\">
  317. \t\t\t<div class=\"modal-content\">
  318. \t\t\t\t<div class=\"modal-header\">
  319. \t\t\t\t\t<h5 class=\"modal-title\" id=\"botidpUserCreateModalLabel_";
  320.             // line 76
  321.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse76), "html"nulltrue);
  322.             echo "\">Create new user in ";
  323.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse76), "html"nulltrue);
  324.             echo " / ";
  325.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse76), "getName", [], "any"falsefalsefalse76), "html"nulltrue);
  326.             echo "</h5>
  327. \t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  328. \t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>
  329. \t\t\t\t\t</button>
  330. \t\t\t\t</div>
  331. \t\t\t\t<div class=\"modal-body\">
  332. \t\t\t\t\t<form>
  333. \t\t\t\t\t\t<div class=\"form-group\">
  334. \t\t\t\t\t\t\t<label for=\"botidpUserCreateEmail_";
  335.             // line 84
  336.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse84), "html"nulltrue);
  337.             echo "\">Email address</label>
  338. \t\t\t\t\t\t\t<input type=\"email\" name='botidpUserCreateEmail_";
  339.             // line 85
  340.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse85), "html"nulltrue);
  341.             echo "' class=\"form-control\" id=\"botidpUserCreateEmail_";
  342.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse85), "html"nulltrue);
  343.             echo "\" aria-describedby=\"botidpUserCreateEmailHelp\" placeholder=\"Enter email\" style=\"border: solid 2px red;\">
  344. \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>
  345. \t\t\t\t\t\t</div>
  346. \t\t\t\t\t\t<div class=\"form-group\">
  347. \t\t\t\t\t\t\t<label for=\"botidpUserCreateLanguage_";
  348.             // line 89
  349.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse89), "html"nulltrue);
  350.             echo "\">Language of email</label>
  351. \t\t\t\t\t\t\t<select name='botidpUserCreateLanguage_";
  352.             // line 90
  353.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse90), "html"nulltrue);
  354.             echo "' class=\"form-control\" id=\"botidpUserCreateLanguage_";
  355.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse90), "html"nulltrue);
  356.             echo "\" aria-describedby=\"botidpUserCreateEmailHelp\">
  357. \t\t\t\t\t\t\t\t<option value='hu_HU' selected>hu_HU</option>
  358. \t\t\t\t\t\t\t\t<option value='en_US'>en_US</option>
  359. \t\t\t\t\t\t\t\t<option value='nl_NL'>nl_NL</option>
  360. \t\t\t\t\t\t\t\t<option value='pl_PL'>pl_PL</option>
  361. \t\t\t\t\t\t\t</select>
  362. \t\t\t\t\t\t</div>
  363. \t\t\t\t\t\t<div class=\"form-group\">
  364. \t\t\t\t\t\t\t<label for=\"botidpUserCreateGroup_";
  365.             // line 98
  366.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse98), "html"nulltrue);
  367.             echo "\">Group of user</label>
  368. \t\t\t\t\t\t\t<select name='botidpUserCreateGroup_";
  369.             // line 99
  370.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse99), "html"nulltrue);
  371.             echo "' class=\"form-control\" id=\"botidpUserCreateGroup_";
  372.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse99), "html"nulltrue);
  373.             echo "\" aria-describedby=\"botidpUserCreateGroupHelp\" multiple>
  374. \t\t\t\t\t\t\t\t<option value='admin' selected>admin</option>
  375. \t\t\t\t\t\t\t\t<option value='superuser'>superuser</option>
  376. \t\t\t\t\t\t\t\t<option value='operator'>operator</option>
  377. \t\t\t\t\t\t\t\t<option value='hr admin'>hr admin</option>
  378. \t\t\t\t\t\t\t\t<option value='trainer'>trainer</option>
  379. \t\t\t\t\t\t\t\t<option value='statistics'>statistics</option>
  380. \t\t\t\t\t\t\t\t<option value='user'>user</option>
  381. \t\t\t\t\t\t\t</select>
  382. \t\t\t\t\t\t</div>
  383. \t\t\t\t\t</form>
  384. \t\t\t\t</div>
  385. \t\t\t\t<div class=\"modal-footer\">
  386. \t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  387. \t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_create_botdip_user_";
  388.             // line 113
  389.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse113), "html"nulltrue);
  390.             echo "\" href=\"#\" data-baseurl=\"";
  391.             echo twig_escape_filter($this->envtwig_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", [=> "create_botdip_user"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'113$this->source); })()), => ["email" => "none""language" => "en_US""group" => "defaultgroup"]], "method"falsefalsefalse113), "html"nulltrue);
  392.             echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\">&nbsp;</i>Create User</a>
  393. \t\t\t\t</div>
  394. \t\t\t</div>
  395. \t\t</div>
  396. \t</div>
  397. \t
  398. \t\t<!-- Modal Permauser -->
  399. \t<div class=\"modal fade\" id=\"permaUserCreateModal_";
  400.             // line 120
  401.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse120), "html"nulltrue);
  402.             echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"permaUserCreateModalLabel_";
  403.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse120), "html"nulltrue);
  404.             echo "\" aria-hidden=\"true\">
  405. \t\t<div class=\"modal-dialog\" role=\"document\">
  406. \t\t\t<div class=\"modal-content\">
  407. \t\t\t\t<div class=\"modal-header\">
  408. \t\t\t\t\t<h5 class=\"modal-title\" id=\"permaUserCreateModalLabel_";
  409.             // line 124
  410.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse124), "html"nulltrue);
  411.             echo "\">Create PermaUser user in ";
  412.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse124), "html"nulltrue);
  413.             echo " / ";
  414.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse124), "getName", [], "any"falsefalsefalse124), "html"nulltrue);
  415.             echo "</h5>
  416. \t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  417. \t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>
  418. \t\t\t\t\t</button>
  419. \t\t\t\t</div>
  420. \t\t\t\t<div class=\"modal-body\">
  421. \t\t\t\t\t<form>
  422. \t\t\t\t\t\t<div class=\"form-group\">
  423. \t\t\t\t\t\t
  424. \t\t\t\t\t\t\t<label for=\"altusername_";
  425.             // line 133
  426.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse133), "html"nulltrue);
  427.             echo "\">Username</label>
  428. \t\t\t\t\t\t\t<input type=\"text\" name='altusername_";
  429.             // line 134
  430.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse134), "html"nulltrue);
  431.             echo "' class=\"form-control\" id=\"altusername_";
  432.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse134), "html"nulltrue);
  433.             echo "\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Leave empty for your user or enter another user!\" style=\"border: solid 2px red;\">
  434. \t\t\t\t\t\t
  435. \t\t\t\t\t\t\t<label for=\"token1_";
  436.             // line 136
  437.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse136), "html"nulltrue);
  438.             echo "\">Invite Token 1</label>
  439. \t\t\t\t\t\t\t<input type=\"text\" name='token1_";
  440.             // line 137
  441.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse137), "html"nulltrue);
  442.             echo "' class=\"form-control\" id=\"token1_";
  443.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse137), "html"nulltrue);
  444.             echo "\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Enter Invite token 1!\" style=\"border: solid 2px red;\">
  445. \t\t\t\t\t\t\t
  446. \t\t\t\t\t\t\t<label for=\"token2_";
  447.             // line 139
  448.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse139), "html"nulltrue);
  449.             echo "\">Invite Token 2</label>
  450. \t\t\t\t\t\t\t<input type=\"text\" name='token2_";
  451.             // line 140
  452.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse140), "html"nulltrue);
  453.             echo "' class=\"form-control\" id=\"token2_";
  454.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse140), "html"nulltrue);
  455.             echo "\" aria-describedby=\"permaUserCreateHelp\" placeholder=\"Enter Invite token 2!\" style=\"border: solid 2px red;\">
  456. \t\t\t\t\t\t\t
  457. \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>
  458. \t\t\t\t\t\t</div>
  459. \t\t\t\t\t</form>
  460. \t\t\t\t</div>
  461. \t\t\t\t<div class=\"modal-footer\">
  462. \t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  463. \t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_create_perma_user_";
  464.             // line 148
  465.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse148), "html"nulltrue);
  466.             echo "\" href=\"#\" data-baseurl=\"";
  467.             echo twig_escape_filter($this->envtwig_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", [=> "create_perma_user"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'148$this->source); })()), => ["token1" => "none""token2" => "none""altusername" => "none"]], "method"falsefalsefalse148), "html"nulltrue);
  468.             echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\">&nbsp;</i>Create Permauser</a>
  469. \t\t\t\t</div>
  470. \t\t\t</div>
  471. \t\t</div>
  472. \t</div>
  473. \t
  474. \t\t\t<!-- Modal viber -->
  475. \t<div class=\"modal fade\" id=\"viberTokenModal_";
  476.             // line 155
  477.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse155), "html"nulltrue);
  478.             echo "\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"viberTokenModalLabel_";
  479.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse155), "html"nulltrue);
  480.             echo "\" aria-hidden=\"true\">
  481. \t\t<div class=\"modal-dialog\" role=\"document\">
  482. \t\t\t<div class=\"modal-content\">
  483. \t\t\t\t<div class=\"modal-header\">
  484. \t\t\t\t\t<h5 class=\"modal-title\" id=\"viberTokenModalLabel_";
  485.             // line 159
  486.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse159), "html"nulltrue);
  487.             echo "\">Adding viber auth token to ";
  488.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse159), "html"nulltrue);
  489.             echo " / ";
  490.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_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"falsefalsefalse159), "getName", [], "any"falsefalsefalse159), "html"nulltrue);
  491.             echo "</h5>
  492. \t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  493. \t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>
  494. \t\t\t\t\t</button>
  495. \t\t\t\t</div>
  496. \t\t\t\t<div class=\"modal-body\">
  497. \t\t\t\t\t<form>
  498. \t\t\t\t\t\t<div class=\"form-group\">
  499. \t\t\t\t\t\t\t<label for=\"vibertoken_";
  500.             // line 167
  501.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse167), "html"nulltrue);
  502.             echo "\">Viber auth token</label>
  503. \t\t\t\t\t\t\t<input type=\"text\" name='vibertoken_";
  504.             // line 168
  505.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse168), "html"nulltrue);
  506.             echo "' class=\"form-control\" id=\"vibertoken_";
  507.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse168), "html"nulltrue);
  508.             echo "\" aria-describedby=\"viberTokenHelp\" placeholder=\"Enter Viber auth token!\" style=\"border: solid 2px green;\">
  509. \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>
  510. \t\t\t\t\t\t</div>
  511. \t\t\t\t\t</form>
  512. \t\t\t\t</div>
  513. \t\t\t\t<div class=\"modal-footer\">
  514. \t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  515. \t\t\t\t\t<a class=\"btn btn-sm btn-default bg-info\" id=\"button_add_viber_token_";
  516.             // line 175
  517.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse175), "html"nulltrue);
  518.             echo "\" href=\"#\" data-baseurl=\"";
  519.             echo twig_escape_filter($this->envtwig_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", [=> "viber_token"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'175$this->source); })()), => ["vibertoken" => "none"]], "method"falsefalsefalse175), "html"nulltrue);
  520.             echo "\"><i class=\"fa fa-user-plus\" aria-hidden=\"true\">&nbsp;</i>add Viber auth token</a>
  521. \t\t\t\t</div>
  522. \t\t\t</div>
  523. \t\t</div>
  524. \t</div>
  525. \t
  526. \t
  527. ";
  528.         } else {
  529.             // line 183
  530.             echo "\t<p class='font-italic'>Missing DB config!</p>
  531. \t<select class=\"init_shared_db_dbserver\" data-id=\"";
  532.             // line 184
  533.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse184), "html"nulltrue);
  534.             echo "\" id=\"init_shared_db_dbserver_";
  535.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse184), "html"nulltrue);
  536.             echo "\">
  537. \t\t<option value=\"-\" readonly selected>Válassz Szervert!</option>
  538. \t\t";
  539.             // line 186
  540.             $context['_parent'] = $context;
  541.             $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"falsefalsefalse186));
  542.             foreach ($context['_seq'] as $context["_key"] => $context["value"]) {
  543.                 // line 187
  544.                 echo "\t\t\t<option value=\"";
  545.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["value"], "id", [], "any"falsefalsefalse187), "html"nulltrue);
  546.                 echo "\">
  547. \t\t\t\t";
  548.                 // line 188
  549.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["value"], "name", [], "any"falsefalsefalse188), "html"nulltrue);
  550.                 echo "
  551. \t\t\t</option>
  552. \t\t";
  553.             }
  554.             $_parent $context['_parent'];
  555.             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['value'], $context['_parent'], $context['loop']);
  556.             $context array_intersect_key($context$_parent) + $_parent;
  557.             // line 191
  558.             echo "\t</select>
  559. \t<a class=\"btn btn-sm btn-default bg-info\" href=\"";
  560.             // line 192
  561.             echo twig_escape_filter($this->envtwig_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", [=> "init_rds_db"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'192$this->source); })())], "method"falsefalsefalse192), "html"nulltrue);
  562.             echo "\" title=\"Init new RDS (AWS SaaS Postgres) Database!\"><i class=\"fa fa-database\" aria-hidden=\"true\">&nbsp;</i>Init RDS DB</a>
  563. \t<a class=\"btn btn-sm btn-default bg-info\" href=\"";
  564.             // line 193
  565.             echo twig_escape_filter($this->envtwig_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", [=> "init_adp_db"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'193$this->source); })())], "method"falsefalsefalse193), "html"nulltrue);
  566.             echo "\" title=\"Init new ADP (Azure Database for PostgreSQL) Database!\"><i class=\"fa fa-database\" aria-hidden=\"true\">&nbsp;</i>Init ADP DB</a>
  567. \t<a class=\"btn btn-sm btn-default bg-success\" id=\"init_shared_db_button_";
  568.             // line 194
  569.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse194), "html"nulltrue);
  570.             echo "\" data-url=\"";
  571.             echo twig_escape_filter($this->envtwig_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", [=> "init_shared_db"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'194$this->source); })()), => ["dbserver" => ""]], "method"falsefalsefalse194), "html"nulltrue);
  572.             echo "\" href=\"#\" disabled title=\"Init new PostgreSQL database on shared server\"><i class=\"fa fa-database\" aria-hidden=\"true\">&nbsp;</i>Init shared db</a>
  573. \t<a class=\"btn btn-sm btn-default bg-success\" id=\"init_shared_db_admin_button_";
  574.             // line 195
  575.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse195), "html"nulltrue);
  576.             echo "\" data-url=\"";
  577.             echo twig_escape_filter($this->envtwig_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", [=> "init_shared_db"=> (isset($context["object"]) || array_key_exists("object"$context) ? $context["object"] : (function () { throw new RuntimeError('Variable "object" does not exist.'195$this->source); })()), => ["prefix" => "admin""dbserver" => ""]], "method"falsefalsefalse195), "html"nulltrue);
  578.             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\">&nbsp;</i></i>Init ADMIN shared db</a>
  579. ";
  580.         }
  581.         // line 198
  582.         echo "
  583. ";
  584.         
  585.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  586.         
  587.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  588.     }
  589.     // line 201
  590.     public function block_javascripts($context, array $blocks = [])
  591.     {
  592.         $macros $this->macros;
  593.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  594.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  595.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  596.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  597.         // line 202
  598.         echo "\t";
  599.         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"falsefalsefalse202)) {
  600.             // line 203
  601.             echo "\t\t<script type=\"text/javascript\">
  602. \t\t\tfunction copyToClipboard(text) {
  603. \t\t\t\tvar dummy = document.createElement(\"textarea\");
  604. \t\t\t\tdocument.body.appendChild(dummy);
  605. \t\t\t\tdummy.value = text;
  606. \t\t\t\tdummy.select();
  607. \t\t\t\tdocument.execCommand(\"copy\");
  608. \t\t\t\tdocument.body.removeChild(dummy);
  609. \t\t\t}
  610. \t\t\t\$( document ).ready(function() {
  611. \t\t\t
  612. \t\t\t\t
  613. \t\t\t\t\$('#botidpUserCreateEmail_";
  614.             // line 215
  615.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse215), "html"nulltrue);
  616.             echo "').keypress(function (e) {
  617. \t\t\t\t\tif (e.which == 13) {
  618. \t\t\t\t\t\treturn false;    //<---- Add this line
  619. \t\t\t\t\t}
  620. \t\t\t\t});
  621. \t\t\t\t\$(\"#botidpUserCreateLanguage_";
  622.             // line 220
  623.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse220), "html"nulltrue);
  624.             echo "\").on(\"change\", function (e) {
  625. \t\t\t\t\tcheckCreateUser(e);
  626. \t\t\t\t});
  627. \t\t\t\t\$(\"#botidpUserCreateGroup_";
  628.             // line 223
  629.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse223), "html"nulltrue);
  630.             echo "\").on(\"change\", function (e) {
  631. \t\t\t\t\tcheckCreateUser(e);
  632. \t\t\t\t});
  633. \t\t\t\t\$(\"#botidpUserCreateEmail_";
  634.             // line 226
  635.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse226), "html"nulltrue);
  636.             echo "\").keyup(function (e) {
  637. \t\t\t\t\tcheckCreateUser(e);
  638. \t\t\t\t});
  639. \t\t\t\t
  640. \t\t\t\t\$('#token1_";
  641.             // line 230
  642.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse230), "html"nulltrue);
  643.             echo "').keypress(function (e) {
  644. \t\t\t\t\tif (e.which == 13) {
  645. \t\t\t\t\t\treturn false;    //<---- Add this line
  646. \t\t\t\t\t}
  647. \t\t\t\t});
  648. \t\t\t\t\t\t\t\t
  649. \t\t\t\t\$('#token2_";
  650.             // line 236
  651.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse236), "html"nulltrue);
  652.             echo "').keypress(function (e) {
  653. \t\t\t\t\tif (e.which == 13) {
  654. \t\t\t\t\t\treturn false;    //<---- Add this line
  655. \t\t\t\t\t}
  656. \t\t\t\t});
  657. \t\t\t\t
  658. \t\t\t\t\$(\"#token1_";
  659.             // line 242
  660.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse242), "html"nulltrue);
  661.             echo "\").keyup(function (e) {
  662. \t\t\t\t\tcheckCreatePermaUser(e);
  663. \t\t\t\t});
  664. \t\t\t\t\$(\"#token2_";
  665.             // line 245
  666.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse245), "html"nulltrue);
  667.             echo "\").keyup(function (e) {
  668. \t\t\t\t\tcheckCreatePermaUser(e);
  669. \t\t\t\t});
  670. \t\t\t\t
  671. \t\t\t\t\$('#vibertoken_";
  672.             // line 249
  673.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse249), "html"nulltrue);
  674.             echo "').keypress(function (e) {
  675. \t\t\t\t\tif (e.which == 13) {
  676. \t\t\t\t\t\treturn false;    //<---- Add this line
  677. \t\t\t\t\t}
  678. \t\t\t\t});
  679. \t\t\t\t\$(\"#vibertoken_";
  680.             // line 254
  681.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse254), "html"nulltrue);
  682.             echo "\").keyup(function (e) {
  683. \t\t\t\t\taddViberToken();
  684. \t\t\t\t});
  685. \t\t\t\t
  686. \t\t\t\tfunction checkCreateUser(e) {
  687. \t\t\t\t\tif(\$(\"#botidpUserCreateEmail_";
  688.             // line 259
  689.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse259), "html"nulltrue);
  690.             echo "\").val() == \"\") {
  691. \t\t\t\t\t\t\$(\"#botidpUserCreateEmail_";
  692.             // line 260
  693.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse260), "html"nulltrue);
  694.             echo "\").css(\"border\", \"solid 2px red\");
  695. \t\t\t\t\t\t\$(\"#button_create_botdip_user_";
  696.             // line 261
  697.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse261), "html"nulltrue);
  698.             echo "\").attr(\"href\", \"#\");
  699. \t\t\t\t\t} else {
  700. \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,}))\$/;
  701. \t\t\t\t\t\tvar validEmails = true;
  702. \t\t\t\t\t\tvar emailSplit = \$(\"#botidpUserCreateEmail_";
  703.             // line 265
  704.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse265), "html"nulltrue);
  705.             echo "\").val().split(\",\");
  706. \t\t\t\t\t\t
  707. \t\t\t\t\t\t\$.each( emailSplit, function( index, value ) {
  708. \t\t\t\t\t\t\tconsole.log(value);
  709. \t\t\t\t\t\t\tif(re.test(value.trim())) {
  710. \t\t\t\t\t\t\t\treturn;
  711. \t\t\t\t\t\t\t} else {
  712. \t\t\t\t\t\t\t\tvalidEmails = false;
  713. \t\t\t\t\t\t\t}
  714. \t\t\t\t\t\t});
  715. \t\t\t\t\t\tif(!validEmails) {
  716. \t\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_";
  717.             // line 276
  718.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse276), "html"nulltrue);
  719.             echo "\").css(\"border\", \"solid 2px red\");
  720. \t\t\t\t\t\t\t\$(\"#button_create_botdip_user_";
  721.             // line 277
  722.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse277), "html"nulltrue);
  723.             echo "\").attr(\"href\", \"#\");
  724. \t\t\t\t\t\t} else {
  725. \t\t\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_";
  726.             // line 279
  727.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse279), "html"nulltrue);
  728.             echo "\").css(\"border\", \"solid 2px green\");
  729. \t\t\t\t\t\t\t\tbaseurl = \$(\"#button_create_botdip_user_";
  730.             // line 280
  731.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse280), "html"nulltrue);
  732.             echo "\").attr(\"data-baseurl\");
  733. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#botidpUserCr7eateEmail_";
  734.             // line 281
  735.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse281), "html"nulltrue);
  736.             echo "\").val());
  737. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"en_US\", \$(\"#botidpUserCreateLanguage_";
  738.             // line 282
  739.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse282), "html"nulltrue);
  740.             echo "\").val());
  741. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"defaultgroup\", \$(\"#botidpUserCreateGroup_";
  742.             // line 283
  743.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse283), "html"nulltrue);
  744.             echo "\").val());
  745. \t\t\t\t\t\t\t\t\$(\"#button_create_botdip_user_";
  746.             // line 284
  747.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse284), "html"nulltrue);
  748.             echo "\").attr(\"href\", baseurl);
  749. \t\t\t\t\t\t}
  750. \t\t\t\t\t}
  751. \t\t\t\t};
  752. \t\t\t\t
  753. \t\t\t\tfunction checkCreatePermaUser(e) {
  754. \t\t\t
  755. \t\t\t\t\tif(\$(\"#token1_";
  756.             // line 292
  757.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse292), "html"nulltrue);
  758.             echo "\").val() == \"\" || \$(\"#token2_";
  759.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse292), "html"nulltrue);
  760.             echo "\").val() == \"\" ) {
  761. \t\t\t\t\t\t\$(\"#token1_";
  762.             // line 293
  763.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse293), "html"nulltrue);
  764.             echo "\").css(\"border\", \"solid 2px red\");
  765. \t\t\t\t\t\t\$(\"#token2_";
  766.             // line 294
  767.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse294), "html"nulltrue);
  768.             echo "\").css(\"border\", \"solid 2px red\");
  769. \t\t\t\t\t\t\$(\"#button_create_perma_user_";
  770.             // line 295
  771.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse295), "html"nulltrue);
  772.             echo "\").attr(\"href\", \"#\");
  773. \t\t\t\t\t} else {
  774. \t\t\t\t\t\t\t
  775. \t\t\t\t\t\tif(\$(\"#token1_";
  776.             // line 298
  777.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse298), "html"nulltrue);
  778.             echo "\").val().length >4 && \$(\"#token2_";
  779.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse298), "html"nulltrue);
  780.             echo "\").val().length >4 ) {
  781. \t\t\t\t\t\t\t\t\$(\"#token1_";
  782.             // line 299
  783.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse299), "html"nulltrue);
  784.             echo "\").css(\"border\", \"solid 2px green\");
  785. \t\t\t\t\t\t\t\t\$(\"#token2_";
  786.             // line 300
  787.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse300), "html"nulltrue);
  788.             echo "\").css(\"border\", \"solid 2px green\");
  789. \t\t\t\t\t\t\t\t\$(\"#altusername_";
  790.             // line 301
  791.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse301), "html"nulltrue);
  792.             echo "\").css(\"border\", \"solid 2px green\");
  793. \t\t\t\t\t\t\t\tbaseurl = \$(\"#button_create_perma_user_";
  794.             // line 302
  795.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse302), "html"nulltrue);
  796.             echo "\").attr(\"data-baseurl\");
  797. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#token1_";
  798.             // line 303
  799.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse303), "html"nulltrue);
  800.             echo "\").val());
  801. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#token2_";
  802.             // line 304
  803.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse304), "html"nulltrue);
  804.             echo "\").val());
  805. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#altusername_";
  806.             // line 305
  807.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse305), "html"nulltrue);
  808.             echo "\").val());
  809. \t\t\t\t\t\t\t\t\$(\"#button_create_perma_user_";
  810.             // line 306
  811.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse306), "html"nulltrue);
  812.             echo "\").attr(\"href\", baseurl);\t\t\t\t\t\t
  813. \t\t\t\t\t\t} else {
  814. \t\t\t\t\t\t\t\t\$(\"#token1_";
  815.             // line 308
  816.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse308), "html"nulltrue);
  817.             echo "\").css(\"border\", \"solid 2px red\");
  818. \t\t\t\t\t\t\t\t\$(\"#token2_";
  819.             // line 309
  820.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse309), "html"nulltrue);
  821.             echo "\").css(\"border\", \"solid 2px red\");
  822. \t\t\t\t\t\t\t\t\$(\"#altusername_";
  823.             // line 310
  824.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse310), "html"nulltrue);
  825.             echo "\").css(\"border\", \"solid 2px red\");
  826. \t\t\t\t\t\t\t    \$(\"#button_create_perma_user_";
  827.             // line 311
  828.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse311), "html"nulltrue);
  829.             echo "\").attr(\"href\", \"#\");
  830. \t
  831. \t\t\t\t\t\t}
  832. \t\t\t\t      }
  833. \t\t\t\t\t};
  834. \t\t\t\t
  835. \t\t\t\t    function addViberToken(e) {
  836. \t\t\t
  837. \t\t\t\t\t\$(\"#vibertoken_";
  838.             // line 319
  839.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse319), "html"nulltrue);
  840.             echo "\").css(\"border\", \"solid 2px green\");\t
  841. \t\t\t\t\t\$(\"#button_add_viber_token_";
  842.             // line 320
  843.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse320), "html"nulltrue);
  844.             echo "\").attr(\"href\", \"#\");
  845. \t\t\t\t\tconsole.log(\"Viberbuli\");
  846. \t\t\t\t\t
  847. \t\t\t\t\t\t\t\tbaseurl = \$(\"#button_add_viber_token_";
  848.             // line 323
  849.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse323), "html"nulltrue);
  850.             echo "\").attr(\"data-baseurl\");
  851. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#vibertoken_";
  852.             // line 324
  853.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse324), "html"nulltrue);
  854.             echo "\").val());
  855. \t\t\t\t\t\t\t\t\$(\"#button_add_viber_token_";
  856.             // line 325
  857.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse325), "html"nulltrue);
  858.             echo "\").attr(\"href\", baseurl);\t\t\t\t\t\t
  859. \t\t\t\t      
  860. \t\t\t\t\t};
  861. \t\t\t\t
  862. \t\t
  863. \t\t\t\t\$(\"#deploy_version_version_";
  864.             // line 331
  865.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse331), "html"nulltrue);
  866.             echo "\").change(function() {
  867. \t\t\t\t\tif(\$(this).val() != \"-\") {
  868. \t\t\t\t\t\tbutton = \$(\"#deploy_version_button_\"+\$(this).attr(\"data-id\"));
  869. \t\t\t\t\t\turl = button.attr(\"data-url\");
  870. \t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
  871. \t\t\t\t\t\tbutton.removeAttr(\"disabled\");
  872. \t\t\t\t\t} else {
  873. \t\t\t\t\t\tbutton = \$(\"#deploy_version_button_\"+\$(this).attr(\"data-id\"));
  874. \t\t\t\t\t\tbutton.attr(\"href\", \"#\");
  875. \t\t\t\t\t\tbutton.attr(\"disabled\", true);
  876. \t\t\t\t\t}
  877. \t\t\t\t});
  878. \t\t\t\tif(\$(\"#deploy_version_version_";
  879.             // line 344
  880.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse344), "html"nulltrue);
  881.             echo "\").val() != \"-\") {
  882. \t\t\t\t\t\$(\"#deploy_version_version_";
  883.             // line 345
  884.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse345), "html"nulltrue);
  885.             echo "\").trigger(\"change\");
  886. \t\t\t\t}
  887. \t\t\t\t\$(\".deploy_version_version\").select2({
  888. \t\t\t\t\tescapeMarkup: function(m) {
  889. \t\t\t\t\t\treturn m.replace(/\\[color\\=([a-z\\-]+)\\](.*)\\[\\/color\\]/gi, '<span style=\\'color:\$1;\\'>\$2</span>');
  890. \t\t\t\t\t}
  891. \t\t\t\t});
  892. \t\t\t});
  893. \t\t</script>
  894. \t";
  895.         } else {
  896.             // line 356
  897.             echo "\t\t<script type=\"text/javascript\">
  898. \t\t\t\$( document ).ready(function() {
  899. \t\t\t\t\$(\"#init_shared_db_dbserver_";
  900.             // line 358
  901.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse358), "html"nulltrue);
  902.             echo "\").change(function() {
  903. \t\t\t\t\tif(\$(this).val() != \"-\") {
  904. \t\t\t\t\t\tbutton = \$(\"#init_shared_db_button_\"+\$(this).attr(\"data-id\"));
  905. \t\t\t\t\t\turl = button.attr(\"data-url\");
  906. \t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
  907. \t\t\t\t\t\tbutton.removeAttr(\"disabled\");
  908. \t\t\t\t\t\tbutton = \$(\"#init_shared_db_admin_button_\"+\$(this).attr(\"data-id\"));
  909. \t\t\t\t\t\turl = button.attr(\"data-url\");
  910. \t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
  911. \t\t\t\t\t\tbutton.removeAttr(\"disabled\");
  912. \t\t\t\t\t} else {
  913. \t\t\t\t\t\tbutton = \$(\"#init_shared_db_button_\"+\$(this).attr(\"data-id\"));
  914. \t\t\t\t\t\tbutton.attr(\"href\", \"#\");
  915. \t\t\t\t\t\tbutton.attr(\"disabled\", true);
  916. \t\t\t\t\t\tbutton = \$(\"#init_shared_db_admin_button_\"+\$(this).attr(\"data-id\"));
  917. \t\t\t\t\t\tbutton.attr(\"href\", \"#\");
  918. \t\t\t\t\t\tbutton.attr(\"disabled\", true);
  919. \t\t\t\t\t}
  920. \t\t\t\t});
  921. \t\t\t\tif(\$(\"#init_shared_db_dbserver_";
  922.             // line 377
  923.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse377), "html"nulltrue);
  924.             echo "\").val() != \"-\") {
  925. \t\t\t\t\t\$(\"#init_shared_db_dbserver_";
  926.             // line 378
  927.             echo twig_escape_filter($this->envtwig_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"falsefalsefalse378), "html"nulltrue);
  928.             echo "\").trigger(\"change\");
  929. \t\t\t\t}
  930. \t\t\t});
  931. \t\t</script>
  932. \t";
  933.         }
  934.         
  935.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  936.         
  937.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  938.     }
  939.     public function getTemplateName()
  940.     {
  941.         return "CRUD\\list__action_deploy.html.twig";
  942.     }
  943.     public function getDebugInfo()
  944.     {
  945.         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,);
  946.     }
  947.     public function getSourceContext()
  948.     {
  949.         return new Source("{% block field %}
  950. {% if object.isDbSet %}
  951. \t<select class=\"deploy_version_version\" data-id=\"{{ object.id }}\" id=\"deploy_version_version_{{ object.id }}\">
  952. \t\t<option value=\"-\" readonly selected>Válassz verziót!</option>
  953. \t\t<optgroup label=\"Project images\">
  954. \t\t\t{% for deployTag in object.getProject.getDeployTags %}
  955. \t\t\t\t<option title=\"{{ deployTag.name }}\" value=\"{{ deployTag.name }}\">
  956. \t\t\t\t\t{{ deployTag.name }}
  957. \t\t\t\t\t{% if deployTag.environment != \"\" %}
  958. \t\t\t\t\t\t(#{{ deployTag.environment.id }}: {{ deployTag.environment.project.name }}/{{ deployTag.environment.type.name }})
  959. \t\t\t\t\t{% endif %}
  960. \t\t\t\t\t{% if deployTag.labels is not empty %}
  961. \t\t\t\t\t\t[{% for label in deployTag.getLabels %}
  962. \t\t\t\t\t\t\t[color={{ label.GetParamsDecoded()[\"color\"] }}]{{ label.value }}[/color]
  963. \t\t\t\t\t\t{% endfor %}]
  964. \t\t\t\t\t{% endif %}
  965. \t\t\t\t\t{% if deployTag.note != \"\" %}
  966. \t\t\t\t\t\t({{ deployTag.note }})
  967. \t\t\t\t\t{% endif %}
  968. \t\t\t\t</option>
  969. \t\t\t{% endfor %}
  970. \t\t</optgroup>
  971. \t\t{% if admin.sharedDeployTags is not empty %}
  972. \t\t\t{% for projectType,deployTags in admin.sharedDeployTags %}
  973. \t\t\t\t{% if object.project.type.value == projectType %}
  974. \t\t\t\t\t{% for projectTypeName,sharedDeployTag in deployTags %}
  975. \t\t\t\t\t\t<optgroup label=\"{{ projectTypeName }} shared images\">
  976. \t\t\t\t\t\t\t{% for deployTag in sharedDeployTag %}
  977. \t\t\t\t\t\t\t\t<option title=\"{{ deployTag.project.botname }}:{{ deployTag.name }}\" value=\"{{ deployTag.project.botname }}:{{ deployTag.name }}\">
  978. \t\t\t\t\t\t\t\t\t{{ deployTag.project.botname }}:{{ deployTag.name }}
  979. \t\t\t\t\t\t\t\t\t{% if deployTag.environment != \"\" %}
  980. \t\t\t\t\t\t\t\t\t\t(#{{ deployTag.environment.id }}: {{ deployTag.environment.project.name }}/{{ deployTag.environment.type.name }})
  981. \t\t\t\t\t\t\t\t\t{% endif %}
  982. \t\t\t\t\t\t\t\t\t{% if deployTag.labels is not empty %}
  983. \t\t\t\t\t\t\t\t\t\t[{% for label in deployTag.getLabels %}
  984. \t\t\t\t\t\t\t\t\t\t\t[color={{ label.GetParamsDecoded()[\"color\"] }}]{{ label.value }}[/color]
  985. \t\t\t\t\t\t\t\t\t\t{% endfor %}]
  986. \t\t\t\t\t\t\t\t\t{% endif %}
  987. \t\t\t\t\t\t\t\t\t{% if deployTag.note != \"\" %}
  988. \t\t\t\t\t\t\t\t\t\t({{ deployTag.note }})
  989. \t\t\t\t\t\t\t\t\t{% endif %}
  990. \t\t\t\t\t\t\t\t</option>
  991. \t\t\t\t\t\t\t{% endfor %}
  992. \t\t\t\t\t\t</optgroup>
  993. \t\t\t\t\t{% endfor %}
  994. \t\t\t\t{% endif %}
  995. \t\t\t{% endfor %}
  996. \t\t{% endif %}
  997. \t</select>
  998. \t{% if object.project.type.value != \"phoenix\" %}
  999. \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\">&nbsp;</i>Deploy</a>
  1000. \t{% else %}
  1001. \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\">&nbsp;</i>Deploy</a>
  1002. \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\">&nbsp;</i> Copy Tag</a>
  1003. \t{% endif %}
  1004. \t<a class=\"btn btn-sm btn-default bg-danger\" href=\"{{ admin.generateObjectUrl('stop', object) }}\"><i class=\"fa fa-stop\" aria-hidden=\"true\">&nbsp;</i>Stop</a>
  1005. \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\">&nbsp;</i>IDPfy</a>
  1006. \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\">&nbsp;</i>Create Resourceproxy User</a>
  1007. \t{% if object.project.type.value == \"cheq\" %}
  1008. \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\">&nbsp;</i>vibertoken</a>\t\t
  1009. \t{% endif %}
  1010. \t{% if object.project.type.value == \"cheq\" %}
  1011. \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\">&nbsp;</i>PermaUser</a>\t\t
  1012. \t{% endif %}
  1013. \t{% if object.type.name == \"prod\" %}
  1014. \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\">&nbsp;</i>Debug</a>
  1015. \t{% endif %}
  1016. \t
  1017. \t<!-- Modal -->
  1018. \t<div class=\"modal fade\" id=\"botidpUserCreateModal_{{ object.id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"botidpUserCreateModalLabel_{{ object.id }}\" aria-hidden=\"true\">
  1019. \t\t<div class=\"modal-dialog\" role=\"document\">
  1020. \t\t\t<div class=\"modal-content\">
  1021. \t\t\t\t<div class=\"modal-header\">
  1022. \t\t\t\t\t<h5 class=\"modal-title\" id=\"botidpUserCreateModalLabel_{{ object.id }}\">Create new user in {{ object.getProject }} / {{ object.getType.getName }}</h5>
  1023. \t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1024. \t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>
  1025. \t\t\t\t\t</button>
  1026. \t\t\t\t</div>
  1027. \t\t\t\t<div class=\"modal-body\">
  1028. \t\t\t\t\t<form>
  1029. \t\t\t\t\t\t<div class=\"form-group\">
  1030. \t\t\t\t\t\t\t<label for=\"botidpUserCreateEmail_{{ object.id }}\">Email address</label>
  1031. \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;\">
  1032. \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>
  1033. \t\t\t\t\t\t</div>
  1034. \t\t\t\t\t\t<div class=\"form-group\">
  1035. \t\t\t\t\t\t\t<label for=\"botidpUserCreateLanguage_{{ object.id }}\">Language of email</label>
  1036. \t\t\t\t\t\t\t<select name='botidpUserCreateLanguage_{{ object.id }}' class=\"form-control\" id=\"botidpUserCreateLanguage_{{ object.id }}\" aria-describedby=\"botidpUserCreateEmailHelp\">
  1037. \t\t\t\t\t\t\t\t<option value='hu_HU' selected>hu_HU</option>
  1038. \t\t\t\t\t\t\t\t<option value='en_US'>en_US</option>
  1039. \t\t\t\t\t\t\t\t<option value='nl_NL'>nl_NL</option>
  1040. \t\t\t\t\t\t\t\t<option value='pl_PL'>pl_PL</option>
  1041. \t\t\t\t\t\t\t</select>
  1042. \t\t\t\t\t\t</div>
  1043. \t\t\t\t\t\t<div class=\"form-group\">
  1044. \t\t\t\t\t\t\t<label for=\"botidpUserCreateGroup_{{ object.id }}\">Group of user</label>
  1045. \t\t\t\t\t\t\t<select name='botidpUserCreateGroup_{{ object.id }}' class=\"form-control\" id=\"botidpUserCreateGroup_{{ object.id }}\" aria-describedby=\"botidpUserCreateGroupHelp\" multiple>
  1046. \t\t\t\t\t\t\t\t<option value='admin' selected>admin</option>
  1047. \t\t\t\t\t\t\t\t<option value='superuser'>superuser</option>
  1048. \t\t\t\t\t\t\t\t<option value='operator'>operator</option>
  1049. \t\t\t\t\t\t\t\t<option value='hr admin'>hr admin</option>
  1050. \t\t\t\t\t\t\t\t<option value='trainer'>trainer</option>
  1051. \t\t\t\t\t\t\t\t<option value='statistics'>statistics</option>
  1052. \t\t\t\t\t\t\t\t<option value='user'>user</option>
  1053. \t\t\t\t\t\t\t</select>
  1054. \t\t\t\t\t\t</div>
  1055. \t\t\t\t\t</form>
  1056. \t\t\t\t</div>
  1057. \t\t\t\t<div class=\"modal-footer\">
  1058. \t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  1059. \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\">&nbsp;</i>Create User</a>
  1060. \t\t\t\t</div>
  1061. \t\t\t</div>
  1062. \t\t</div>
  1063. \t</div>
  1064. \t
  1065. \t\t<!-- Modal Permauser -->
  1066. \t<div class=\"modal fade\" id=\"permaUserCreateModal_{{ object.id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"permaUserCreateModalLabel_{{ object.id }}\" aria-hidden=\"true\">
  1067. \t\t<div class=\"modal-dialog\" role=\"document\">
  1068. \t\t\t<div class=\"modal-content\">
  1069. \t\t\t\t<div class=\"modal-header\">
  1070. \t\t\t\t\t<h5 class=\"modal-title\" id=\"permaUserCreateModalLabel_{{ object.id }}\">Create PermaUser user in {{ object.getProject }} / {{ object.getType.getName }}</h5>
  1071. \t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1072. \t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>
  1073. \t\t\t\t\t</button>
  1074. \t\t\t\t</div>
  1075. \t\t\t\t<div class=\"modal-body\">
  1076. \t\t\t\t\t<form>
  1077. \t\t\t\t\t\t<div class=\"form-group\">
  1078. \t\t\t\t\t\t
  1079. \t\t\t\t\t\t\t<label for=\"altusername_{{ object.id }}\">Username</label>
  1080. \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;\">
  1081. \t\t\t\t\t\t
  1082. \t\t\t\t\t\t\t<label for=\"token1_{{ object.id }}\">Invite Token 1</label>
  1083. \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;\">
  1084. \t\t\t\t\t\t\t
  1085. \t\t\t\t\t\t\t<label for=\"token2_{{ object.id }}\">Invite Token 2</label>
  1086. \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;\">
  1087. \t\t\t\t\t\t\t
  1088. \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>
  1089. \t\t\t\t\t\t</div>
  1090. \t\t\t\t\t</form>
  1091. \t\t\t\t</div>
  1092. \t\t\t\t<div class=\"modal-footer\">
  1093. \t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  1094. \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\">&nbsp;</i>Create Permauser</a>
  1095. \t\t\t\t</div>
  1096. \t\t\t</div>
  1097. \t\t</div>
  1098. \t</div>
  1099. \t
  1100. \t\t\t<!-- Modal viber -->
  1101. \t<div class=\"modal fade\" id=\"viberTokenModal_{{ object.id }}\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"viberTokenModalLabel_{{ object.id }}\" aria-hidden=\"true\">
  1102. \t\t<div class=\"modal-dialog\" role=\"document\">
  1103. \t\t\t<div class=\"modal-content\">
  1104. \t\t\t\t<div class=\"modal-header\">
  1105. \t\t\t\t\t<h5 class=\"modal-title\" id=\"viberTokenModalLabel_{{ object.id }}\">Adding viber auth token to {{ object.getProject }} / {{ object.getType.getName }}</h5>
  1106. \t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1107. \t\t\t\t\t\t<span aria-hidden=\"true\">&times;</span>
  1108. \t\t\t\t\t</button>
  1109. \t\t\t\t</div>
  1110. \t\t\t\t<div class=\"modal-body\">
  1111. \t\t\t\t\t<form>
  1112. \t\t\t\t\t\t<div class=\"form-group\">
  1113. \t\t\t\t\t\t\t<label for=\"vibertoken_{{ object.id }}\">Viber auth token</label>
  1114. \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;\">
  1115. \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>
  1116. \t\t\t\t\t\t</div>
  1117. \t\t\t\t\t</form>
  1118. \t\t\t\t</div>
  1119. \t\t\t\t<div class=\"modal-footer\">
  1120. \t\t\t\t\t<button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>
  1121. \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\">&nbsp;</i>add Viber auth token</a>
  1122. \t\t\t\t</div>
  1123. \t\t\t</div>
  1124. \t\t</div>
  1125. \t</div>
  1126. \t
  1127. \t
  1128. {% else %}
  1129. \t<p class='font-italic'>Missing DB config!</p>
  1130. \t<select class=\"init_shared_db_dbserver\" data-id=\"{{ object.id }}\" id=\"init_shared_db_dbserver_{{ object.id }}\">
  1131. \t\t<option value=\"-\" readonly selected>Válassz Szervert!</option>
  1132. \t\t{% for value in admin.sharedDBServers %}
  1133. \t\t\t<option value=\"{{ value.id }}\">
  1134. \t\t\t\t{{ value.name }}
  1135. \t\t\t</option>
  1136. \t\t{% endfor %}
  1137. \t</select>
  1138. \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\">&nbsp;</i>Init RDS DB</a>
  1139. \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\">&nbsp;</i>Init ADP DB</a>
  1140. \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\">&nbsp;</i>Init shared db</a>
  1141. \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\">&nbsp;</i></i>Init ADMIN shared db</a>
  1142. {% endif %}
  1143. {% endblock %}
  1144. {% block javascripts %}
  1145. \t{% if object.isDbSet %}
  1146. \t\t<script type=\"text/javascript\">
  1147. \t\t\tfunction copyToClipboard(text) {
  1148. \t\t\t\tvar dummy = document.createElement(\"textarea\");
  1149. \t\t\t\tdocument.body.appendChild(dummy);
  1150. \t\t\t\tdummy.value = text;
  1151. \t\t\t\tdummy.select();
  1152. \t\t\t\tdocument.execCommand(\"copy\");
  1153. \t\t\t\tdocument.body.removeChild(dummy);
  1154. \t\t\t}
  1155. \t\t\t\$( document ).ready(function() {
  1156. \t\t\t
  1157. \t\t\t\t
  1158. \t\t\t\t\$('#botidpUserCreateEmail_{{ object.id }}').keypress(function (e) {
  1159. \t\t\t\t\tif (e.which == 13) {
  1160. \t\t\t\t\t\treturn false;    //<---- Add this line
  1161. \t\t\t\t\t}
  1162. \t\t\t\t});
  1163. \t\t\t\t\$(\"#botidpUserCreateLanguage_{{ object.id }}\").on(\"change\", function (e) {
  1164. \t\t\t\t\tcheckCreateUser(e);
  1165. \t\t\t\t});
  1166. \t\t\t\t\$(\"#botidpUserCreateGroup_{{ object.id }}\").on(\"change\", function (e) {
  1167. \t\t\t\t\tcheckCreateUser(e);
  1168. \t\t\t\t});
  1169. \t\t\t\t\$(\"#botidpUserCreateEmail_{{ object.id }}\").keyup(function (e) {
  1170. \t\t\t\t\tcheckCreateUser(e);
  1171. \t\t\t\t});
  1172. \t\t\t\t
  1173. \t\t\t\t\$('#token1_{{ object.id }}').keypress(function (e) {
  1174. \t\t\t\t\tif (e.which == 13) {
  1175. \t\t\t\t\t\treturn false;    //<---- Add this line
  1176. \t\t\t\t\t}
  1177. \t\t\t\t});
  1178. \t\t\t\t\t\t\t\t
  1179. \t\t\t\t\$('#token2_{{ object.id }}').keypress(function (e) {
  1180. \t\t\t\t\tif (e.which == 13) {
  1181. \t\t\t\t\t\treturn false;    //<---- Add this line
  1182. \t\t\t\t\t}
  1183. \t\t\t\t});
  1184. \t\t\t\t
  1185. \t\t\t\t\$(\"#token1_{{ object.id }}\").keyup(function (e) {
  1186. \t\t\t\t\tcheckCreatePermaUser(e);
  1187. \t\t\t\t});
  1188. \t\t\t\t\$(\"#token2_{{ object.id }}\").keyup(function (e) {
  1189. \t\t\t\t\tcheckCreatePermaUser(e);
  1190. \t\t\t\t});
  1191. \t\t\t\t
  1192. \t\t\t\t\$('#vibertoken_{{ object.id }}').keypress(function (e) {
  1193. \t\t\t\t\tif (e.which == 13) {
  1194. \t\t\t\t\t\treturn false;    //<---- Add this line
  1195. \t\t\t\t\t}
  1196. \t\t\t\t});
  1197. \t\t\t\t\$(\"#vibertoken_{{ object.id }}\").keyup(function (e) {
  1198. \t\t\t\t\taddViberToken();
  1199. \t\t\t\t});
  1200. \t\t\t\t
  1201. \t\t\t\tfunction checkCreateUser(e) {
  1202. \t\t\t\t\tif(\$(\"#botidpUserCreateEmail_{{ object.id }}\").val() == \"\") {
  1203. \t\t\t\t\t\t\$(\"#botidpUserCreateEmail_{{ object.id }}\").css(\"border\", \"solid 2px red\");
  1204. \t\t\t\t\t\t\$(\"#button_create_botdip_user_{{ object.id }}\").attr(\"href\", \"#\");
  1205. \t\t\t\t\t} else {
  1206. \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,}))\$/;
  1207. \t\t\t\t\t\tvar validEmails = true;
  1208. \t\t\t\t\t\tvar emailSplit = \$(\"#botidpUserCreateEmail_{{ object.id }}\").val().split(\",\");
  1209. \t\t\t\t\t\t
  1210. \t\t\t\t\t\t\$.each( emailSplit, function( index, value ) {
  1211. \t\t\t\t\t\t\tconsole.log(value);
  1212. \t\t\t\t\t\t\tif(re.test(value.trim())) {
  1213. \t\t\t\t\t\t\t\treturn;
  1214. \t\t\t\t\t\t\t} else {
  1215. \t\t\t\t\t\t\t\tvalidEmails = false;
  1216. \t\t\t\t\t\t\t}
  1217. \t\t\t\t\t\t});
  1218. \t\t\t\t\t\tif(!validEmails) {
  1219. \t\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_{{ object.id }}\").css(\"border\", \"solid 2px red\");
  1220. \t\t\t\t\t\t\t\$(\"#button_create_botdip_user_{{ object.id }}\").attr(\"href\", \"#\");
  1221. \t\t\t\t\t\t} else {
  1222. \t\t\t\t\t\t\t\t\$(\"#botidpUserCreateEmail_{{ object.id }}\").css(\"border\", \"solid 2px green\");
  1223. \t\t\t\t\t\t\t\tbaseurl = \$(\"#button_create_botdip_user_{{ object.id }}\").attr(\"data-baseurl\");
  1224. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#botidpUserCr7eateEmail_{{ object.id }}\").val());
  1225. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"en_US\", \$(\"#botidpUserCreateLanguage_{{ object.id }}\").val());
  1226. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"defaultgroup\", \$(\"#botidpUserCreateGroup_{{ object.id }}\").val());
  1227. \t\t\t\t\t\t\t\t\$(\"#button_create_botdip_user_{{ object.id }}\").attr(\"href\", baseurl);
  1228. \t\t\t\t\t\t}
  1229. \t\t\t\t\t}
  1230. \t\t\t\t};
  1231. \t\t\t\t
  1232. \t\t\t\tfunction checkCreatePermaUser(e) {
  1233. \t\t\t
  1234. \t\t\t\t\tif(\$(\"#token1_{{ object.id }}\").val() == \"\" || \$(\"#token2_{{ object.id }}\").val() == \"\" ) {
  1235. \t\t\t\t\t\t\$(\"#token1_{{ object.id }}\").css(\"border\", \"solid 2px red\");
  1236. \t\t\t\t\t\t\$(\"#token2_{{ object.id }}\").css(\"border\", \"solid 2px red\");
  1237. \t\t\t\t\t\t\$(\"#button_create_perma_user_{{ object.id }}\").attr(\"href\", \"#\");
  1238. \t\t\t\t\t} else {
  1239. \t\t\t\t\t\t\t
  1240. \t\t\t\t\t\tif(\$(\"#token1_{{ object.id }}\").val().length >4 && \$(\"#token2_{{ object.id }}\").val().length >4 ) {
  1241. \t\t\t\t\t\t\t\t\$(\"#token1_{{ object.id }}\").css(\"border\", \"solid 2px green\");
  1242. \t\t\t\t\t\t\t\t\$(\"#token2_{{ object.id }}\").css(\"border\", \"solid 2px green\");
  1243. \t\t\t\t\t\t\t\t\$(\"#altusername_{{ object.id }}\").css(\"border\", \"solid 2px green\");
  1244. \t\t\t\t\t\t\t\tbaseurl = \$(\"#button_create_perma_user_{{ object.id }}\").attr(\"data-baseurl\");
  1245. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#token1_{{ object.id }}\").val());
  1246. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#token2_{{ object.id }}\").val());
  1247. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#altusername_{{ object.id }}\").val());
  1248. \t\t\t\t\t\t\t\t\$(\"#button_create_perma_user_{{ object.id }}\").attr(\"href\", baseurl);\t\t\t\t\t\t
  1249. \t\t\t\t\t\t} else {
  1250. \t\t\t\t\t\t\t\t\$(\"#token1_{{ object.id }}\").css(\"border\", \"solid 2px red\");
  1251. \t\t\t\t\t\t\t\t\$(\"#token2_{{ object.id }}\").css(\"border\", \"solid 2px red\");
  1252. \t\t\t\t\t\t\t\t\$(\"#altusername_{{ object.id }}\").css(\"border\", \"solid 2px red\");
  1253. \t\t\t\t\t\t\t    \$(\"#button_create_perma_user_{{ object.id }}\").attr(\"href\", \"#\");
  1254. \t
  1255. \t\t\t\t\t\t}
  1256. \t\t\t\t      }
  1257. \t\t\t\t\t};
  1258. \t\t\t\t
  1259. \t\t\t\t    function addViberToken(e) {
  1260. \t\t\t
  1261. \t\t\t\t\t\$(\"#vibertoken_{{ object.id }}\").css(\"border\", \"solid 2px green\");\t
  1262. \t\t\t\t\t\$(\"#button_add_viber_token_{{ object.id }}\").attr(\"href\", \"#\");
  1263. \t\t\t\t\tconsole.log(\"Viberbuli\");
  1264. \t\t\t\t\t
  1265. \t\t\t\t\t\t\t\tbaseurl = \$(\"#button_add_viber_token_{{ object.id }}\").attr(\"data-baseurl\");
  1266. \t\t\t\t\t\t\t\tbaseurl = baseurl.replace(\"none\", \$(\"#vibertoken_{{ object.id }}\").val());
  1267. \t\t\t\t\t\t\t\t\$(\"#button_add_viber_token_{{ object.id }}\").attr(\"href\", baseurl);\t\t\t\t\t\t
  1268. \t\t\t\t      
  1269. \t\t\t\t\t};
  1270. \t\t\t\t
  1271. \t\t
  1272. \t\t\t\t\$(\"#deploy_version_version_{{ object.id }}\").change(function() {
  1273. \t\t\t\t\tif(\$(this).val() != \"-\") {
  1274. \t\t\t\t\t\tbutton = \$(\"#deploy_version_button_\"+\$(this).attr(\"data-id\"));
  1275. \t\t\t\t\t\turl = button.attr(\"data-url\");
  1276. \t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
  1277. \t\t\t\t\t\tbutton.removeAttr(\"disabled\");
  1278. \t\t\t\t\t} else {
  1279. \t\t\t\t\t\tbutton = \$(\"#deploy_version_button_\"+\$(this).attr(\"data-id\"));
  1280. \t\t\t\t\t\tbutton.attr(\"href\", \"#\");
  1281. \t\t\t\t\t\tbutton.attr(\"disabled\", true);
  1282. \t\t\t\t\t}
  1283. \t\t\t\t});
  1284. \t\t\t\tif(\$(\"#deploy_version_version_{{ object.id }}\").val() != \"-\") {
  1285. \t\t\t\t\t\$(\"#deploy_version_version_{{ object.id }}\").trigger(\"change\");
  1286. \t\t\t\t}
  1287. \t\t\t\t\$(\".deploy_version_version\").select2({
  1288. \t\t\t\t\tescapeMarkup: function(m) {
  1289. \t\t\t\t\t\treturn m.replace(/\\[color\\=([a-z\\-]+)\\](.*)\\[\\/color\\]/gi, '<span style=\\'color:\$1;\\'>\$2</span>');
  1290. \t\t\t\t\t}
  1291. \t\t\t\t});
  1292. \t\t\t});
  1293. \t\t</script>
  1294. \t{% else %}
  1295. \t\t<script type=\"text/javascript\">
  1296. \t\t\t\$( document ).ready(function() {
  1297. \t\t\t\t\$(\"#init_shared_db_dbserver_{{ object.id }}\").change(function() {
  1298. \t\t\t\t\tif(\$(this).val() != \"-\") {
  1299. \t\t\t\t\t\tbutton = \$(\"#init_shared_db_button_\"+\$(this).attr(\"data-id\"));
  1300. \t\t\t\t\t\turl = button.attr(\"data-url\");
  1301. \t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
  1302. \t\t\t\t\t\tbutton.removeAttr(\"disabled\");
  1303. \t\t\t\t\t\tbutton = \$(\"#init_shared_db_admin_button_\"+\$(this).attr(\"data-id\"));
  1304. \t\t\t\t\t\turl = button.attr(\"data-url\");
  1305. \t\t\t\t\t\tbutton.attr(\"href\", url+\$(this).val());
  1306. \t\t\t\t\t\tbutton.removeAttr(\"disabled\");
  1307. \t\t\t\t\t} else {
  1308. \t\t\t\t\t\tbutton = \$(\"#init_shared_db_button_\"+\$(this).attr(\"data-id\"));
  1309. \t\t\t\t\t\tbutton.attr(\"href\", \"#\");
  1310. \t\t\t\t\t\tbutton.attr(\"disabled\", true);
  1311. \t\t\t\t\t\tbutton = \$(\"#init_shared_db_admin_button_\"+\$(this).attr(\"data-id\"));
  1312. \t\t\t\t\t\tbutton.attr(\"href\", \"#\");
  1313. \t\t\t\t\t\tbutton.attr(\"disabled\", true);
  1314. \t\t\t\t\t}
  1315. \t\t\t\t});
  1316. \t\t\t\tif(\$(\"#init_shared_db_dbserver_{{ object.id }}\").val() != \"-\") {
  1317. \t\t\t\t\t\$(\"#init_shared_db_dbserver_{{ object.id }}\").trigger(\"change\");
  1318. \t\t\t\t}
  1319. \t\t\t});
  1320. \t\t</script>
  1321. \t{% endif %}
  1322. {% endblock %}""CRUD\\list__action_deploy.html.twig""/var/www/test-dashboard.talkabot.net/public_html/dashboard/templates/CRUD/list__action_deploy.html.twig");
  1323.     }
  1324. }