var/cache/dev/twig/8a/8a6db34cc6f30c2b12c05f8a2616096049e03ab26fb3a12287528abd43e2f9c5.php line 42

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. /* @UVDeskCoreFramework/login.html.twig */
  15. class __TwigTemplate_5b344932f1ef17d07fb8542b01b0cbdbd15745f8de437c12147359690491a9bc 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.             'title' => [$this'block_title'],
  25.             'templateCSS' => [$this'block_templateCSS'],
  26.             'pageWrapper' => [$this'block_pageWrapper'],
  27.             'footer' => [$this'block_footer'],
  28.         ];
  29.     }
  30.     protected function doGetParent(array $context)
  31.     {
  32.         // line 1
  33.         return "@UVDeskCoreFramework//Templates//layout.html.twig";
  34.     }
  35.     protected function doDisplay(array $context, array $blocks = [])
  36.     {
  37.         $macros $this->macros;
  38.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@UVDeskCoreFramework/login.html.twig"));
  40.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@UVDeskCoreFramework/login.html.twig"));
  42.         // line 5
  43.         $context["recaptchaDetail"] = CoreExtension::getAttribute($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.'5$this->source); })()), "getRecaptchaDetails", [], "method"falsefalsefalse5);
  44.         // line 1
  45.         $this->parent $this->loadTemplate("@UVDeskCoreFramework//Templates//layout.html.twig""@UVDeskCoreFramework/login.html.twig"1);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 3
  53.     public function block_title($context, array $blocks = [])
  54.     {
  55.         $macros $this->macros;
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""title"));
  60.         yield "Login";
  61.         
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  63.         
  64.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  65.         return; yield '';
  66.     }
  67.     // line 7
  68.     public function block_templateCSS($context, array $blocks = [])
  69.     {
  70.         $macros $this->macros;
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  72.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""templateCSS"));
  73.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  74.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""templateCSS"));
  75.         // line 8
  76.         yield "<style>
  77.     #loginForm h1 {
  78.         font-size: 28px;
  79.         color: #6F6F6F;
  80.         font-weight: 600;
  81.         margin: 0px 0px 10px 0px;
  82.     }
  83.     .forgot-password-cta {
  84.         position: absolute;
  85.         font-size: 15px !important;
  86.         right: 0px;
  87.         top: 0px;
  88.     }
  89. </style>
  90. ";
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.         
  94.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  95.         return; yield '';
  96.     }
  97.     // line 25
  98.     public function block_pageWrapper($context, array $blocks = [])
  99.     {
  100.         $macros $this->macros;
  101.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  102.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageWrapper"));
  103.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  104.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""pageWrapper"));
  105.         // line 26
  106.         yield "    <div class=\"uv-large-box-plank\">
  107. \t\t<div class=\"uv-large-box-rt\">
  108. \t\t\t<div class=\"uv-center-box uv-text-center\">
  109.                 <form action=\"\" method=\"post\" id=\"loginForm\">
  110.                     <div class=\"uv-adjacent-center\">
  111.                         <h1>";
  112.         // line 31
  113.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Log in to your"), "html"nulltrue);
  114.         yield " <span class=\"uv-brand\">";
  115.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["website"]) || array_key_exists("website"$context) ? $context["website"] : (function () { throw new RuntimeError('Variable "website" does not exist.'31$this->source); })()), "name", [], "any"falsefalsefalse31), "html"nulltrue);
  116.         yield "</span></h1>
  117.                         <p>";
  118.         // line 32
  119.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Enter your credentials below to gain access to your helpdesk account."), "html"nulltrue);
  120.         yield "</p>
  121.                         <div class=\"uv-adjacent-form\">
  122.                             <div class=\"uv-adjacent-element-block\">
  123.                                 <label>";
  124.         // line 35
  125.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Email"), "html"nulltrue);
  126.         yield "</label>
  127.                                 <div class=\"uv-max-field\">
  128.                                     <input type=\"email\" name=\"_username\">
  129.                                 </div>
  130.                             </div>
  131.                             <div class=\"uv-adjacent-element-block\" style=\"position: relative;\">
  132.                                 <label>";
  133.         // line 41
  134.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password"), "html"nulltrue);
  135.         yield "</label>
  136.                                 <div class=\"uv-max-field\">
  137.                                     <a class=\"forgot-password-cta\" href=\"";
  138.         // line 43
  139.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("helpdesk_forgot_account_password");
  140.         yield "\" tabindex=\"-1\">";
  141.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Forgot Password?"), "html"nulltrue);
  142.         yield "</a>
  143.                                     <input type=\"password\"  name=\"_password\">
  144.                                 </div>
  145.                             </div>
  146.                             <div class=\"uv-adjacent-element-block\">
  147.                                 <label>
  148.                                     <div class=\"uv-checkbox\">
  149.                                         <input type=\"checkbox\" name=\"_remember_me\" checked>
  150.                                         <span class=\"uv-checkbox-view\"></span>
  151.                                     </div>
  152.                                     <span class=\"uv-checkbox-label\">";
  153.         // line 54
  154.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Keep me logged in"), "html"nulltrue);
  155.         yield "</span>
  156.                                 </label>
  157.                             </div>
  158.                             <div class=\"uv-adjacent-element-block\">
  159.                                 ";
  160.         // line 58
  161.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'58$this->source); })()) && (=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'58$this->source); })()), "isActive", [], "any"falsefalsefalse58), true)))) {
  162.             // line 59
  163.             yield "                                    <div class=\"clearfix\"></div>
  164.                                     <div class=\"g-recaptcha\" data-sitekey=\"";
  165.             // line 60
  166.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'60$this->source); })()), "siteKey", [], "any"falsefalsefalse60), "html"nulltrue);
  167.             yield "\"></div>
  168.                                     <div class=\"clearfix\"></div>
  169.                                 ";
  170.         } else {
  171.             // line 63
  172.             yield "                                    <!-- Recaptcha will not support -->
  173.                                 ";
  174.         }
  175.         // line 65
  176.         yield "                            </div>
  177.                             <button class=\"uv-btn\">";
  178.         // line 66
  179.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Sign In"), "html"nulltrue);
  180.         yield "</button>
  181.                         </div>
  182.                     </div>
  183.                 </div>
  184.             </form>
  185. \t\t</div>
  186. \t\t<div class=\"uv-large-box-lt\">
  187. \t\t\t<div class=\"uv-center-box uv-text-center\">
  188. \t\t\t\t<a href=\"https://www.uvdesk.com\">
  189.                     <img alt=\"UVdesk\" title=\"UVdesk\" src=\"";
  190.         // line 76
  191.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("bundles/uvdeskcoreframework/images/uvdesk-logo-symbol.svg"), "html"nulltrue);
  192.         yield "\">
  193. \t\t\t\t</a>
  194.             </div>
  195. \t\t</div>
  196. \t</div>
  197. ";
  198.         
  199.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  200.         
  201.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  202.         return; yield '';
  203.     }
  204.     // line 83
  205.     public function block_footer($context, array $blocks = [])
  206.     {
  207.         $macros $this->macros;
  208.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  209.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  210.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  211.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  212.         // line 84
  213.         yield "    ";
  214.         yield from $this->yieldParentBlock("footer"$context$blocks);
  215.         yield "
  216.     ";
  217.         // line 86
  218.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'86$this->source); })()) && (=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'86$this->source); })()), "isActive", [], "any"falsefalsefalse86), true)))) {
  219.             // line 87
  220.             yield "        <script src='https://www.google.com/recaptcha/api.js'></script>
  221.     ";
  222.         }
  223.         // line 89
  224.         yield "
  225.     <script type=\"text/javascript\">
  226.         \$(function () {
  227.              _.extend(Backbone.Validation.callbacks, {
  228.                 valid : function (view, attr, selector) {
  229.                     var \$el = view.\$('[name=\"' + attr + '\"]');
  230.                     \$el.removeClass('uv-field-error');
  231.                     \$el.parents('.uv-adjacent-element-block').find('.uv-field-message').remove();
  232.                 },
  233.                 invalid : function (view, attr, error, selector) {
  234.                     var \$el = view.\$('[name=\"' + attr + '\"]');
  235.                     \$el.addClass('uv-field-error');
  236.                     \$el.parents('.uv-adjacent-element-block').find('.uv-field-message').remove();
  237.                     \$el.parents('.uv-adjacent-element-block').append(\"<span class='uv-field-message'>\" + error + \"</span>\");
  238.                 }
  239.             });
  240.             var LoginModel = Backbone.Model.extend({
  241.                 validation: {
  242.                     '_username': [{
  243.                         required: true,
  244.                         msg: '";
  245.         // line 110
  246.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html"nulltrue);
  247.         yield "'
  248.                     },{
  249.                         pattern: 'email',
  250.                         msg: '";
  251.         // line 113
  252.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This is not a valid email address"), "html"nulltrue);
  253.         yield "'
  254.                     }],
  255.                     '_password': [{
  256.                         required: true,
  257.                         msg: '";
  258.         // line 117
  259.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("This field is mandatory"), "html"nulltrue);
  260.         yield "'
  261.                     },{
  262.                         minLength: 8,
  263.                         msg: '";
  264.         // line 120
  265.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password must contains 8 Characters"), "html"nulltrue);
  266.         yield "'
  267.                     }],
  268.                     ";
  269.         // line 122
  270.         if (((isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'122$this->source); })()) && (=== CoreExtension::compare(CoreExtension::getAttribute($this->env$this->source, (isset($context["recaptchaDetail"]) || array_key_exists("recaptchaDetail"$context) ? $context["recaptchaDetail"] : (function () { throw new RuntimeError('Variable "recaptchaDetail" does not exist.'122$this->source); })()), "isActive", [], "any"falsefalsefalse122), true)))) {
  271.             // line 123
  272.             yield "                        'g-recaptcha-response' : {
  273.                             fn: function(value) {
  274.                                 if(grecaptcha.getResponse().length > 0)
  275.                                     return false;
  276.                                 else
  277.                                     return true;
  278.                             },
  279.                             msg : '";
  280.             // line 130
  281.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Please select CAPTCHA"), "html"nulltrue);
  282.             yield "'
  283.                         }
  284. \t\t\t\t    ";
  285.         }
  286.         // line 133
  287.         yield "                }
  288.             });
  289.             var LoginForm = Backbone.View.extend({
  290.                 events: {
  291.                     'click .uv-btn': 'submit',
  292.                     'blur input': 'formChanegd'
  293.                 },
  294.                 initialize: function () {
  295.                     Backbone.Validation.bind(this);
  296.                     ";
  297.         // line 143
  298.         if (CoreExtension::getAttribute($this->env$this->source, ($context["error"] ?? null), "messageKey", [], "any"truetruefalse143)) {
  299.             // line 144
  300.             yield "                        app.appView.renderResponseAlert({'alertClass': 'danger', 'alertMessage': '";
  301.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'144$this->source); })()), "messageKey", [], "any"falsefalsefalse144)), "html"nulltrue);
  302.             yield "'})
  303.                     ";
  304.         }
  305.         // line 146
  306.         yield "                },
  307.                 formChanegd: function(e) {
  308. \t\t\t    \tthis.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
  309. \t\t\t    \tthis.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
  310. \t\t\t    },
  311.                 submit: function (e) {
  312.                     e.preventDefault();
  313.                     var data = this.\$el.serializeObject();
  314.                     this.model.set(data);
  315.                     if(this.model.isValid(true)){
  316.                         this.\$el.submit();
  317.                     }
  318.                 }
  319.             });
  320.             var Login = new LoginForm({
  321. \t\t        el: \$('#loginForm'),
  322. \t\t        model: new LoginModel()
  323. \t\t    });
  324.         });
  325.     </script>
  326. ";
  327.         
  328.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  329.         
  330.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  331.         return; yield '';
  332.     }
  333.     /**
  334.      * @codeCoverageIgnore
  335.      */
  336.     public function getTemplateName()
  337.     {
  338.         return "@UVDeskCoreFramework/login.html.twig";
  339.     }
  340.     /**
  341.      * @codeCoverageIgnore
  342.      */
  343.     public function isTraitable()
  344.     {
  345.         return false;
  346.     }
  347.     /**
  348.      * @codeCoverageIgnore
  349.      */
  350.     public function getDebugInfo()
  351.     {
  352.         return array (  341 => 146,  335 => 144,  333 => 143,  321 => 133,  315 => 130,  306 => 123,  304 => 122,  299 => 120,  293 => 117,  286 => 113,  280 => 110,  257 => 89,  253 => 87,  251 => 86,  245 => 84,  235 => 83,  218 => 76,  205 => 66,  202 => 65,  198 => 63,  192 => 60,  189 => 59,  187 => 58,  180 => 54,  164 => 43,  159 => 41,  150 => 35,  144 => 32,  138 => 31,  131 => 26,  121 => 25,  95 => 8,  85 => 7,  65 => 3,  54 => 1,  52 => 5,  39 => 1,);
  353.     }
  354.     public function getSourceContext()
  355.     {
  356.         return new Source("{% extends \"@UVDeskCoreFramework//Templates//layout.html.twig\" %}
  357. {% block title %}Login{% endblock %}
  358. {% set recaptchaDetail = recaptcha_service.getRecaptchaDetails() %}
  359. {% block templateCSS %}
  360. <style>
  361.     #loginForm h1 {
  362.         font-size: 28px;
  363.         color: #6F6F6F;
  364.         font-weight: 600;
  365.         margin: 0px 0px 10px 0px;
  366.     }
  367.     .forgot-password-cta {
  368.         position: absolute;
  369.         font-size: 15px !important;
  370.         right: 0px;
  371.         top: 0px;
  372.     }
  373. </style>
  374. {% endblock %}
  375. {% block pageWrapper %}
  376.     <div class=\"uv-large-box-plank\">
  377. \t\t<div class=\"uv-large-box-rt\">
  378. \t\t\t<div class=\"uv-center-box uv-text-center\">
  379.                 <form action=\"\" method=\"post\" id=\"loginForm\">
  380.                     <div class=\"uv-adjacent-center\">
  381.                         <h1>{{ \"Log in to your\"|trans }} <span class=\"uv-brand\">{{ website.name }}</span></h1>
  382.                         <p>{{ \"Enter your credentials below to gain access to your helpdesk account.\"|trans }}</p>
  383.                         <div class=\"uv-adjacent-form\">
  384.                             <div class=\"uv-adjacent-element-block\">
  385.                                 <label>{{ \"Email\" |trans}}</label>
  386.                                 <div class=\"uv-max-field\">
  387.                                     <input type=\"email\" name=\"_username\">
  388.                                 </div>
  389.                             </div>
  390.                             <div class=\"uv-adjacent-element-block\" style=\"position: relative;\">
  391.                                 <label>{{ \"Password\" |trans}}</label>
  392.                                 <div class=\"uv-max-field\">
  393.                                     <a class=\"forgot-password-cta\" href=\"{{ path('helpdesk_forgot_account_password') }}\" tabindex=\"-1\">{{ \"Forgot Password?\" |trans}}</a>
  394.                                     <input type=\"password\"  name=\"_password\">
  395.                                 </div>
  396.                             </div>
  397.                             <div class=\"uv-adjacent-element-block\">
  398.                                 <label>
  399.                                     <div class=\"uv-checkbox\">
  400.                                         <input type=\"checkbox\" name=\"_remember_me\" checked>
  401.                                         <span class=\"uv-checkbox-view\"></span>
  402.                                     </div>
  403.                                     <span class=\"uv-checkbox-label\">{{ \"Keep me logged in\" |trans}}</span>
  404.                                 </label>
  405.                             </div>
  406.                             <div class=\"uv-adjacent-element-block\">
  407.                                 {% if recaptchaDetail and recaptchaDetail.isActive == true %}
  408.                                     <div class=\"clearfix\"></div>
  409.                                     <div class=\"g-recaptcha\" data-sitekey=\"{{ recaptchaDetail.siteKey }}\"></div>
  410.                                     <div class=\"clearfix\"></div>
  411.                                 {% else %}
  412.                                     <!-- Recaptcha will not support -->
  413.                                 {% endif %}
  414.                             </div>
  415.                             <button class=\"uv-btn\">{{ 'Sign In'|trans }}</button>
  416.                         </div>
  417.                     </div>
  418.                 </div>
  419.             </form>
  420. \t\t</div>
  421. \t\t<div class=\"uv-large-box-lt\">
  422. \t\t\t<div class=\"uv-center-box uv-text-center\">
  423. \t\t\t\t<a href=\"https://www.uvdesk.com\">
  424.                     <img alt=\"UVdesk\" title=\"UVdesk\" src=\"{{ asset('bundles/uvdeskcoreframework/images/uvdesk-logo-symbol.svg') }}\">
  425. \t\t\t\t</a>
  426.             </div>
  427. \t\t</div>
  428. \t</div>
  429. {% endblock %}
  430. {% block footer %}
  431.     {{ parent() }}
  432.     {% if recaptchaDetail and recaptchaDetail.isActive == true %}
  433.         <script src='https://www.google.com/recaptcha/api.js'></script>
  434.     {% endif %}
  435.     <script type=\"text/javascript\">
  436.         \$(function () {
  437.              _.extend(Backbone.Validation.callbacks, {
  438.                 valid : function (view, attr, selector) {
  439.                     var \$el = view.\$('[name=\"' + attr + '\"]');
  440.                     \$el.removeClass('uv-field-error');
  441.                     \$el.parents('.uv-adjacent-element-block').find('.uv-field-message').remove();
  442.                 },
  443.                 invalid : function (view, attr, error, selector) {
  444.                     var \$el = view.\$('[name=\"' + attr + '\"]');
  445.                     \$el.addClass('uv-field-error');
  446.                     \$el.parents('.uv-adjacent-element-block').find('.uv-field-message').remove();
  447.                     \$el.parents('.uv-adjacent-element-block').append(\"<span class='uv-field-message'>\" + error + \"</span>\");
  448.                 }
  449.             });
  450.             var LoginModel = Backbone.Model.extend({
  451.                 validation: {
  452.                     '_username': [{
  453.                         required: true,
  454.                         msg: '{{ \"This field is mandatory\"|trans }}'
  455.                     },{
  456.                         pattern: 'email',
  457.                         msg: '{{ \"This is not a valid email address\"|trans }}'
  458.                     }],
  459.                     '_password': [{
  460.                         required: true,
  461.                         msg: '{{\"This field is mandatory\"|trans }}'
  462.                     },{
  463.                         minLength: 8,
  464.                         msg: '{{\"Password must contains 8 Characters\"|trans }}'
  465.                     }],
  466.                     {% if recaptchaDetail and recaptchaDetail.isActive == true %}
  467.                         'g-recaptcha-response' : {
  468.                             fn: function(value) {
  469.                                 if(grecaptcha.getResponse().length > 0)
  470.                                     return false;
  471.                                 else
  472.                                     return true;
  473.                             },
  474.                             msg : '{{ \"Please select CAPTCHA\"|trans }}'
  475.                         }
  476. \t\t\t\t    {% endif %}
  477.                 }
  478.             });
  479.             var LoginForm = Backbone.View.extend({
  480.                 events: {
  481.                     'click .uv-btn': 'submit',
  482.                     'blur input': 'formChanegd'
  483.                 },
  484.                 initialize: function () {
  485.                     Backbone.Validation.bind(this);
  486.                     {% if error.messageKey is defined %}
  487.                         app.appView.renderResponseAlert({'alertClass': 'danger', 'alertMessage': '{{ error.messageKey|trans}}'})
  488.                     {% endif %}
  489.                 },
  490.                 formChanegd: function(e) {
  491. \t\t\t    \tthis.model.set(Backbone.\$(e.currentTarget).attr('name'), Backbone.\$(e.currentTarget).val())
  492. \t\t\t    \tthis.model.isValid([Backbone.\$(e.currentTarget).attr('name')])
  493. \t\t\t    },
  494.                 submit: function (e) {
  495.                     e.preventDefault();
  496.                     var data = this.\$el.serializeObject();
  497.                     this.model.set(data);
  498.                     if(this.model.isValid(true)){
  499.                         this.\$el.submit();
  500.                     }
  501.                 }
  502.             });
  503.             var Login = new LoginForm({
  504. \t\t        el: \$('#loginForm'),
  505. \t\t        model: new LoginModel()
  506. \t\t    });
  507.         });
  508.     </script>
  509. {% endblock %}
  510. ""@UVDeskCoreFramework/login.html.twig""/var/www/html/helpdesk/uvdesk/core-framework/Resources/views/login.html.twig");
  511.     }
  512. }