var/cache/dev/twig/bf/bf84a41932862dd795a4bef7aa223f1d.php line 57

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. /* @UVDeskSupportCenter/Knowledgebase/ticket.html.twig */
  14. class __TwigTemplate_6ce1bc886a3354754c177acc91477a77 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->blocks = [
  23.             'title' => [$this'block_title'],
  24.             'ogtitle' => [$this'block_ogtitle'],
  25.             'twtitle' => [$this'block_twtitle'],
  26.             'metaDescription' => [$this'block_metaDescription'],
  27.             'metaKeywords' => [$this'block_metaKeywords'],
  28.             'body' => [$this'block_body'],
  29.             'footer' => [$this'block_footer'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context)
  33.     {
  34.         // line 1
  35.         return "@UVDeskSupportCenter/Templates/layout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = [])
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@UVDeskSupportCenter/Knowledgebase/ticket.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@UVDeskSupportCenter/Knowledgebase/ticket.html.twig"));
  44.         // line 8
  45.         $context["recaptchaDetail"] = twig_get_attribute($this->env$this->source, (isset($context["recaptcha_service"]) || array_key_exists("recaptcha_service"$context) ? $context["recaptcha_service"] : (function () { throw new RuntimeError('Variable "recaptcha_service" does not exist.'8$this->source); })()), "getRecaptchaDetails", [], "method"falsefalsefalse8);
  46.         // line 1
  47.         $this->parent $this->loadTemplate("@UVDeskSupportCenter/Templates/layout.html.twig""@UVDeskSupportCenter/Knowledgebase/ticket.html.twig"1);
  48.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  49.         
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51.         
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  53.     }
  54.     // line 2
  55.     public function block_title($context, array $blocks = [])
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  62.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Create Ticket", [], "messages");
  63.         
  64.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65.         
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  67.     }
  68.     // line 3
  69.     public function block_ogtitle($context, array $blocks = [])
  70.     {
  71.         $macros $this->macros;
  72.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtitle"));
  74.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""ogtitle"));
  76.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Create Ticket", [], "messages");
  77.         
  78.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  79.         
  80.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  81.     }
  82.     // line 4
  83.     public function block_twtitle($context, array $blocks = [])
  84.     {
  85.         $macros $this->macros;
  86.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  87.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""twtitle"));
  88.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  89.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""twtitle"));
  90.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Create Ticket", [], "messages");
  91.         
  92.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  93.         
  94.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  95.     }
  96.     // line 5
  97.     public function block_metaDescription($context, array $blocks = [])
  98.     {
  99.         $macros $this->macros;
  100.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  101.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  102.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  103.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaDescription"));
  104.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("create.ticket.metaDescription", [], "messages");
  105.         
  106.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  107.         
  108.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  109.     }
  110.     // line 6
  111.     public function block_metaKeywords($context, array $blocks = [])
  112.     {
  113.         $macros $this->macros;
  114.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  115.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaKeywords"));
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  117.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""metaKeywords"));
  118.         echo $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("create.ticket.metaKeywords", [], "messages");
  119.         
  120.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  121.         
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  123.     }
  124.     // line 10
  125.     public function block_body($context, array $blocks = [])
  126.     {
  127.         $macros $this->macros;
  128.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  129.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  130.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  131.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  132.         // line 11
  133.         echo "\t<style>
  134. \t\t.uv-field{
  135. \t\t\tpadding: 5px 10px;
  136. \t\t}
  137. \t\t.grammarly-fix-message-container {
  138. \t\t\toverflow: visible !important;
  139. \t\t}
  140. \t\t.grammarly-fix-message {
  141. \t\t\tmax-width: 158%;
  142. \t\t}
  143. \t\t.uv-field-success-icon {
  144. \t\t\tdisplay: none !important;
  145. \t\t}
  146. \t\t.mce-path {
  147.       \t\tdisplay: none !important;
  148. \t\t}
  149. \t\t
  150. \t\t.uv-element-block label.uv-field-label.required::after {
  151. \t\t\tcontent: \"*\";
  152. \t\t\tcolor: #FC6868;
  153. \t\t\tfont-weight: 700;
  154. \t\t\tdisplay: inline-block;
  155. \t\t}
  156. \t</style>
  157. \t";
  158.         // line 36
  159.         $context["isTicketViewPage"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse36), "id", [], "any"truetruefalse36)) ? (true) : (false));
  160.         // line 37
  161.         echo "\t
  162. \t<div class=\"uv-paper-article uv-paper-form\">
  163. \t\t<div class=\"uv-paper-section\">
  164. \t\t\t<section>
  165. \t\t\t\t<h1>";
  166.         // line 42
  167.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Create Ticket Request"), "html"nulltrue);
  168.         echo "</h1>
  169. \t\t\t\t<div class=\"uv-form\">
  170. \t\t\t\t\t<form action=\"";
  171.         // line 45
  172.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_customer_create_ticket");
  173.         echo "\" method=\"post\" id=\"create-ticket-form\" enctype=\"multipart/form-data\">
  174. \t\t\t\t\t\t";
  175.         // line 46
  176.         if ( !(isset($context["isTicketViewPage"]) || array_key_exists("isTicketViewPage"$context) ? $context["isTicketViewPage"] : (function () { throw new RuntimeError('Variable "isTicketViewPage" does not exist.'46$this->source); })())) {
  177.             // line 47
  178.             echo "\t\t\t\t\t\t\t<!-- Field -->
  179. \t\t\t\t\t\t\t<div class=\"uv-element-block\">
  180. \t\t\t\t\t\t\t\t<label class=\"uv-field-label required\">";
  181.             // line 49
  182.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Name"), "html"nulltrue);
  183.             echo "</label>
  184. \t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  185. \t\t\t\t\t\t\t\t\t<input name=\"name\" class=\"uv-field create-ticket\" type=\"text\" value=\"";
  186.             // line 51
  187.             ((twig_get_attribute($this->env$this->source, ($context["post"] ?? null), "name", [], "any"truetruefalse51)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'51$this->source); })()), "name", [], "any"falsefalsefalse51), "html"nulltrue))) : (print ("")));
  188.             echo "\">
  189. \t\t\t\t\t\t\t\t</div>
  190. \t\t\t\t\t\t\t\t<span class=\"uv-field-info\">";
  191.             // line 53
  192.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter your name"), "html"nulltrue);
  193.             echo "</span>
  194. \t\t\t\t\t\t\t</div>
  195. \t\t\t\t\t\t\t<!-- //Field -->
  196. \t\t\t\t\t\t\t<!-- Field -->
  197. \t\t\t\t\t\t\t<div class=\"uv-element-block\">
  198. \t\t\t\t\t\t\t\t<label class=\"uv-field-label required\">";
  199.             // line 59
  200.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "html"nulltrue);
  201.             echo "</label>
  202. \t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  203. \t\t\t\t\t\t\t\t\t<input name=\"from\" class=\"uv-field create-ticket\" type=\"text\" value=\"";
  204.             // line 61
  205.             ((twig_get_attribute($this->env$this->source, ($context["post"] ?? null), "from", [], "any"truetruefalse61)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'61$this->source); })()), "from", [], "any"falsefalsefalse61), "html"nulltrue))) : (print ("")));
  206.             echo "\">
  207. \t\t\t\t\t\t\t\t</div>
  208. \t\t\t\t\t\t\t\t<span class=\"uv-field-info\">";
  209.             // line 63
  210.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter your email"), "html"nulltrue);
  211.             echo "</span>
  212. \t\t\t\t\t\t\t</div>
  213. \t\t\t\t\t\t\t<!-- //Field -->
  214. \t\t\t\t\t\t";
  215.         }
  216.         // line 67
  217.         echo "\t\t\t\t\t\t<!-- Field -->
  218. \t\t\t\t\t\t<div class=\"uv-element-block\">
  219. \t\t\t\t\t\t\t<label class=\"uv-field-label required\">";
  220.         // line 69
  221.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Type"), "html"nulltrue);
  222.         echo "</label>
  223. \t\t\t\t\t\t\t<div class=\"uv-field-block\">
  224. \t\t\t\t\t\t\t\t<select name=\"type\" class=\"uv-select create-ticket\" id=\"type\">
  225. \t\t\t\t\t\t\t\t\t<option value=\"\">";
  226.         // line 72
  227.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Select type"), "html"nulltrue);
  228.         echo "</option>
  229. \t\t\t\t\t\t\t\t\t";
  230.         // line 74
  231.         $context['_parent'] = $context;
  232.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["ticket_service"]) || array_key_exists("ticket_service"$context) ? $context["ticket_service"] : (function () { throw new RuntimeError('Variable "ticket_service" does not exist.'74$this->source); })()), "getTypes", [], "method"falsefalsefalse74));
  233.         foreach ($context['_seq'] as $context["_key"] => $context["type"]) {
  234.             // line 75
  235.             echo "\t\t\t\t\t\t\t\t\t\t<option value=\"";
  236.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["type"], "id", [], "any"falsefalsefalse75), "html"nulltrue);
  237.             echo "\" ";
  238.             echo (((twig_get_attribute($this->env$this->source, ($context["post"] ?? null), "type", [], "any"truetruefalse75) && (twig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'75$this->source); })()), "type", [], "any"falsefalsefalse75) == twig_get_attribute($this->env$this->source$context["type"], "id", [], "any"falsefalsefalse75)))) ? ("selected") : (""));
  239.             echo ">";
  240.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["type"], "name", [], "any"falsefalsefalse75), "html"nulltrue);
  241.             echo "</option>
  242. \t\t\t\t\t\t\t\t\t";
  243.         }
  244.         $_parent $context['_parent'];
  245.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['type'], $context['_parent'], $context['loop']);
  246.         $context array_intersect_key($context$_parent) + $_parent;
  247.         // line 77
  248.         echo "\t\t\t\t\t\t\t\t</select>
  249. \t\t\t\t\t\t\t</div>
  250. \t\t\t\t\t\t\t<span class=\"uv-field-info\">";
  251.         // line 79
  252.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Choose ticket type"), "html"nulltrue);
  253.         echo "</span>
  254. \t\t\t\t\t\t</div>
  255. \t\t\t\t\t\t<!-- //Field -->
  256. \t\t\t\t\t\t<!-- Field -->
  257. \t\t\t\t\t\t<div class=\"uv-element-block\">
  258. \t\t\t\t\t\t\t<label class=\"uv-field-label required\">";
  259.         // line 85
  260.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Subject"), "html"nulltrue);
  261.         echo "</label>
  262. \t\t\t\t\t\t\t<div class=\"uv-field-block\">
  263. \t\t\t\t\t\t\t\t<input name=\"subject\" class=\"uv-field create-ticket\" type=\"text\" value=\"";
  264.         // line 87
  265.         ((twig_get_attribute($this->env$this->source, ($context["post"] ?? null), "subject", [], "any"truetruefalse87)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'87$this->source); })()), "subject", [], "any"falsefalsefalse87), "html"nulltrue))) : (print ("")));
  266.         echo "\">
  267. \t\t\t\t\t\t\t</div>
  268. \t\t\t\t\t\t\t<span class=\"uv-field-info\">";
  269.         // line 89
  270.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ticket subject"), "html"nulltrue);
  271.         echo "</span>
  272. \t\t\t\t\t\t</div>
  273. \t\t\t\t\t\t<!-- //Field -->
  274. \t\t\t\t\t\t<!-- Field -->
  275. \t\t\t\t\t\t<div class=\"uv-element-block\">
  276. \t\t\t\t\t\t\t<label class=\"uv-field-label required\">";
  277.         // line 95
  278.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Message"), "html"nulltrue);
  279.         echo "</label>
  280. \t\t\t\t\t\t\t<div class=\"uv-field-block grammarly-fix-message-container\">
  281. \t\t\t\t\t\t\t\t<textarea name=\"reply\" id=\"create-reply\" class=\"uv-field create-ticket grammarly-fix-message\" type=\"text\">";
  282.         // line 97
  283.         ((twig_get_attribute($this->env$this->source, ($context["post"] ?? null), "reply", [], "any"truetruefalse97)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["post"]) || array_key_exists("post"$context) ? $context["post"] : (function () { throw new RuntimeError('Variable "post" does not exist.'97$this->source); })()), "reply", [], "any"falsefalsefalse97), "html"nulltrue))) : (print ("")));
  284.         echo "</textarea>
  285. \t\t\t\t\t\t\t</div>
  286. \t\t\t\t\t\t\t<span class=\"uv-field-info\">";
  287.         // line 99
  288.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ticket query message"), "html"nulltrue);
  289.         echo "</span>
  290. \t\t\t\t\t\t</div>
  291. \t\t\t\t\t\t<!-- //Field -->
  292. \t\t\t\t\t\t<!-- Field -->
  293. \t\t\t\t\t\t<div class=\"uv-element-block attachment-block uv-no-error-success-icon\" id=\"uv-attachment-option\">
  294. \t\t\t\t\t\t\t<label>
  295. \t\t\t\t\t\t\t\t<span class=\"uv-file-label\">";
  296.         // line 106
  297.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Add Attachment"), "html"nulltrue);
  298.         echo "</span>
  299. \t\t\t\t\t\t\t</label>
  300. \t\t\t\t\t\t</div>
  301. \t\t\t\t\t\t<!-- //Field -->
  302. \t\t\t\t\t\t";
  303.         // line 110
  304.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'110$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'110$this->source); })()), "isActive", [], "any"falsefalsefalse110) == true))) {
  305.             // line 111
  306.             echo "\t\t\t\t\t\t\t<div class=\"clearfix\"></div>
  307. \t\t\t\t\t\t\t<div class=\"g-recaptcha\" data-sitekey=\"";
  308.             // line 112
  309.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'112$this->source); })()), "siteKey", [], "any"falsefalsefalse112), "html"nulltrue);
  310.             echo "\"></div>
  311. \t\t\t\t\t\t\t<div class=\"clearfix\"></div>
  312.                         ";
  313.         } else {
  314.             // line 115
  315.             echo "                            <!-- Recaptcha will not support -->
  316.                         ";
  317.         }
  318.         // line 117
  319.         echo "
  320. \t\t\t\t\t\t";
  321.         // line 119
  322.         echo "\t\t\t\t\t\t";
  323.         $context["CustomerCustomFields"] = twig_get_attribute($this->env$this->source, (isset($context["ticket_service"]) || array_key_exists("ticket_service"$context) ? $context["ticket_service"] : (function () { throw new RuntimeError('Variable "ticket_service" does not exist.'119$this->source); })()), "getCustomerCreateTicketCustomFieldSnippet", [], "method"falsefalsefalse119);
  324.         // line 120
  325.         echo "\t\t\t\t\t\t";
  326.         $context["removeMe"] = [];
  327.         // line 121
  328.         echo "\t\t\t\t\t\t";
  329.         if ((isset($context["CustomerCustomFields"]) || array_key_exists("CustomerCustomFields"$context) ? $context["CustomerCustomFields"] : (function () { throw new RuntimeError('Variable "CustomerCustomFields" does not exist.'121$this->source); })())) {
  330.             // line 122
  331.             echo "\t\t\t\t\t\t\t<div class=\"custom-fields clearfix\">
  332. \t\t\t\t\t\t\t\t";
  333.             // line 123
  334.             $context['_parent'] = $context;
  335.             $context['_seq'] = twig_ensure_traversable((isset($context["CustomerCustomFields"]) || array_key_exists("CustomerCustomFields"$context) ? $context["CustomerCustomFields"] : (function () { throw new RuntimeError('Variable "CustomerCustomFields" does not exist.'123$this->source); })()));
  336.             foreach ($context['_seq'] as $context["key"] => $context["customField"]) {
  337.                 // line 124
  338.                 echo "\t\t\t\t\t\t\t\t\t<div class=\"uv-element-block input-group ";
  339.                 echo ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "customFieldsDependency", [], "any"falsefalsefalse124))) ? ("dependent") : (""));
  340.                 echo " ";
  341.                 $context['_parent'] = $context;
  342.                 $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["customField"], "customFieldsDependency", [], "any"falsefalsefalse124));
  343.                 foreach ($context['_seq'] as $context["_key"] => $context["customFieldCustomFieldsDependency"]) {
  344.                     echo " dependency";
  345.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customFieldCustomFieldsDependency"], "id", [], "any"falsefalsefalse124), "html"nulltrue);
  346.                 }
  347.                 $_parent $context['_parent'];
  348.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customFieldCustomFieldsDependency'], $context['_parent'], $context['loop']);
  349.                 $context array_intersect_key($context$_parent) + $_parent;
  350.                 echo "\" style=\"position: relative; ";
  351.                 echo ((twig_length_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "customFieldsDependency", [], "any"falsefalsefalse124))) ? ("display: none;") : (""));
  352.                 echo "\">
  353. \t\t\t\t\t\t\t\t\t\t<label class=\"uv-field-label\" for=\"for";
  354.                 // line 125
  355.                 echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse125) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse125)), "html"nulltrue);
  356.                 echo "\">";
  357.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse125), "html"nulltrue);
  358.                 echo "</label>
  359. \t\t\t\t\t\t\t\t\t\t";
  360.                 // line 126
  361.                 if ((twig_get_attribute($this->env$this->source$context["customField"], "fieldType", [], "any"falsefalsefalse126) == "text")) {
  362.                     // line 127
  363.                     echo "\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  364. \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"";
  365.                     // line 128
  366.                     ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["customField"], "validation", [], "array"falsetruefalse128), "fieldtype", [], "array"truetruefalse128)) ? (print (twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source$context["customField"], "validation", [], "array"falsefalsefalse128), "fieldtype", [], "array"falsefalsefalse128), "html"nulltrue))) : (print ("text")));
  367.                     echo "\" name=\"customFields[";
  368.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse128), "html"nulltrue);
  369.                     echo "]\" class=\"uv-field create-ticket\" value=\"\" ";
  370.                     echo ((twig_get_attribute($this->env$this->source$context["customField"], "required", [], "any"falsefalsefalse128)) ? ("required") : (""));
  371.                     echo " id=\"for";
  372.                     echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse128) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse128)), "html"nulltrue);
  373.                     echo "\" placeholder=\"";
  374.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "placeholder", [], "any"falsefalsefalse128), "html"nulltrue);
  375.                     echo "\">
  376. \t\t\t\t\t\t\t\t\t\t\t</div>
  377. \t\t\t\t\t\t\t\t\t\t";
  378.                 } elseif (twig_in_filter(twig_get_attribute($this->env$this->source,                 // line 131
  379. $context["customField"], "fieldType", [], "any"falsefalsefalse131), [=> "date"=> "time"=> "datetime"])) {
  380.                     // line 132
  381.                     echo "\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  382. \t\t\t\t\t\t\t\t\t\t\t\t<input class=\"uv-field form-control create-ticket uv-date-picker ";
  383.                     // line 133
  384.                     if ((twig_get_attribute($this->env$this->source$context["customField"], "fieldType", [], "any"falsefalsefalse133) == "time")) {
  385.                         echo "time";
  386.                     } else {
  387.                         echo "calendar";
  388.                     }
  389.                     echo " uv-header-";
  390.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "fieldType", [], "any"falsefalsefalse133), "html"nulltrue);
  391.                     echo "\" type=\"text\" name=\"customFields[";
  392.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse133), "html"nulltrue);
  393.                     echo "]\" ";
  394.                     echo ((twig_get_attribute($this->env$this->source$context["customField"], "required", [], "any"falsefalsefalse133)) ? ("required") : (""));
  395.                     echo " id=\"for";
  396.                     echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse133) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse133)), "html"nulltrue);
  397.                     echo "\" value=\"\">
  398. \t\t\t\t\t\t\t\t\t\t\t</div>
  399. \t\t\t\t\t\t\t\t\t\t";
  400.                 } elseif ((twig_get_attribute($this->env$this->source,                 // line 135
  401. $context["customField"], "fieldType", [], "any"falsefalsefalse135) == "textarea")) {
  402.                     // line 136
  403.                     echo "\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  404. \t\t\t\t\t\t\t\t\t\t\t\t<textarea name=\"customFields[";
  405.                     // line 137
  406.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse137), "html"nulltrue);
  407.                     echo "]\" class=\"uv-field create-ticket\" ";
  408.                     echo ((twig_get_attribute($this->env$this->source$context["customField"], "required", [], "any"falsefalsefalse137)) ? ("required") : (""));
  409.                     echo " id=\"for";
  410.                     echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse137) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse137)), "html"nulltrue);
  411.                     echo "\"></textarea>
  412. \t\t\t\t\t\t\t\t\t\t\t</div>
  413. \t\t\t\t\t\t\t\t\t\t";
  414.                 } elseif (twig_in_filter(twig_get_attribute($this->env$this->source,                 // line 140
  415. $context["customField"], "fieldType", [], "any"falsefalsefalse140), [=> "file"])) {
  416.                     // line 141
  417.                     echo "\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  418. \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" name=\"customFields[";
  419.                     // line 142
  420.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse142), "html"nulltrue);
  421.                     echo "]\" class=\"uv-field create-ticket\" ";
  422.                     echo ((twig_get_attribute($this->env$this->source$context["customField"], "required", [], "any"falsefalsefalse142)) ? ("required") : (""));
  423.                     echo " id=\"for";
  424.                     echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse142) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse142)), "html"nulltrue);
  425.                     echo "\">
  426. \t\t\t\t\t\t\t\t\t\t\t</div>
  427. \t\t\t\t\t\t\t\t\t\t";
  428.                 } elseif (twig_in_filter(twig_get_attribute($this->env$this->source,                 // line 145
  429. $context["customField"], "fieldType", [], "any"falsefalsefalse145), [=> "select"])) {
  430.                     // line 146
  431.                     echo "\t\t\t\t\t\t\t\t\t\t\t";
  432.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["customField"], "customFieldValues", [], "any"falsefalsefalse146))) {
  433.                         // line 147
  434.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  435. \t\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"customFields[";
  436.                         // line 148
  437.                         echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse148), "html"nulltrue);
  438.                         echo "]\" class=\"uv-select create-ticket\" id=\"for";
  439.                         echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse148) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse148)), "html"nulltrue);
  440.                         echo "\" ";
  441.                         echo ((twig_get_attribute($this->env$this->source$context["customField"], "required", [], "any"falsefalsefalse148)) ? ("required") : (""));
  442.                         echo ">
  443. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">";
  444.                         // line 149
  445.                         echo "Select option";
  446.                         echo "</option>
  447. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  448.                         // line 150
  449.                         $context['_parent'] = $context;
  450.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["customField"], "customFieldValues", [], "any"falsefalsefalse150));
  451.                         foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
  452.                             // line 151
  453.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"";
  454.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customFieldValues"], "id", [], "any"falsefalsefalse151), "html"nulltrue);
  455.                             echo "\">";
  456.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customFieldValues"], "name", [], "any"falsefalsefalse151), "html"nulltrue);
  457.                             echo "</option>
  458. \t\t\t\t\t\t\t\t\t\t\t\t\t\t";
  459.                         }
  460.                         $_parent $context['_parent'];
  461.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customFieldValues'], $context['_parent'], $context['loop']);
  462.                         $context array_intersect_key($context$_parent) + $_parent;
  463.                         // line 153
  464.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t\t</select>
  465. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  466. \t\t\t\t\t\t\t\t\t\t\t";
  467.                     } else {
  468.                         // line 156
  469.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t<!--Hide this beacause choices aren't available-->
  470. \t\t\t\t\t\t\t\t\t\t\t\t";
  471.                         // line 157
  472.                         $context["removeMe"] = twig_array_merge((isset($context["removeMe"]) || array_key_exists("removeMe"$context) ? $context["removeMe"] : (function () { throw new RuntimeError('Variable "removeMe" does not exist.'157$this->source); })()), [=> (("for" twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse157)) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse157))]);
  473.                         // line 158
  474.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  475.                     }
  476.                     // line 159
  477.                     echo "
  478. \t\t\t\t\t\t\t\t\t\t";
  479.                 } elseif (twig_in_filter(twig_get_attribute($this->env$this->source,                 // line 160
  480. $context["customField"], "fieldType", [], "any"falsefalsefalse160), [=> "checkbox"])) {
  481.                     // line 161
  482.                     echo "\t\t\t\t\t\t\t\t\t\t\t";
  483.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["customField"], "customFieldValues", [], "any"falsefalsefalse161))) {
  484.                         // line 162
  485.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  486.                         $context['_parent'] = $context;
  487.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["customField"], "customFieldValues", [], "any"falsefalsefalse162));
  488.                         foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
  489.                             // line 163
  490.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-split-field\">
  491. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>
  492. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-checkbox\">
  493. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"customFields[";
  494.                             // line 166
  495.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse166), "html"nulltrue);
  496.                             echo "][]\" value=\"";
  497.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customFieldValues"], "id", [], "any"falsefalsefalse166), "html"nulltrue);
  498.                             echo "\" id=\"for";
  499.                             echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customFieldValues"], "name", [], "any"falsefalsefalse166) . twig_get_attribute($this->env$this->source$context["customFieldValues"], "id", [], "any"falsefalsefalse166)), "html"nulltrue);
  500.                             echo "\" class=\"create-ticket\"/>
  501. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uv-checkbox-view\"></span>
  502. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  503. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uv-radio-label\" for=\"for";
  504.                             // line 169
  505.                             echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customFieldValues"], "name", [], "any"falsefalsefalse169) . twig_get_attribute($this->env$this->source$context["customFieldValues"], "id", [], "any"falsefalsefalse169)), "html"nulltrue);
  506.                             echo "\">";
  507.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customFieldValues"], "name", [], "any"falsefalsefalse169), "html"nulltrue);
  508.                             echo "</span>
  509. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>
  510. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  511. \t\t\t\t\t\t\t\t\t\t\t\t";
  512.                         }
  513.                         $_parent $context['_parent'];
  514.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customFieldValues'], $context['_parent'], $context['loop']);
  515.                         $context array_intersect_key($context$_parent) + $_parent;
  516.                         // line 173
  517.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  518.                     } else {
  519.                         // line 174
  520.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t<!--Hide this beacause choices aren't available-->
  521. \t\t\t\t\t\t\t\t\t\t\t\t";
  522.                         // line 175
  523.                         $context["removeMe"] = twig_array_merge((isset($context["removeMe"]) || array_key_exists("removeMe"$context) ? $context["removeMe"] : (function () { throw new RuntimeError('Variable "removeMe" does not exist.'175$this->source); })()), [=> (("for" twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse175)) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse175))]);
  524.                         // line 176
  525.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  526.                     }
  527.                     // line 177
  528.                     echo "
  529. \t\t\t\t\t\t\t\t\t\t";
  530.                 } elseif (twig_in_filter(twig_get_attribute($this->env$this->source,                 // line 178
  531. $context["customField"], "fieldType", [], "any"falsefalsefalse178), [=> "radio"])) {
  532.                     // line 179
  533.                     echo "\t\t\t\t\t\t\t\t\t\t\t";
  534.                     if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["customField"], "customFieldValues", [], "any"falsefalsefalse179))) {
  535.                         // line 180
  536.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t";
  537.                         $context['_parent'] = $context;
  538.                         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source$context["customField"], "customFieldValues", [], "any"falsefalsefalse180));
  539.                         foreach ($context['_seq'] as $context["_key"] => $context["customFieldValues"]) {
  540.                             // line 181
  541.                             echo "\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-split-field\">
  542. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>
  543. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-radio\">
  544. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"customFields[";
  545.                             // line 184
  546.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse184), "html"nulltrue);
  547.                             echo "]\" value=\"";
  548.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customFieldValues"], "id", [], "any"falsefalsefalse184), "html"nulltrue);
  549.                             echo "\" id=\"for";
  550.                             echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customFieldValues"], "name", [], "any"falsefalsefalse184) . twig_get_attribute($this->env$this->source$context["customFieldValues"], "id", [], "any"falsefalsefalse184)), "html"nulltrue);
  551.                             echo "\" class=\"create-ticket\"/>
  552. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uv-radio-view\"></span>
  553. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  554. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uv-radio-label\" for=\"for";
  555.                             // line 187
  556.                             echo twig_escape_filter($this->env, (twig_get_attribute($this->env$this->source$context["customFieldValues"], "name", [], "any"falsefalsefalse187) . twig_get_attribute($this->env$this->source$context["customFieldValues"], "id", [], "any"falsefalsefalse187)), "html"nulltrue);
  557.                             echo "\">";
  558.                             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["customFieldValues"], "name", [], "any"falsefalsefalse187), "html"nulltrue);
  559.                             echo "</span>
  560. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>
  561. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  562. \t\t\t\t\t\t\t\t\t\t\t\t";
  563.                         }
  564.                         $_parent $context['_parent'];
  565.                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['customFieldValues'], $context['_parent'], $context['loop']);
  566.                         $context array_intersect_key($context$_parent) + $_parent;
  567.                         // line 191
  568.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  569.                     } else {
  570.                         // line 192
  571.                         echo "\t\t\t\t\t\t\t\t\t\t\t\t<!--Hide this beacause choices aren't available-->
  572. \t\t\t\t\t\t\t\t\t\t\t\t";
  573.                         // line 193
  574.                         $context["removeMe"] = twig_array_merge((isset($context["removeMe"]) || array_key_exists("removeMe"$context) ? $context["removeMe"] : (function () { throw new RuntimeError('Variable "removeMe" does not exist.'193$this->source); })()), [=> (("for" twig_get_attribute($this->env$this->source$context["customField"], "name", [], "any"falsefalsefalse193)) . twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse193))]);
  575.                         // line 194
  576.                         echo "\t\t\t\t\t\t\t\t\t\t\t";
  577.                     }
  578.                     // line 195
  579.                     echo "
  580. \t\t\t\t\t\t\t\t\t\t";
  581.                 }
  582.                 // line 197
  583.                 echo "\t\t\t\t\t\t\t\t\t\t";
  584.                 if (twig_get_attribute($this->env$this->source, ($context["formErrors"] ?? null), (("customFields[" twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse197)) . "]"), [], "array"truetruefalse197)) {
  585.                     // line 198
  586.                     echo "\t\t\t\t\t\t\t\t\t\t\t<div class=\"text-danger\">";
  587.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["formErrors"]) || array_key_exists("formErrors"$context) ? $context["formErrors"] : (function () { throw new RuntimeError('Variable "formErrors" does not exist.'198$this->source); })()), (("customFields[" twig_get_attribute($this->env$this->source$context["customField"], "id", [], "any"falsefalsefalse198)) . "]"), [], "array"falsefalsefalse198), "html"nulltrue);
  588.                     echo "</div>
  589. \t\t\t\t\t\t\t\t\t\t";
  590.                 }
  591.                 // line 200
  592.                 echo "\t\t\t\t\t\t\t\t\t</div>
  593. \t\t\t\t\t\t\t\t";
  594.             }
  595.             $_parent $context['_parent'];
  596.             unset($context['_seq'], $context['_iterated'], $context['key'], $context['customField'], $context['_parent'], $context['loop']);
  597.             $context array_intersect_key($context$_parent) + $_parent;
  598.             // line 202
  599.             echo "\t\t\t\t\t\t\t</div>
  600. \t\t\t\t\t\t";
  601.         }
  602.         // line 204
  603.         echo "
  604. \t\t\t\t\t\t<div class=\"uv-element-block\">
  605. \t\t\t\t\t\t\t<button type=\"submit\" id=\"create-ticket-btn\" class=\"uv-btn\">";
  606.         // line 206
  607.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Create Ticket"), "html"nulltrue);
  608.         echo "</button>
  609. \t\t\t\t\t\t</div>
  610. \t\t\t\t\t</form>
  611. \t\t\t\t</div>
  612. \t\t\t</section>
  613. \t\t</div>
  614. \t</div>
  615. \t";
  616.         // line 214
  617.         if (twig_get_attribute($this->env$this->source, (isset($context["user_service"]) || array_key_exists("user_service"$context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.'214$this->source); })()), "isfileExists", [=> "apps/uvdesk/form-component"], "method"falsefalsefalse214)) {
  618.             // line 215
  619.             echo "\t\t";
  620.             echo twig_include($this->env$context"@_uvdesk_extension_uvdesk_form_component/CustomFields/customFieldValidation.html.twig");
  621.             echo 
  622. \t";
  623.         } elseif (twig_get_attribute($this->env$this->source,         // line 216
  624. (isset($context["user_service"]) || array_key_exists("user_service"$context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.'216$this->source); })()), "isfileExists", [=> "apps/uvdesk/custom-fields"], "method"falsefalsefalse216)) {
  625.             // line 217
  626.             echo "\t\t";
  627.             echo twig_include($this->env$context"@_uvdesk_extension_uvdesk_custom_fields/CustomFields/customFieldValidation.html.twig");
  628.             echo 
  629. \t";
  630.         }
  631.         
  632.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  633.         
  634.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  635.     }
  636.     // line 221
  637.     public function block_footer($context, array $blocks = [])
  638.     {
  639.         $macros $this->macros;
  640.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  641.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  642.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  643.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  644.         // line 222
  645.         echo "    
  646. \t";
  647.         // line 223
  648.         $context["isTicketViewPage"] = ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["app"] ?? null), "user", [], "any"falsetruefalse223), "id", [], "any"truetruefalse223)) ? (true) : (false));
  649.         // line 224
  650.         echo "\t";
  651.         $this->displayParentBlock("footer"$context$blocks);
  652.         echo "
  653. \t";
  654.         // line 226
  655.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'226$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'226$this->source); })()), "isActive", [], "any"falsefalsefalse226) == true))) {
  656.             // line 227
  657.             echo "        <script src='https://www.google.com/recaptcha/api.js'></script>
  658.     ";
  659.         }
  660.         // line 229
  661.         echo "    ";
  662.         echo twig_include($this->env$context"@UVDeskSupportCenter/Templates/tinyMCE.html.twig");
  663.         echo "
  664. \t";
  665.         // line 230
  666.         echo twig_include($this->env$context"@UVDeskCoreFramework/Templates/attachment.html.twig");
  667.         echo "
  668. \t<script type=\"text/javascript\">
  669. \t";
  670.         // line 233
  671.         if ((twig_get_attribute($this->env$this->source, (isset($context["user_service"]) || array_key_exists("user_service"$context) ? $context["user_service"] : (function () { throw new RuntimeError('Variable "user_service" does not exist.'233$this->source); })()), "isfileExists", [=> "apps/uvdesk/form-component"], "method"falsefalsefalse233) == false)) {
  672.             // line 234
  673.             echo "\tcustomFieldValidation = {};
  674. \t";
  675.         }
  676.         // line 236
  677.         echo "\t\t\$(function () {
  678. \t\tsfTinyMce.init({
  679.             height: '155px',
  680. \t\t\tselector : '#create-reply',
  681. \t\t\timages_upload_url: \"\",
  682.             setup: function(editor) {
  683.             },
  684. \t\t\tplugins: [
  685.             ],
  686. \t\t\ttoolbar: '| undo redo | bold italic forecolor ',
  687. \t\t});
  688. \t\t\t";
  689.         // line 247
  690.         if (array_key_exists("removeMe"$context)) {
  691.             // line 248
  692.             echo "\t\t\t\t\$.each(";
  693.             echo json_encode((isset($context["removeMe"]) || array_key_exists("removeMe"$context) ? $context["removeMe"] : (function () { throw new RuntimeError('Variable "removeMe" does not exist.'248$this->source); })()));
  694.             echo ", function(key, value){
  695. \t\t\t\t\t\$('label[for=\"' + value + '\"]').parent().hide();
  696. \t\t\t\t});
  697. \t\t\t";
  698.         }
  699.         // line 252
  700.         echo "\t\t\t\$('.uv-header-date').datetimepicker({
  701.             \tformat: 'YYYY-MM-DD',
  702.         \t});
  703.         \t\$('.uv-header-time').datetimepicker({
  704.             \tformat: 'LT',
  705.         \t});
  706.         \t\$('.uv-header-datetime').datetimepicker({
  707.             \tformat: 'YYYY-MM-DD H:m:s'
  708.         \t});
  709. \t\t\tvar CreateTicketModel = Backbone.Model.extend({
  710. \t\t\t\tidAttribute : \"id\",
  711. \t\t\t\tdefaults : {
  712. \t\t\t\t\tpath : \"\",
  713. \t\t\t\t},
  714. \t\t\t\tvalidation: _.extend(customFieldValidation, {
  715. \t\t\t\t\t";
  716.         // line 267
  717.         if ( !(isset($context["isTicketViewPage"]) || array_key_exists("isTicketViewPage"$context) ? $context["isTicketViewPage"] : (function () { throw new RuntimeError('Variable "isTicketViewPage" does not exist.'267$this->source); })())) {
  718.             // line 268
  719.             echo "\t\t\t\t\t\t'name' : {
  720. \t\t\t\t\t\t\trequired : true,
  721. \t\t\t\t\t\t\tmsg : '";
  722.             // line 270
  723.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html"nulltrue);
  724.             echo "'
  725. \t\t\t\t\t\t},
  726. \t\t\t\t\t\t'from' :
  727. \t\t\t\t\t\t[{
  728. \t\t\t\t\t\t\trequired : true,
  729. \t\t\t\t\t\t\tmsg : '";
  730.             // line 275
  731.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html"nulltrue);
  732.             echo "'
  733. \t\t\t\t\t\t},{
  734. \t\t\t\t\t\t\tpattern : 'email',
  735. \t\t\t\t\t\t\tmsg : '";
  736.             // line 278
  737.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email address is invalid"), "html"nulltrue);
  738.             echo "'
  739. \t\t\t\t\t\t}],
  740. \t\t\t\t\t";
  741.         }
  742.         // line 281
  743.         echo "\t\t\t\t\t'type' : {
  744. \t\t\t\t\t\trequired : true,
  745. \t\t\t\t\t\tmsg : '";
  746.         // line 283
  747.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html"nulltrue);
  748.         echo "'
  749. \t\t\t\t\t},
  750. \t\t\t\t\t'subject' : {
  751. \t\t\t\t\t\trequired : true,
  752. \t\t\t\t\t\tmsg : '";
  753.         // line 287
  754.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html"nulltrue);
  755.         echo "'
  756. \t\t\t\t\t},
  757. \t\t\t\t\t'reply' : {
  758. \t\t\t\t\t\tfn: function(value) {
  759.                             if(!tinyMCE.get(\"uv-edit-create-thread\"))
  760.                                 return false;
  761.                             var html = tinyMCE.get(\"uv-edit-create-thread\").getContent();
  762.                             if(app.appView.stripHTML(html) != '') {
  763.                                 return false;
  764.                             }
  765.                             return true;
  766.                         },
  767. \t\t\t\t\t\tmsg : '";
  768.         // line 299
  769.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html"nulltrue);
  770.         echo "'
  771. \t\t\t\t\t},
  772. \t\t\t\t\t";
  773.         // line 301
  774.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'301$this->source); })()) && (twig_get_attribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'301$this->source); })()), "isActive", [], "any"falsefalsefalse301) == true))) {
  775.             // line 302
  776.             echo "                        'g-recaptcha-response' : {
  777.                             fn: function(value) {
  778.                                 if(grecaptcha.getResponse().length > 0)
  779.                                     return false;
  780.                                 else
  781.                                     return true;
  782.                             },
  783.                             msg : '";
  784.             // line 309
  785.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please select CAPTCHA"), "html"nulltrue);
  786.             echo "'
  787.                         }
  788. \t\t\t\t    ";
  789.         }
  790.         // line 312
  791.         echo "\t\t\t\t}),
  792. \t\t\t\turlRoot : \"";
  793.         // line 313
  794.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_customer_create_ticket");
  795.         echo "\"
  796. \t\t\t});
  797. \t\t\tvar CreateTicketForm = Backbone.View.extend({
  798. \t\t\t\tinitialize : function() {
  799. \t\t\t\t\tBackbone.Validation.bind(this);
  800. \t\t\t\t\tvar jsonContext = JSON.parse('";
  801.         // line 318
  802.         echo ((array_key_exists("errors"$context)) ? ((isset($context["errors"]) || array_key_exists("errors"$context) ? $context["errors"] : (function () { throw new RuntimeError('Variable "errors" does not exist.'318$this->source); })())) : ("{}"));
  803.         echo "');
  804. \t\t\t\t\tfor (var field in jsonContext) {
  805. \t\t\t\t\t\tBackbone.Validation.callbacks.invalid(this, field, jsonContext[field], 'input');
  806. \t\t\t\t\t}
  807. \t\t\t\t},
  808. \t\t\t\tevents : {
  809. \t\t\t\t\t'click #create-ticket-btn' : \"saveTicket\",
  810. \t\t\t\t\t'change #type' : \"updateCustomFields\",
  811. \t\t\t\t\t'blur input:not(input[type=file]), textarea, select, checkbox': 'formChanegd',
  812. \t\t\t\t\t'change input[type=file]': 'formChanegd',
  813. \t\t\t\t},
  814. \t\t\t\tformChanegd: function(e) {
  815. \t\t\t\t\tthis.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
  816. \t\t\t\t\tthis.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
  817. \t\t\t\t},
  818. \t\t\t\tsaveTicket : function (e) {
  819. \t\t\t\t\te.preventDefault();
  820. \t\t\t\t\tvar currentElement = Backbone.\$(e.currentTarget);
  821. \t\t\t\t\tvar data = currentElement.closest('form').serializeObject();
  822. \t\t\t\t\tthis.model.set(data);
  823. \t\t\t\t\tif(this.model.isValid(true)) {
  824. \t\t\t\t\t\t\$('#create-ticket-form').submit();
  825. \t\t\t\t\t\t\$('form').find('#create-ticket-btn').attr('disabled', 'disabled');
  826. \t\t\t\t\t}
  827. \t\t\t\t},
  828. \t\t\t\tupdateCustomFields : function (e) {
  829. \t\t\t\t\tvar dependentFields = e.currentTarget.value;
  830. \t\t\t\t\tthis.\$('.dependent').hide();
  831. \t\t\t\t\tthis.\$('.dependency' + dependentFields).show();
  832. \t\t\t\t}
  833. \t\t\t});
  834. \t\t\tvar createticketForm = new CreateTicketForm({
  835. \t\t\t\tel : \$(\"#create-ticket-form\"),
  836. \t\t\t\tmodel : new CreateTicketModel()
  837. \t\t\t});
  838. \t\t});
  839. \t</script>
  840. ";
  841.         
  842.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  843.         
  844.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  845.     }
  846.     public function getTemplateName()
  847.     {
  848.         return "@UVDeskSupportCenter/Knowledgebase/ticket.html.twig";
  849.     }
  850.     public function isTraitable()
  851.     {
  852.         return false;
  853.     }
  854.     public function getDebugInfo()
  855.     {
  856.         return array (  860 => 318,  852 => 313,  849 => 312,  843 => 309,  834 => 302,  832 => 301,  827 => 299,  812 => 287,  805 => 283,  801 => 281,  795 => 278,  789 => 275,  781 => 270,  777 => 268,  775 => 267,  758 => 252,  750 => 248,  748 => 247,  735 => 236,  731 => 234,  729 => 233,  723 => 230,  718 => 229,  714 => 227,  712 => 226,  706 => 224,  704 => 223,  701 => 222,  691 => 221,  677 => 217,  675 => 216,  670 => 215,  668 => 214,  657 => 206,  653 => 204,  649 => 202,  642 => 200,  636 => 198,  633 => 197,  629 => 195,  626 => 194,  624 => 193,  621 => 192,  618 => 191,  606 => 187,  596 => 184,  591 => 181,  586 => 180,  583 => 179,  581 => 178,  578 => 177,  575 => 176,  573 => 175,  570 => 174,  567 => 173,  555 => 169,  545 => 166,  540 => 163,  535 => 162,  532 => 161,  530 => 160,  527 => 159,  524 => 158,  522 => 157,  519 => 156,  514 => 153,  503 => 151,  499 => 150,  495 => 149,  487 => 148,  484 => 147,  481 => 146,  479 => 145,  469 => 142,  466 => 141,  464 => 140,  454 => 137,  451 => 136,  449 => 135,  432 => 133,  429 => 132,  427 => 131,  413 => 128,  410 => 127,  408 => 126,  402 => 125,  385 => 124,  381 => 123,  378 => 122,  375 => 121,  372 => 120,  369 => 119,  366 => 117,  362 => 115,  356 => 112,  353 => 111,  351 => 110,  344 => 106,  334 => 99,  329 => 97,  324 => 95,  315 => 89,  310 => 87,  305 => 85,  296 => 79,  292 => 77,  279 => 75,  275 => 74,  270 => 72,  264 => 69,  260 => 67,  253 => 63,  248 => 61,  243 => 59,  234 => 53,  229 => 51,  224 => 49,  220 => 47,  218 => 46,  214 => 45,  208 => 42,  201 => 37,  199 => 36,  172 => 11,  162 => 10,  143 => 6,  124 => 5,  105 => 4,  86 => 3,  67 => 2,  56 => 1,  54 => 8,  41 => 1,);
  857.     }
  858.     public function getSourceContext()
  859.     {
  860.         return new Source("{% extends \"@UVDeskSupportCenter/Templates/layout.html.twig\" %}
  861. {% block title %}{% trans %}Create Ticket{% endtrans %}{% endblock %}
  862. {% block ogtitle %}{% trans %}Create Ticket{% endtrans %}{% endblock %}
  863. {% block twtitle %}{% trans %}Create Ticket{% endtrans %}{% endblock %}
  864. {% block metaDescription %}{% trans %}create.ticket.metaDescription{% endtrans %}{% endblock %}
  865. {% block metaKeywords %}{% trans %}create.ticket.metaKeywords{% endtrans %}{% endblock %}
  866. {% set recaptchaDetail = recaptcha_service.getRecaptchaDetails() %}
  867. {% block body %}
  868. \t<style>
  869. \t\t.uv-field{
  870. \t\t\tpadding: 5px 10px;
  871. \t\t}
  872. \t\t.grammarly-fix-message-container {
  873. \t\t\toverflow: visible !important;
  874. \t\t}
  875. \t\t.grammarly-fix-message {
  876. \t\t\tmax-width: 158%;
  877. \t\t}
  878. \t\t.uv-field-success-icon {
  879. \t\t\tdisplay: none !important;
  880. \t\t}
  881. \t\t.mce-path {
  882.       \t\tdisplay: none !important;
  883. \t\t}
  884. \t\t
  885. \t\t.uv-element-block label.uv-field-label.required::after {
  886. \t\t\tcontent: \"*\";
  887. \t\t\tcolor: #FC6868;
  888. \t\t\tfont-weight: 700;
  889. \t\t\tdisplay: inline-block;
  890. \t\t}
  891. \t</style>
  892. \t{% set isTicketViewPage = (app.user.id is defined ? true : false) %}
  893. \t
  894. \t<div class=\"uv-paper-article uv-paper-form\">
  895. \t\t<div class=\"uv-paper-section\">
  896. \t\t\t<section>
  897. \t\t\t\t<h1>{{ 'Create Ticket Request'|trans }}</h1>
  898. \t\t\t\t<div class=\"uv-form\">
  899. \t\t\t\t\t<form action=\"{{ path('helpdesk_customer_create_ticket') }}\" method=\"post\" id=\"create-ticket-form\" enctype=\"multipart/form-data\">
  900. \t\t\t\t\t\t{% if not isTicketViewPage %}
  901. \t\t\t\t\t\t\t<!-- Field -->
  902. \t\t\t\t\t\t\t<div class=\"uv-element-block\">
  903. \t\t\t\t\t\t\t\t<label class=\"uv-field-label required\">{{ 'Name'|trans }}</label>
  904. \t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  905. \t\t\t\t\t\t\t\t\t<input name=\"name\" class=\"uv-field create-ticket\" type=\"text\" value=\"{{ post.name is defined ? post.name : '' }}\">
  906. \t\t\t\t\t\t\t\t</div>
  907. \t\t\t\t\t\t\t\t<span class=\"uv-field-info\">{{ 'Enter your name'|trans }}</span>
  908. \t\t\t\t\t\t\t</div>
  909. \t\t\t\t\t\t\t<!-- //Field -->
  910. \t\t\t\t\t\t\t<!-- Field -->
  911. \t\t\t\t\t\t\t<div class=\"uv-element-block\">
  912. \t\t\t\t\t\t\t\t<label class=\"uv-field-label required\">{{ 'Email'|trans }}</label>
  913. \t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  914. \t\t\t\t\t\t\t\t\t<input name=\"from\" class=\"uv-field create-ticket\" type=\"text\" value=\"{{ post.from is defined ? post.from : '' }}\">
  915. \t\t\t\t\t\t\t\t</div>
  916. \t\t\t\t\t\t\t\t<span class=\"uv-field-info\">{{ 'Enter your email'|trans }}</span>
  917. \t\t\t\t\t\t\t</div>
  918. \t\t\t\t\t\t\t<!-- //Field -->
  919. \t\t\t\t\t\t{% endif %}
  920. \t\t\t\t\t\t<!-- Field -->
  921. \t\t\t\t\t\t<div class=\"uv-element-block\">
  922. \t\t\t\t\t\t\t<label class=\"uv-field-label required\">{{ 'Type'|trans }}</label>
  923. \t\t\t\t\t\t\t<div class=\"uv-field-block\">
  924. \t\t\t\t\t\t\t\t<select name=\"type\" class=\"uv-select create-ticket\" id=\"type\">
  925. \t\t\t\t\t\t\t\t\t<option value=\"\">{{ 'Select type'|trans }}</option>
  926. \t\t\t\t\t\t\t\t\t{% for type in ticket_service.getTypes() %}
  927. \t\t\t\t\t\t\t\t\t\t<option value=\"{{ type.id }}\" {{ post.type is defined and post.type == type.id ? 'selected' : '' }}>{{ type.name }}</option>
  928. \t\t\t\t\t\t\t\t\t{% endfor %}
  929. \t\t\t\t\t\t\t\t</select>
  930. \t\t\t\t\t\t\t</div>
  931. \t\t\t\t\t\t\t<span class=\"uv-field-info\">{{ 'Choose ticket type'|trans }}</span>
  932. \t\t\t\t\t\t</div>
  933. \t\t\t\t\t\t<!-- //Field -->
  934. \t\t\t\t\t\t<!-- Field -->
  935. \t\t\t\t\t\t<div class=\"uv-element-block\">
  936. \t\t\t\t\t\t\t<label class=\"uv-field-label required\">{{ 'Subject'|trans }}</label>
  937. \t\t\t\t\t\t\t<div class=\"uv-field-block\">
  938. \t\t\t\t\t\t\t\t<input name=\"subject\" class=\"uv-field create-ticket\" type=\"text\" value=\"{{ post.subject is defined ? post.subject : '' }}\">
  939. \t\t\t\t\t\t\t</div>
  940. \t\t\t\t\t\t\t<span class=\"uv-field-info\">{{ 'Ticket subject'|trans }}</span>
  941. \t\t\t\t\t\t</div>
  942. \t\t\t\t\t\t<!-- //Field -->
  943. \t\t\t\t\t\t<!-- Field -->
  944. \t\t\t\t\t\t<div class=\"uv-element-block\">
  945. \t\t\t\t\t\t\t<label class=\"uv-field-label required\">{{ 'Message'|trans }}</label>
  946. \t\t\t\t\t\t\t<div class=\"uv-field-block grammarly-fix-message-container\">
  947. \t\t\t\t\t\t\t\t<textarea name=\"reply\" id=\"create-reply\" class=\"uv-field create-ticket grammarly-fix-message\" type=\"text\">{{ post.reply is defined ? post.reply : '' }}</textarea>
  948. \t\t\t\t\t\t\t</div>
  949. \t\t\t\t\t\t\t<span class=\"uv-field-info\">{{ 'Ticket query message'|trans }}</span>
  950. \t\t\t\t\t\t</div>
  951. \t\t\t\t\t\t<!-- //Field -->
  952. \t\t\t\t\t\t<!-- Field -->
  953. \t\t\t\t\t\t<div class=\"uv-element-block attachment-block uv-no-error-success-icon\" id=\"uv-attachment-option\">
  954. \t\t\t\t\t\t\t<label>
  955. \t\t\t\t\t\t\t\t<span class=\"uv-file-label\">{{ 'Add Attachment'|trans }}</span>
  956. \t\t\t\t\t\t\t</label>
  957. \t\t\t\t\t\t</div>
  958. \t\t\t\t\t\t<!-- //Field -->
  959. \t\t\t\t\t\t{% if recaptchaDetail and recaptchaDetail.isActive == true %}
  960. \t\t\t\t\t\t\t<div class=\"clearfix\"></div>
  961. \t\t\t\t\t\t\t<div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaDetail.siteKey }}\"></div>
  962. \t\t\t\t\t\t\t<div class=\"clearfix\"></div>
  963.                         {% else %}
  964.                             <!-- Recaptcha will not support -->
  965.                         {% endif %}
  966. \t\t\t\t\t\t{# CustomFields #}
  967. \t\t\t\t\t\t{% set CustomerCustomFields = ticket_service.getCustomerCreateTicketCustomFieldSnippet() %}
  968. \t\t\t\t\t\t{% set removeMe = [] %}
  969. \t\t\t\t\t\t{% if CustomerCustomFields %}
  970. \t\t\t\t\t\t\t<div class=\"custom-fields clearfix\">
  971. \t\t\t\t\t\t\t\t{% for key, customField in CustomerCustomFields %}
  972. \t\t\t\t\t\t\t\t\t<div class=\"uv-element-block input-group {{ customField.customFieldsDependency|length ? 'dependent' : '' }} {% for customFieldCustomFieldsDependency in customField.customFieldsDependency %} dependency{{customFieldCustomFieldsDependency.id}}{% endfor %}\" style=\"position: relative; {{ customField.customFieldsDependency|length ? 'display: none;' : '' }}\">
  973. \t\t\t\t\t\t\t\t\t\t<label class=\"uv-field-label\" for=\"for{{customField.name~customField.id}}\">{{ customField.name }}</label>
  974. \t\t\t\t\t\t\t\t\t\t{% if customField.fieldType == 'text' %}
  975. \t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  976. \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"{{ customField['validation']['fieldtype'] is defined ? customField['validation']['fieldtype'] :'text' }}\" name=\"customFields[{{customField.id}}]\" class=\"uv-field create-ticket\" value=\"\" {{ customField.required ? \"required\" : \"\" }} id=\"for{{customField.name~customField.id}}\" placeholder=\"{{customField.placeholder}}\">
  977. \t\t\t\t\t\t\t\t\t\t\t</div>
  978. \t\t\t\t\t\t\t\t\t\t{% elseif customField.fieldType in ['date', 'time', 'datetime'] %}
  979. \t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  980. \t\t\t\t\t\t\t\t\t\t\t\t<input class=\"uv-field form-control create-ticket uv-date-picker {% if customField.fieldType == 'time' %}time{% else %}calendar{% endif %} uv-header-{{ customField.fieldType }}\" type=\"text\" name=\"customFields[{{customField.id}}]\" {{ customField.required ? \"required\" : \"\" }} id=\"for{{customField.name~customField.id}}\" value=\"\">
  981. \t\t\t\t\t\t\t\t\t\t\t</div>
  982. \t\t\t\t\t\t\t\t\t\t{% elseif customField.fieldType == 'textarea' %}
  983. \t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  984. \t\t\t\t\t\t\t\t\t\t\t\t<textarea name=\"customFields[{{customField.id}}]\" class=\"uv-field create-ticket\" {{ customField.required ? \"required\" : \"\" }} id=\"for{{customField.name~customField.id}}\"></textarea>
  985. \t\t\t\t\t\t\t\t\t\t\t</div>
  986. \t\t\t\t\t\t\t\t\t\t{% elseif customField.fieldType in ['file'] %}
  987. \t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  988. \t\t\t\t\t\t\t\t\t\t\t\t<input type=\"file\" name=\"customFields[{{customField.id}}]\" class=\"uv-field create-ticket\" {{ customField.required ? \"required\" : \"\" }} id=\"for{{customField.name~customField.id}}\">
  989. \t\t\t\t\t\t\t\t\t\t\t</div>
  990. \t\t\t\t\t\t\t\t\t\t{% elseif customField.fieldType in ['select'] %}
  991. \t\t\t\t\t\t\t\t\t\t\t{% if customField.customFieldValues is not empty %}
  992. \t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-field-block\">
  993. \t\t\t\t\t\t\t\t\t\t\t\t\t<select name=\"customFields[{{customField.id}}]\" class=\"uv-select create-ticket\" id=\"for{{customField.name~customField.id}}\" {{ customField.required ? \"required\" : \"\" }}>
  994. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"\">{{ 'Select option' }}</option>
  995. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% for customFieldValues in customField.customFieldValues %}
  996. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<option value=\"{{customFieldValues.id}}\">{{customFieldValues.name}}</option>
  997. \t\t\t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  998. \t\t\t\t\t\t\t\t\t\t\t\t\t</select>
  999. \t\t\t\t\t\t\t\t\t\t\t\t</div>
  1000. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  1001. \t\t\t\t\t\t\t\t\t\t\t\t<!--Hide this beacause choices aren't available-->
  1002. \t\t\t\t\t\t\t\t\t\t\t\t{% set removeMe = removeMe|merge([\"for\"~customField.name~customField.id]) %}
  1003. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1004. \t\t\t\t\t\t\t\t\t\t{% elseif customField.fieldType in ['checkbox'] %}
  1005. \t\t\t\t\t\t\t\t\t\t\t{% if customField.customFieldValues is not empty %}
  1006. \t\t\t\t\t\t\t\t\t\t\t\t{% for customFieldValues in customField.customFieldValues %}
  1007. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-split-field\">
  1008. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>
  1009. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-checkbox\">
  1010. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"checkbox\" name=\"customFields[{{customField.id}}][]\" value=\"{{customFieldValues.id}}\" id=\"for{{customFieldValues.name~customFieldValues.id}}\" class=\"create-ticket\"/>
  1011. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uv-checkbox-view\"></span>
  1012. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1013. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uv-radio-label\" for=\"for{{customFieldValues.name~customFieldValues.id}}\">{{ customFieldValues.name }}</span>
  1014. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>
  1015. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1016. \t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1017. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  1018. \t\t\t\t\t\t\t\t\t\t\t\t<!--Hide this beacause choices aren't available-->
  1019. \t\t\t\t\t\t\t\t\t\t\t\t{% set removeMe = removeMe|merge([\"for\"~customField.name~customField.id]) %}
  1020. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1021. \t\t\t\t\t\t\t\t\t\t{% elseif customField.fieldType in ['radio'] %}
  1022. \t\t\t\t\t\t\t\t\t\t\t{% if customField.customFieldValues is not empty %}
  1023. \t\t\t\t\t\t\t\t\t\t\t\t{% for customFieldValues in customField.customFieldValues %}
  1024. \t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-split-field\">
  1025. \t\t\t\t\t\t\t\t\t\t\t\t\t\t<label>
  1026. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"uv-radio\">
  1027. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<input type=\"radio\" name=\"customFields[{{customField.id}}]\" value=\"{{customFieldValues.id}}\" id=\"for{{customFieldValues.name~customFieldValues.id}}\" class=\"create-ticket\"/>
  1028. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uv-radio-view\"></span>
  1029. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1030. \t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"uv-radio-label\" for=\"for{{customFieldValues.name~customFieldValues.id}}\">{{ customFieldValues.name }}</span>
  1031. \t\t\t\t\t\t\t\t\t\t\t\t\t\t</label>
  1032. \t\t\t\t\t\t\t\t\t\t\t\t\t</div>
  1033. \t\t\t\t\t\t\t\t\t\t\t\t{% endfor %}
  1034. \t\t\t\t\t\t\t\t\t\t\t{% else %}
  1035. \t\t\t\t\t\t\t\t\t\t\t\t<!--Hide this beacause choices aren't available-->
  1036. \t\t\t\t\t\t\t\t\t\t\t\t{% set removeMe = removeMe|merge([\"for\"~customField.name~customField.id]) %}
  1037. \t\t\t\t\t\t\t\t\t\t\t{% endif %}
  1038. \t\t\t\t\t\t\t\t\t\t{% endif %}
  1039. \t\t\t\t\t\t\t\t\t\t{% if formErrors['customFields['~customField.id~']'] is defined %}
  1040. \t\t\t\t\t\t\t\t\t\t\t<div class=\"text-danger\">{{formErrors['customFields['~customField.id~']']}}</div>
  1041. \t\t\t\t\t\t\t\t\t\t{% endif %}
  1042. \t\t\t\t\t\t\t\t\t</div>
  1043. \t\t\t\t\t\t\t\t{% endfor %}
  1044. \t\t\t\t\t\t\t</div>
  1045. \t\t\t\t\t\t{% endif %}
  1046. \t\t\t\t\t\t<div class=\"uv-element-block\">
  1047. \t\t\t\t\t\t\t<button type=\"submit\" id=\"create-ticket-btn\" class=\"uv-btn\">{{ 'Create Ticket'|trans }}</button>
  1048. \t\t\t\t\t\t</div>
  1049. \t\t\t\t\t</form>
  1050. \t\t\t\t</div>
  1051. \t\t\t</section>
  1052. \t\t</div>
  1053. \t</div>
  1054. \t{% if user_service.isfileExists('apps/uvdesk/form-component') %}
  1055. \t\t{{ include('@_uvdesk_extension_uvdesk_form_component/CustomFields/customFieldValidation.html.twig') }} 
  1056. \t{% elseif user_service.isfileExists('apps/uvdesk/custom-fields') %}
  1057. \t\t{{ include('@_uvdesk_extension_uvdesk_custom_fields/CustomFields/customFieldValidation.html.twig') }} 
  1058. \t{% endif %}
  1059. {% endblock %}
  1060. {% block footer %}
  1061.     
  1062. \t{% set isTicketViewPage = (app.user.id is defined ? true : false) %}
  1063. \t{{ parent() }}
  1064. \t{% if recaptchaDetail and recaptchaDetail.isActive == true %}
  1065.         <script src='https://www.google.com/recaptcha/api.js'></script>
  1066.     {% endif %}
  1067.     {{ include(\"@UVDeskSupportCenter/Templates/tinyMCE.html.twig\") }}
  1068. \t{{ include('@UVDeskCoreFramework/Templates/attachment.html.twig') }}
  1069. \t<script type=\"text/javascript\">
  1070. \t{% if user_service.isfileExists('apps/uvdesk/form-component') == false %}
  1071. \tcustomFieldValidation = {};
  1072. \t{% endif %}
  1073. \t\t\$(function () {
  1074. \t\tsfTinyMce.init({
  1075.             height: '155px',
  1076. \t\t\tselector : '#create-reply',
  1077. \t\t\timages_upload_url: \"\",
  1078.             setup: function(editor) {
  1079.             },
  1080. \t\t\tplugins: [
  1081.             ],
  1082. \t\t\ttoolbar: '| undo redo | bold italic forecolor ',
  1083. \t\t});
  1084. \t\t\t{% if(removeMe is defined) %}
  1085. \t\t\t\t\$.each({{ removeMe | json_encode |raw }}, function(key, value){
  1086. \t\t\t\t\t\$('label[for=\"' + value + '\"]').parent().hide();
  1087. \t\t\t\t});
  1088. \t\t\t{% endif %}
  1089. \t\t\t\$('.uv-header-date').datetimepicker({
  1090.             \tformat: 'YYYY-MM-DD',
  1091.         \t});
  1092.         \t\$('.uv-header-time').datetimepicker({
  1093.             \tformat: 'LT',
  1094.         \t});
  1095.         \t\$('.uv-header-datetime').datetimepicker({
  1096.             \tformat: 'YYYY-MM-DD H:m:s'
  1097.         \t});
  1098. \t\t\tvar CreateTicketModel = Backbone.Model.extend({
  1099. \t\t\t\tidAttribute : \"id\",
  1100. \t\t\t\tdefaults : {
  1101. \t\t\t\t\tpath : \"\",
  1102. \t\t\t\t},
  1103. \t\t\t\tvalidation: _.extend(customFieldValidation, {
  1104. \t\t\t\t\t{% if not isTicketViewPage %}
  1105. \t\t\t\t\t\t'name' : {
  1106. \t\t\t\t\t\t\trequired : true,
  1107. \t\t\t\t\t\t\tmsg : '{{ \"This field is mandatory\"|trans }}'
  1108. \t\t\t\t\t\t},
  1109. \t\t\t\t\t\t'from' :
  1110. \t\t\t\t\t\t[{
  1111. \t\t\t\t\t\t\trequired : true,
  1112. \t\t\t\t\t\t\tmsg : '{{ \"This field is mandatory\"|trans }}'
  1113. \t\t\t\t\t\t},{
  1114. \t\t\t\t\t\t\tpattern : 'email',
  1115. \t\t\t\t\t\t\tmsg : '{{ \"Email address is invalid\"|trans }}'
  1116. \t\t\t\t\t\t}],
  1117. \t\t\t\t\t{% endif %}
  1118. \t\t\t\t\t'type' : {
  1119. \t\t\t\t\t\trequired : true,
  1120. \t\t\t\t\t\tmsg : '{{ \"This field is mandatory\"|trans }}'
  1121. \t\t\t\t\t},
  1122. \t\t\t\t\t'subject' : {
  1123. \t\t\t\t\t\trequired : true,
  1124. \t\t\t\t\t\tmsg : '{{ \"This field is mandatory\"|trans }}'
  1125. \t\t\t\t\t},
  1126. \t\t\t\t\t'reply' : {
  1127. \t\t\t\t\t\tfn: function(value) {
  1128.                             if(!tinyMCE.get(\"uv-edit-create-thread\"))
  1129.                                 return false;
  1130.                             var html = tinyMCE.get(\"uv-edit-create-thread\").getContent();
  1131.                             if(app.appView.stripHTML(html) != '') {
  1132.                                 return false;
  1133.                             }
  1134.                             return true;
  1135.                         },
  1136. \t\t\t\t\t\tmsg : '{{ \"This field is mandatory\"|trans }}'
  1137. \t\t\t\t\t},
  1138. \t\t\t\t\t{% if recaptchaDetail and recaptchaDetail.isActive == true %}
  1139.                         'g-recaptcha-response' : {
  1140.                             fn: function(value) {
  1141.                                 if(grecaptcha.getResponse().length > 0)
  1142.                                     return false;
  1143.                                 else
  1144.                                     return true;
  1145.                             },
  1146.                             msg : '{{ \"Please select CAPTCHA\"|trans }}'
  1147.                         }
  1148. \t\t\t\t    {% endif %}
  1149. \t\t\t\t}),
  1150. \t\t\t\turlRoot : \"{{ path('helpdesk_customer_create_ticket') }}\"
  1151. \t\t\t});
  1152. \t\t\tvar CreateTicketForm = Backbone.View.extend({
  1153. \t\t\t\tinitialize : function() {
  1154. \t\t\t\t\tBackbone.Validation.bind(this);
  1155. \t\t\t\t\tvar jsonContext = JSON.parse('{{ errors is defined ? errors|raw : \"{}\"  }}');
  1156. \t\t\t\t\tfor (var field in jsonContext) {
  1157. \t\t\t\t\t\tBackbone.Validation.callbacks.invalid(this, field, jsonContext[field], 'input');
  1158. \t\t\t\t\t}
  1159. \t\t\t\t},
  1160. \t\t\t\tevents : {
  1161. \t\t\t\t\t'click #create-ticket-btn' : \"saveTicket\",
  1162. \t\t\t\t\t'change #type' : \"updateCustomFields\",
  1163. \t\t\t\t\t'blur input:not(input[type=file]), textarea, select, checkbox': 'formChanegd',
  1164. \t\t\t\t\t'change input[type=file]': 'formChanegd',
  1165. \t\t\t\t},
  1166. \t\t\t\tformChanegd: function(e) {
  1167. \t\t\t\t\tthis.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
  1168. \t\t\t\t\tthis.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
  1169. \t\t\t\t},
  1170. \t\t\t\tsaveTicket : function (e) {
  1171. \t\t\t\t\te.preventDefault();
  1172. \t\t\t\t\tvar currentElement = Backbone.\$(e.currentTarget);
  1173. \t\t\t\t\tvar data = currentElement.closest('form').serializeObject();
  1174. \t\t\t\t\tthis.model.set(data);
  1175. \t\t\t\t\tif(this.model.isValid(true)) {
  1176. \t\t\t\t\t\t\$('#create-ticket-form').submit();
  1177. \t\t\t\t\t\t\$('form').find('#create-ticket-btn').attr('disabled', 'disabled');
  1178. \t\t\t\t\t}
  1179. \t\t\t\t},
  1180. \t\t\t\tupdateCustomFields : function (e) {
  1181. \t\t\t\t\tvar dependentFields = e.currentTarget.value;
  1182. \t\t\t\t\tthis.\$('.dependent').hide();
  1183. \t\t\t\t\tthis.\$('.dependency' + dependentFields).show();
  1184. \t\t\t\t}
  1185. \t\t\t});
  1186. \t\t\tvar createticketForm = new CreateTicketForm({
  1187. \t\t\t\tel : \$(\"#create-ticket-form\"),
  1188. \t\t\t\tmodel : new CreateTicketModel()
  1189. \t\t\t});
  1190. \t\t});
  1191. \t</script>
  1192. {% endblock %}""@UVDeskSupportCenter/Knowledgebase/ticket.html.twig""/var/www/vhosts/kuckuck.app/support.kuckuck.app/vendor/uvdesk/support-center-bundle/Resources/views/Knowledgebase/ticket.html.twig");
  1193.     }
  1194. }