var/cache/dev/twig/e5/e57603e7ad7bd8c8ae657093d3757f7e.php line 61

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* role/user/ticket/intervention/index.html.twig */
  15. class __TwigTemplate_047b9e2660c27a0511da859dc167509e extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'content' => [$this'block_content'],
  25.             'interventionContent' => [$this'block_interventionContent'],
  26.             'javascripts' => [$this'block_javascripts'],
  27.         ];
  28.     }
  29.     protected function doGetParent(array $context)
  30.     {
  31.         // line 1
  32.         return "role/user/index.html.twig";
  33.     }
  34.     protected function doDisplay(array $context, array $blocks = [])
  35.     {
  36.         $macros $this->macros;
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  38.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""role/user/ticket/intervention/index.html.twig"));
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  40.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""role/user/ticket/intervention/index.html.twig"));
  41.         $this->parent $this->loadTemplate("role/user/index.html.twig""role/user/ticket/intervention/index.html.twig"1);
  42.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  43.         
  44.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  45.         
  46.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47.     }
  48.     // line 3
  49.     public function block_content($context, array $blocks = [])
  50.     {
  51.         $macros $this->macros;
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  53.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  55.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  56.         // line 4
  57.         yield "\t<section class=\"container m_t_20p\">
  58. \t\t<div class=\"row\">
  59. \t\t\t<div class=\"col-12\">\t\t\t
  60. \t\t\t\t<h4 class=\"form_title\">Ticket: ";
  61.         // line 7
  62.         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"falsefalsefalse7), "html"nulltrue);
  63.         yield "</h4>
  64. \t\t\t\t<hr class=\"m_t_none\">
  65. \t\t\t\t<table class=\"table table-sm b_none responsive_font_size\">
  66. \t\t\t\t\t";
  67.         // line 10
  68.         if ((CoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse10), "getAccountTypology", [], "any"falsefalsefalse10) != "technician")) {
  69.             // line 11
  70.             yield "\t\t\t\t\t\t<tr>
  71. \t\t\t\t\t\t\t<th>Tecnico</th>
  72. \t\t\t\t\t\t\t<td>";
  73.             // line 13
  74.             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"falsefalsefalse13), "html"nulltrue);
  75.             yield "</td>
  76. \t\t\t\t\t\t</tr>
  77. \t\t\t\t\t";
  78.         }
  79.         // line 16
  80.         yield "\t\t\t\t\t<tr>
  81. \t\t\t\t\t\t<th>Magazzino</th>
  82. \t\t\t\t\t\t<td>";
  83.         // line 18
  84.         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"falsefalsefalse18), "html"nulltrue);
  85.         yield "</td>
  86. \t\t\t\t\t</tr>
  87. \t\t\t\t\t<tr>
  88. \t\t\t\t\t\t<th>Cliente</th>
  89. \t\t\t\t\t\t<td>";
  90.         // line 22
  91.         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"falsefalsefalse22), "html"nulltrue);
  92.         yield "</td>
  93. \t\t\t\t\t</tr>
  94. \t\t\t\t\t<tr>
  95. \t\t\t\t\t\t<th>Termid</th>
  96. \t\t\t\t\t\t<td>";
  97.         // line 26
  98.         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"falsefalsefalse26), "html"nulltrue);
  99.         yield "</td>
  100. \t\t\t\t\t</tr>
  101. \t\t\t\t\t<tr>
  102. \t\t\t\t\t\t<th>Fornitore</th>
  103. \t\t\t\t\t\t<td>";
  104.         // line 30
  105.         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"falsefalsefalse30), "html"nulltrue);
  106.         yield "</td>
  107. \t\t\t\t\t</tr>
  108. \t\t\t\t\t<tr>
  109. \t\t\t\t\t\t<th>Operazione</th>
  110. \t\t\t\t\t\t<td>";
  111.         // line 34
  112.         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"falsefalsefalse34), "html"nulltrue);
  113.         yield "</td>
  114. \t\t\t\t\t</tr>
  115. \t\t\t\t\t<tr>
  116. \t\t\t\t\t\t<th>Cliente</th>
  117. \t\t\t\t\t\t<td>";
  118.         // line 38
  119.         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"falsefalsefalse38), "html"nulltrue);
  120.         yield "</td>
  121. \t\t\t\t\t</tr>
  122. \t\t\t\t\t";
  123.         // line 40
  124.         $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"falsefalsefalse40));
  125.         // line 41
  126.         yield "\t\t\t\t\t";
  127.         $context['_parent'] = $context;
  128.         $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); })()));
  129.         foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
  130.             // line 42
  131.             yield "\t\t\t\t\t\t";
  132.             if (CoreExtension::getAttribute($this->env$this->source$context["i"], "Anomalia", [], "array"truetruefalse42)) {
  133.                 // line 43
  134.                 yield "\t\t\t\t\t\t\t<tr>
  135. \t\t\t\t\t\t\t\t<td colspan=\"2\"><b>Anomalia</b>: ";
  136.                 // line 44
  137.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["i"], "Anomalia", [], "array"falsefalsefalse44), "html"nulltrue);
  138.                 yield "</td>
  139. \t\t\t\t\t\t\t</tr>
  140. \t\t\t\t\t\t";
  141.             }
  142.             // line 47
  143.             yield "\t\t\t\t\t";
  144.         }
  145.         $_parent $context['_parent'];
  146.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
  147.         $context array_intersect_key($context$_parent) + $_parent;
  148.         // line 48
  149.         yield "\t\t\t\t</table>
  150. \t\t\t</div>
  151. \t\t</div>
  152. \t\t";
  153.         // line 51
  154.         yield from $this->unwrap()->yieldBlock('interventionContent'$context$blocks);
  155.         // line 53
  156.         yield "\t</section>
  157. ";
  158.         
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160.         
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  162.         return; yield '';
  163.     }
  164.     // line 51
  165.     public function block_interventionContent($context, array $blocks = [])
  166.     {
  167.         $macros $this->macros;
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  169.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""interventionContent"));
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  171.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""interventionContent"));
  172.         // line 52
  173.         yield "\t\t";
  174.         
  175.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  176.         
  177.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  178.         return; yield '';
  179.     }
  180.     // line 56
  181.     public function block_javascripts($context, array $blocks = [])
  182.     {
  183.         $macros $this->macros;
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  185.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  187.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  188.         // line 57
  189.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  190.         yield "
  191. <script>
  192. \tfunction copyToClipboard(productId, type) {
  193. \t\tvar text = document.getElementById('product_' + productId + '_' + type);
  194. \t\ttext.select();
  195. \t\tnavigator.clipboard.writeText(text.value);
  196. \t\tprintAlertSuccess('Matricola copiata!');
  197. \t}
  198. </script>
  199. ";
  200.         
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  202.         
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  204.         return; yield '';
  205.     }
  206.     /**
  207.      * @codeCoverageIgnore
  208.      */
  209.     public function getTemplateName()
  210.     {
  211.         return "role/user/ticket/intervention/index.html.twig";
  212.     }
  213.     /**
  214.      * @codeCoverageIgnore
  215.      */
  216.     public function isTraitable()
  217.     {
  218.         return false;
  219.     }
  220.     /**
  221.      * @codeCoverageIgnore
  222.      */
  223.     public function getDebugInfo()
  224.     {
  225.         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,);
  226.     }
  227.     public function getSourceContext()
  228.     {
  229.         return new Source("{% extends 'role/user/index.html.twig' %}
  230. {% block content %}
  231. \t<section class=\"container m_t_20p\">
  232. \t\t<div class=\"row\">
  233. \t\t\t<div class=\"col-12\">\t\t\t
  234. \t\t\t\t<h4 class=\"form_title\">Ticket: {{ ticket.number }}</h4>
  235. \t\t\t\t<hr class=\"m_t_none\">
  236. \t\t\t\t<table class=\"table table-sm b_none responsive_font_size\">
  237. \t\t\t\t\t{% if app.user.getAccountTypology != 'technician' %}
  238. \t\t\t\t\t\t<tr>
  239. \t\t\t\t\t\t\t<th>Tecnico</th>
  240. \t\t\t\t\t\t\t<td>{{ ticket.technician }}</td>
  241. \t\t\t\t\t\t</tr>
  242. \t\t\t\t\t{% endif %}
  243. \t\t\t\t\t<tr>
  244. \t\t\t\t\t\t<th>Magazzino</th>
  245. \t\t\t\t\t\t<td>{{ intervention.warehouse }}</td>
  246. \t\t\t\t\t</tr>
  247. \t\t\t\t\t<tr>
  248. \t\t\t\t\t\t<th>Cliente</th>
  249. \t\t\t\t\t\t<td>{{ ticket.client }}</td>
  250. \t\t\t\t\t</tr>
  251. \t\t\t\t\t<tr>
  252. \t\t\t\t\t\t<th>Termid</th>
  253. \t\t\t\t\t\t<td>{{ ticket.termid }}</td>
  254. \t\t\t\t\t</tr>
  255. \t\t\t\t\t<tr>
  256. \t\t\t\t\t\t<th>Fornitore</th>
  257. \t\t\t\t\t\t<td>{{ ticket.supplier }}</td>
  258. \t\t\t\t\t</tr>
  259. \t\t\t\t\t<tr>
  260. \t\t\t\t\t\t<th>Operazione</th>
  261. \t\t\t\t\t\t<td>{{ ticket.operation }}</td>
  262. \t\t\t\t\t</tr>
  263. \t\t\t\t\t<tr>
  264. \t\t\t\t\t\t<th>Cliente</th>
  265. \t\t\t\t\t\t<td>{{ ticket.client }}</td>
  266. \t\t\t\t\t</tr>
  267. \t\t\t\t\t{% set jsonReport = ticket.jsonReport|json_decode() %}
  268. \t\t\t\t\t{% for i in jsonReport %}
  269. \t\t\t\t\t\t{% if i['Anomalia'] is defined %}
  270. \t\t\t\t\t\t\t<tr>
  271. \t\t\t\t\t\t\t\t<td colspan=\"2\"><b>Anomalia</b>: {{ i['Anomalia'] }}</td>
  272. \t\t\t\t\t\t\t</tr>
  273. \t\t\t\t\t\t{% endif %}
  274. \t\t\t\t\t{% endfor %}
  275. \t\t\t\t</table>
  276. \t\t\t</div>
  277. \t\t</div>
  278. \t\t{% block interventionContent %}
  279. \t\t{% endblock %}
  280. \t</section>
  281. {% endblock %}
  282. {% block javascripts %}
  283. {{ parent() }}
  284. <script>
  285. \tfunction copyToClipboard(productId, type) {
  286. \t\tvar text = document.getElementById('product_' + productId + '_' + type);
  287. \t\ttext.select();
  288. \t\tnavigator.clipboard.writeText(text.value);
  289. \t\tprintAlertSuccess('Matricola copiata!');
  290. \t}
  291. </script>
  292. {% endblock %}""role/user/ticket/intervention/index.html.twig""/var/www/vhosts/eposmanager.software/templates/role/user/ticket/intervention/index.html.twig");
  293.     }
  294. }