<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
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;
/* role/user/ticket/intervention/index.html.twig */
class __TwigTemplate_047b9e2660c27a0511da859dc167509e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'interventionContent' => [$this, 'block_interventionContent'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "role/user/index.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "role/user/ticket/intervention/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "role/user/ticket/intervention/index.html.twig"));
$this->parent = $this->loadTemplate("role/user/index.html.twig", "role/user/ticket/intervention/index.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
yield "\t<section class=\"container m_t_20p\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12\">\t\t\t
\t\t\t\t<h4 class=\"form_title\">Ticket: ";
// line 7
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 7, $this->source); })()), "number", [], "any", false, false, false, 7), "html", null, true);
yield "</h4>
\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t<table class=\"table table-sm b_none responsive_font_size\">
\t\t\t\t\t";
// line 10
if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 10, $this->source); })()), "user", [], "any", false, false, false, 10), "getAccountTypology", [], "any", false, false, false, 10) != "technician")) {
// line 11
yield "\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>Tecnico</th>
\t\t\t\t\t\t\t<td>";
// line 13
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 13, $this->source); })()), "technician", [], "any", false, false, false, 13), "html", null, true);
yield "</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t";
}
// line 16
yield "\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Magazzino</th>
\t\t\t\t\t\t<td>";
// line 18
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["intervention"]) || array_key_exists("intervention", $context) ? $context["intervention"] : (function () { throw new RuntimeError('Variable "intervention" does not exist.', 18, $this->source); })()), "warehouse", [], "any", false, false, false, 18), "html", null, true);
yield "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Cliente</th>
\t\t\t\t\t\t<td>";
// line 22
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 22, $this->source); })()), "client", [], "any", false, false, false, 22), "html", null, true);
yield "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Termid</th>
\t\t\t\t\t\t<td>";
// line 26
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 26, $this->source); })()), "termid", [], "any", false, false, false, 26), "html", null, true);
yield "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Fornitore</th>
\t\t\t\t\t\t<td>";
// line 30
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 30, $this->source); })()), "supplier", [], "any", false, false, false, 30), "html", null, true);
yield "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Operazione</th>
\t\t\t\t\t\t<td>";
// line 34
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 34, $this->source); })()), "operation", [], "any", false, false, false, 34), "html", null, true);
yield "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Cliente</th>
\t\t\t\t\t\t<td>";
// line 38
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 38, $this->source); })()), "client", [], "any", false, false, false, 38), "html", null, true);
yield "</td>
\t\t\t\t\t</tr>
\t\t\t\t\t";
// line 40
$context["jsonReport"] = $this->extensions['App\Twig\Extension\AppExtension']->jsonDecode(CoreExtension::getAttribute($this->env, $this->source, (isset($context["ticket"]) || array_key_exists("ticket", $context) ? $context["ticket"] : (function () { throw new RuntimeError('Variable "ticket" does not exist.', 40, $this->source); })()), "jsonReport", [], "any", false, false, false, 40));
// line 41
yield "\t\t\t\t\t";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["jsonReport"]) || array_key_exists("jsonReport", $context) ? $context["jsonReport"] : (function () { throw new RuntimeError('Variable "jsonReport" does not exist.', 41, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 42
yield "\t\t\t\t\t\t";
if (CoreExtension::getAttribute($this->env, $this->source, $context["i"], "Anomalia", [], "array", true, true, false, 42)) {
// line 43
yield "\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td colspan=\"2\"><b>Anomalia</b>: ";
// line 44
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["i"], "Anomalia", [], "array", false, false, false, 44), "html", null, true);
yield "</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
}
// line 47
yield "\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 48
yield "\t\t\t\t</table>
\t\t\t</div>
\t\t</div>
\t\t";
// line 51
yield from $this->unwrap()->yieldBlock('interventionContent', $context, $blocks);
// line 53
yield "\t</section>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 51
public function block_interventionContent($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "interventionContent"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "interventionContent"));
// line 52
yield "\t\t";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 56
public function block_javascripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 57
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script>
\tfunction copyToClipboard(productId, type) {
\t\tvar text = document.getElementById('product_' + productId + '_' + type);
\t\ttext.select();
\t\tnavigator.clipboard.writeText(text.value);
\t\tprintAlertSuccess('Matricola copiata!');
\t}
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "role/user/ticket/intervention/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 213 => 57, 203 => 56, 192 => 52, 182 => 51, 170 => 53, 168 => 51, 163 => 48, 157 => 47, 151 => 44, 148 => 43, 145 => 42, 140 => 41, 138 => 40, 133 => 38, 126 => 34, 119 => 30, 112 => 26, 105 => 22, 98 => 18, 94 => 16, 88 => 13, 84 => 11, 82 => 10, 76 => 7, 71 => 4, 61 => 3, 38 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'role/user/index.html.twig' %}
{% block content %}
\t<section class=\"container m_t_20p\">
\t\t<div class=\"row\">
\t\t\t<div class=\"col-12\">\t\t\t
\t\t\t\t<h4 class=\"form_title\">Ticket: {{ ticket.number }}</h4>
\t\t\t\t<hr class=\"m_t_none\">
\t\t\t\t<table class=\"table table-sm b_none responsive_font_size\">
\t\t\t\t\t{% if app.user.getAccountTypology != 'technician' %}
\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t<th>Tecnico</th>
\t\t\t\t\t\t\t<td>{{ ticket.technician }}</td>
\t\t\t\t\t\t</tr>
\t\t\t\t\t{% endif %}
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Magazzino</th>
\t\t\t\t\t\t<td>{{ intervention.warehouse }}</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Cliente</th>
\t\t\t\t\t\t<td>{{ ticket.client }}</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Termid</th>
\t\t\t\t\t\t<td>{{ ticket.termid }}</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Fornitore</th>
\t\t\t\t\t\t<td>{{ ticket.supplier }}</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Operazione</th>
\t\t\t\t\t\t<td>{{ ticket.operation }}</td>
\t\t\t\t\t</tr>
\t\t\t\t\t<tr>
\t\t\t\t\t\t<th>Cliente</th>
\t\t\t\t\t\t<td>{{ ticket.client }}</td>
\t\t\t\t\t</tr>
\t\t\t\t\t{% set jsonReport = ticket.jsonReport|json_decode() %}
\t\t\t\t\t{% for i in jsonReport %}
\t\t\t\t\t\t{% if i['Anomalia'] is defined %}
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t<td colspan=\"2\"><b>Anomalia</b>: {{ i['Anomalia'] }}</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endif %}
\t\t\t\t\t{% endfor %}
\t\t\t\t</table>
\t\t\t</div>
\t\t</div>
\t\t{% block interventionContent %}
\t\t{% endblock %}
\t</section>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script>
\tfunction copyToClipboard(productId, type) {
\t\tvar text = document.getElementById('product_' + productId + '_' + type);
\t\ttext.select();
\t\tnavigator.clipboard.writeText(text.value);
\t\tprintAlertSuccess('Matricola copiata!');
\t}
</script>
{% endblock %}", "role/user/ticket/intervention/index.html.twig", "/var/www/vhosts/eposmanager.software/templates/role/user/ticket/intervention/index.html.twig");
}
}