Sindbad~EG File Manager
<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* components/itilobject/timeline/approbation_form.html.twig */
class __TwigTemplate_b72892d5a636dbe2bcc5e28c8b16b1ab extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
// line 33
echo "
";
// line 34
$macros["fields"] = $this->macros["fields"] = $this->loadTemplate("components/form/fields_macros.html.twig", "components/itilobject/timeline/approbation_form.html.twig", 34)->unwrap();
// line 35
echo "
";
// line 36
if (((twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "isSolved", [], "method", false, false, false, 36) && twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "canApprove", [], "method", false, false, false, 36)) && twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "isAllowedStatus", [0 => (($__internal_compile_0 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 36)) && is_array($__internal_compile_0) || $__internal_compile_0 instanceof ArrayAccess ? ($__internal_compile_0["status"] ?? null) : null), 1 => twig_constant("CommonITILObject::CLOSED")], "method", false, false, false, 36))) {
// line 37
echo "<div class=\"timeline-item mb-3\">
<div class=\"row\">
<div class=\"col-auto d-none d-md-block\">
";
// line 40
echo twig_include($this->env, $context, "components/user/picture.html.twig", ["users_id" => $this->extensions['Glpi\Application\View\Extension\SessionExtension']->session("glpiID")], false);
echo "
</div>
<div class=\"col\">
<div class=\"row timeline-content t-left card mt-4\">
<form name=\"form\" method=\"post\" action=\"";
// line 44
echo twig_escape_filter($this->env, $this->extensions['Glpi\Application\View\Extension\ItemtypeExtension']->getItemtypeFormPath("ItilFollowup"), "html", null, true);
echo "\" data-submit-once>
<input type=\"hidden\" name=\"_glpi_csrf_token\" value=\"";
// line 46
echo twig_escape_filter($this->env, Session::getNewCSRFToken(), "html", null, true);
echo "\" />
<input type=\"hidden\" name=\"itemtype\" value=\"";
// line 47
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "getType", [], "method", false, false, false, 47), "html", null, true);
echo "\" />
<input type=\"hidden\" name=\"items_id\" value=\"";
// line 48
echo twig_escape_filter($this->env, (($__internal_compile_1 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 48)) && is_array($__internal_compile_1) || $__internal_compile_1 instanceof ArrayAccess ? ($__internal_compile_1["id"] ?? null) : null), "html", null, true);
echo "\" />
<input type=\"hidden\" name=\"requesttypes_id\" value=\"";
// line 49
echo twig_escape_filter($this->env, (($__internal_compile_2 = twig_get_attribute($this->env, $this->source, ($context["item"] ?? null), "fields", [], "any", false, false, false, 49)) && is_array($__internal_compile_2) || $__internal_compile_2 instanceof ArrayAccess ? ($__internal_compile_2["id"] ?? null) : null), "html", null, true);
echo "\" />
<div class=\"card-header\">
";
// line 52
echo twig_escape_filter($this->env, __("Approval of the solution"), "html", null, true);
echo "
</div>
<div class=\"card-body\">
";
// line 55
echo twig_call_macro($macros["fields"], "macro_textareaField", ["content", "", __("Comments"), ["full_width" => true, "helper" => __("Optional when approved"), "enable_richtext" => true, "enable_fileupload" => true, "enable_mentions" => true, "is_horizontal" => false]], 55, $context, $this->getSourceContext());
// line 67
echo "
</div>
<div class=\"card-footer\">
<button class=\"btn btn-icon btn-outline-danger me-2\" name=\"add_reopen\">
<i class=\"ti ti-x\"></i>
<span>";
// line 73
echo twig_escape_filter($this->env, __("Refuse"), "html", null, true);
echo "</span>
</button>
<button class=\"btn btn-icon btn-outline-success\" name=\"add_close\">
<i class=\"ti ti-check\"></i>
<span>";
// line 78
echo twig_escape_filter($this->env, __("Approve"), "html", null, true);
echo "</span>
</button>
</div>
</form>
</div>
</div>
</div>
</div>
";
}
}
public function getTemplateName()
{
return "components/itilobject/timeline/approbation_form.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 106 => 78, 98 => 73, 90 => 67, 88 => 55, 82 => 52, 76 => 49, 72 => 48, 68 => 47, 64 => 46, 59 => 44, 52 => 40, 47 => 37, 45 => 36, 42 => 35, 40 => 34, 37 => 33,);
}
public function getSourceContext()
{
return new Source("", "components/itilobject/timeline/approbation_form.html.twig", "/home/escuelai/public_html/it/templates/components/itilobject/timeline/approbation_form.html.twig");
}
}
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists