var/cache/dev/twig/76/7623d8a66cd40605a45a825857a57ae8687507f2d0e4aa071884c3e8d2644f51.php line 34

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. /* @Authentication/pages/views/central_login.html.twig */
  15. class __TwigTemplate_4de07a83ef7df6d8fb334a1af0a6dab3228a5be78b4fca712ae1ab370ec2a88b 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->parent false;
  24.         $this->blocks = [
  25.         ];
  26.     }
  27.     protected function doDisplay(array $context, array $blocks = [])
  28.     {
  29.         $macros $this->macros;
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  31.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Authentication/pages/views/central_login.html.twig"));
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  33.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Authentication/pages/views/central_login.html.twig"));
  34.         // line 1
  35.         yield from         $this->loadTemplate("@Application/inc/central_header.html.twig""@Authentication/pages/views/central_login.html.twig"1)->unwrap()->yield($context);
  36.         // line 3
  37.         yield "<section class=\"login-account section\">
  38.     <div class=\"container\">
  39.         <div class=\"row\">
  40.             <div class=\"row\">
  41.                 <div class=\"col-md-12 d-flex justify-content-center align-items-center\">
  42.                     <div class=\"section-head-area\" style=\"text-align: center;\">
  43.                         <h1 class=\"section-title\">Login to Your Account </h1>
  44.                         <h5 class=\"\">This is the official login portal for HoneyBee ERP </h5>
  45.                     </div>
  46.                 </div>
  47.             </div>
  48.             <div class=\"login-form-wrapper login-inputs\">
  49.                 <form action=\"";
  50.         // line 17
  51.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("core_login");
  52.         yield "\" class=\"login-form\" method=\"post\"  id=\"relevantForm\">
  53.                     <p style=\"    margin: 0; text-align: center; color: #eb9f9f;\">";
  54.         // line 18
  55.         (((=== CoreExtension::compare((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'18$this->source); })()), ""))) ? (yield "&nbsp;") : (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'18$this->source); })()), "html"nulltrue)));
  56.         yield "</p>
  57.                     <div class=\"email\">
  58.                         <label class=\"email\" for=\"email\">User Id / Email Address</label>
  59.                         <input type=\"text\" id=\"username\" name=\"username\" required>
  60.                     </div>
  61.                     <div class=\"password-row\">
  62.                         <label class=\"password\" for=\"password\">Password</label>
  63.                         <input type=\"password\" id=\"password\" name=\"password\" required>
  64.                         <button type=\"button\" class=\"toggle-password\">
  65.                             <img src=\"";
  66.         // line 29
  67.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  68.         yield "honeybee_web_assets/icons/eye-close.svg?version=";
  69.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  70.         yield "\" class=\"eyeicon\" alt=\"\">
  71.                         </button>
  72.                     </div>
  73.                     <div class=\"remember\">
  74.                         <div class=\"terms\">
  75.                             <input type=\"hidden\" id=\"applicantDirectLogin\" name=\"applicantDirectLogin\" placeholder=\"\" value=\"1\">
  76.                             <input type=\"checkbox\" id=\"check\" >
  77.                             <label for=\"check\">Remember Me</label>
  78.                         </div>
  79.                         <div>
  80.                             <a href=\"";
  81.         // line 42
  82.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("find_account_forgot_password", ["encData" => $this->extensions['Nzo\UrlEncryptorBundle\Twig\EncryptorExtension']->encryptFilter(json_encode((isset($context["encData"]) || array_key_exists("encData"$context) ? $context["encData"] : (function () { throw new RuntimeError('Variable "encData" does not exist.'42$this->source); })())))]), "html"nulltrue);
  83.         yield "\" for=\"\">Forgot Password ?</a>
  84.                         </div>
  85.                     </div>
  86.                     <button type=\"submit\"  class=\"submit-button rel_form_submit\">Login</button>
  87.                     <p class=\"login-link\">Don't have an account? <a href=\"";
  88.         // line 48
  89.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getUrl("sign_up");
  90.         yield "\">Create Account</a></p>
  91.                     <div class=\"social-login\">
  92.                         <div class=\"separator\"><span>Or</span></div>
  93.                         <a type=\"button\" href=\"";
  94.         // line 52
  95.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["oAuthLink"]) || array_key_exists("oAuthLink"$context) ? $context["oAuthLink"] : (function () { throw new RuntimeError('Variable "oAuthLink" does not exist.'52$this->source); })()), "html"nulltrue);
  96.         yield "\" class=\"social-button google\">
  97.                             <img src=\"";
  98.         // line 53
  99.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\HttpFoundationExtension']->generateAbsoluteUrl($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard")), "html"nulltrue);
  100.         yield "honeybee_web_assets/images/login/google.svg?version=";
  101.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::constant("ApplicationBundle\\Constants\\GeneralConstant::ENTITY_APP_VERSION"), "html"nulltrue);
  102.         yield "\"> Login with Google
  103.                         </a>
  104. ";
  105.         // line 61
  106.         yield "                    </div>
  107.                 </form>
  108.             </div>
  109.         </div>
  110.     </div>
  111. </section>
  112. ";
  113.         // line 68
  114.         yield from         $this->loadTemplate("@HoneybeeWeb/footer/central_footer.html.twig""@Authentication/pages/views/central_login.html.twig"68)->unwrap()->yield($context);
  115.         // line 69
  116.         yield "
  117. <script>
  118.     var fbt='';
  119.     function check_doc_and_submit(submitFlag) {
  120.         var checkFailed = 0;
  121.         submitFlag=submitFlag||0
  122.         /////check if any checking needed here
  123.         \$('.login-inputs input').each(function(ind,elem){
  124.             if(\$(this).prop('required')){
  125.                 if(\$(this).val()=='' || \$(this).val()==0)
  126.                     checkFailed=1;
  127.                       console.log(\"REQ\");
  128.             } else {
  129.                       console.log(\"NREQ\");
  130.             }
  131.         });
  132.         \$('.small_error_text').each(function(ind,elem)
  133.         {
  134.             if(\$(elem).text()!='')
  135.                 checkFailed=1;
  136.         })
  137.         if(checkFailed==0)
  138.             \$('.rel_form_submit').addClass('ready');
  139.         else
  140.         {
  141.             \$('.rel_form_submit').removeClass('ready');
  142.         }
  143.         if (checkFailed == 0 && submitFlag==1) {
  144.             \$('.rel_form_submit').removeClass('ready');
  145.             \$('.rel_form_submit').hide();
  146.             \$('#relevantForm').submit();
  147.         }
  148.     }
  149.     \$(document).ready(function(){
  150.         \$.ajaxSetup({ cache: true });
  151. //         \$.getScript('https://connect.facebook.net/en_US/sdk.js', function(){
  152. //             FB.init({
  153. //                 appId: '1116951735682132',
  154. //                 version: 'v2.7' // or v2.1, v2.2, v2.3, ...
  155. //             });
  156. //             \$('#loginbutton,#feedbutton').removeAttr('disabled');
  157. //             FB.getLoginStatus(function(response) {
  158. //                 //    console.log(response);
  159. // //                statusChangeCallback(response);
  160. //             });
  161. //
  162. //
  163. //             \$('#fb_login').click(function(e){
  164. //                 e.preventDefault();
  165. //                 FB.login(function(response) {
  166. //                     //    console.log(response)
  167. //                     //    console.log(response.authResponse)
  168. //                     if (response.authResponse) {
  169. //                         fbt=response.authResponse.accessToken;
  170. //                         //    console.log('Welcome!  Fetching your information.... ');
  171. // //                        alert('This feature will be available on 12 Dec, please use other login method for now.')
  172. //                         FB.api('/me?fields=id,name,email,picture', function(response) {
  173. // //                            \$('#fb_login_form').clear();
  174. //                             var split_name=response.name.split(' ');
  175. //                             var f_name=split_name[0];
  176. //                             var l_name=(typeof split_name[1] !== 'undefined')? split_name[1]:'';
  177. //
  178. //                             if(typeof response.email !== 'undefined') {
  179. //
  180. //                                 \$('#fb_login_form').html(
  181. //                                         '<input type=\"hidden\" id=\"email_for_fb_login\" name=\"email\" value=\"' + response.email + '\">' +
  182. //                                         '<input type=\"hidden\" name=\"oAuthHash\" value=\"_NONE_\">' +
  183. //                                         '<input type=\"hidden\" name=\"image\" value=\"' + response.picture.data.url + '\">' +
  184. //                                         '<input type=\"hidden\" name=\"uniqueId\" value=\"' + response.id + '\">' +
  185. //                                         '<input type=\"hidden\" name=\"emailVerified\" value=\"' + response.email + '\">' +
  186. //                                         '<input type=\"hidden\" name=\"firstName\" value=\"' + f_name + '\">' +
  187. //                                         '<input type=\"hidden\" name=\"lastName\" value=\"' + l_name + '\">' +
  188. //                                         '<input type=\"hidden\" name=\"type\" value=\"1\">' +
  189. //                                         '<input type=\"hidden\" name=\"oAuthtoken\" value=\"' + fbt + '\">'
  190. //                                 );
  191. //                                 \$('#fb_login_form').submit();
  192. //                             }
  193. //                             else
  194. //                             {
  195. //                                 \$('#fb_login_form').html(
  196. //                                         '<input type=\"hidden\" id=\"email_for_fb_login\" name=\"email\" value=\"\">' +
  197. //                                         '<input type=\"hidden\" name=\"oAuthHash\" value=\"_NONE_\">' +
  198. //                                         '<input type=\"hidden\" name=\"image\" value=\"' + response.picture.data.url + '\">' +
  199. //                                         '<input type=\"hidden\" name=\"uniqueId\" value=\"' + response.id + '\">' +
  200. //                                         '<input type=\"hidden\" name=\"emailVerified\" value=\"' + response.email + '\">' +
  201. //                                         '<input type=\"hidden\" name=\"firstName\" value=\"' + f_name + '\">' +
  202. //                                         '<input type=\"hidden\" name=\"lastName\" value=\"' + l_name + '\">' +
  203. //                                         '<input type=\"hidden\" name=\"type\" value=\"1\">' +
  204. //                                         '<input type=\"hidden\" name=\"oAuthtoken\" value=\"' + fbt + '\">'
  205. //                                 );
  206. // //                                alert('you need to provide your email address access on facebook.')
  207. //                                 swal({
  208. //                                             title: \"Validate Action!\",
  209. //                                             text: \"Please Provide Your Approval Hash:\",
  210. //                                             type: \"input\",
  211. //                                             inputType: \"password\",
  212. //                                             showCancelButton: true,
  213. //                                             closeOnConfirm: true,
  214. //                                             animation: \"slide-from-top\",
  215. //                                             inputPlaceholder: \"Approval Hash\"
  216. //                                         },
  217. //                                         function (inputValue) {
  218. //                                             if (inputValue === false) return false;
  219. //                                             else if (inputValue === \"\") {
  220. //                                                 swal.showInputError(\"Email Needed!\");
  221. //                                                 return false
  222. //                                             }
  223. //                                             else if (inputValue != '') {
  224. //                                                 \$('#email_for_fb_login').val(inputValue)
  225. //                                                 \$('#fb_login_form').submit();
  226. //
  227. //
  228. //                                                 //\$(form_object).submit();
  229. //
  230. //                                             }
  231. //
  232. //                                             //swal(\"Nice!\", \"You wrote: \" + inputValue, \"success\");
  233. //                                         });
  234. //
  235. //
  236. //
  237. //                             }
  238. //
  239. //                             //    console.log('Good to see you, ' + response.name + '.');
  240. //                             //    console.log(response)
  241. //                         });
  242. //                     } else {
  243. //                         //    console.log('User cancelled login or did not fully authorize.');
  244. //                     }
  245. //                 }
  246. //                         , {scope: 'public_profile,email'}
  247. //                 );
  248. //             })
  249. //
  250. //         });
  251.         \$('.login-inputs input').focus(function() {
  252. //            if()
  253. //            \$('.login-inputs input').removeClass('error_class');
  254.             \$(this).removeClass('error_class');
  255.         })
  256.         \$('.login-inputs input').change(function () {
  257.             check_doc_and_submit(0); //check only not submit
  258.         })
  259.         //For save action
  260.         \$('input[type=\"submit\"], button[type=\"submit\"], .rel_form_submit').click(function (event) {
  261.             event.preventDefault();
  262.             console.log('____________________________HEREW__________________')
  263.             check_doc_and_submit(1);
  264.         })
  265.         check_doc_and_submit(0)
  266.     })
  267. </script>
  268. ";
  269.         // line 292
  270.         yield "
  271. ";
  272.         // line 303
  273.         yield "
  274. ";
  275.         // line 306
  276.         yield "
  277. ";
  278.         // line 374
  279.         yield "
  280. ";
  281.         // line 380
  282.         yield "
  283. ";
  284.         // line 386
  285.         yield "
  286. ";
  287.         // line 410
  288.         yield "
  289. ";
  290.         // line 415
  291.         yield "
  292. ";
  293.         // line 422
  294.         yield "
  295. ";
  296.         // line 446
  297.         yield "
  298. ";
  299.         // line 470
  300.         yield "
  301. ";
  302.         // line 480
  303.         yield "
  304. ";
  305.         // line 485
  306.         yield "
  307. ";
  308.         // line 490
  309.         yield "
  310. ";
  311.         // line 495
  312.         yield "
  313. ";
  314.         
  315.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  316.         
  317.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  318.         return; yield '';
  319.     }
  320.     /**
  321.      * @codeCoverageIgnore
  322.      */
  323.     public function getTemplateName()
  324.     {
  325.         return "@Authentication/pages/views/central_login.html.twig";
  326.     }
  327.     /**
  328.      * @codeCoverageIgnore
  329.      */
  330.     public function isTraitable()
  331.     {
  332.         return false;
  333.     }
  334.     /**
  335.      * @codeCoverageIgnore
  336.      */
  337.     public function getDebugInfo()
  338.     {
  339.         return array (  400 => 495,  397 => 490,  394 => 485,  391 => 480,  385 => 470,  382 => 446,  378 => 422,  375 => 415,  372 => 410,  369 => 386,  366 => 380,  363 => 374,  360 => 306,  357 => 303,  354 => 292,  136 => 69,  134 => 68,  125 => 61,  118 => 53,  114 => 52,  107 => 48,  98 => 42,  80 => 29,  66 => 18,  62 => 17,  46 => 3,  44 => 1,);
  340.     }
  341.     public function getSourceContext()
  342.     {
  343.         return new Source("{% include '@Application/inc/central_header.html.twig' %}
  344. {# honeybee login page #}
  345. <section class=\"login-account section\">
  346.     <div class=\"container\">
  347.         <div class=\"row\">
  348.             <div class=\"row\">
  349.                 <div class=\"col-md-12 d-flex justify-content-center align-items-center\">
  350.                     <div class=\"section-head-area\" style=\"text-align: center;\">
  351.                         <h1 class=\"section-title\">Login to Your Account </h1>
  352.                         <h5 class=\"\">This is the official login portal for HoneyBee ERP </h5>
  353.                     </div>
  354.                 </div>
  355.             </div>
  356.             <div class=\"login-form-wrapper login-inputs\">
  357.                 <form action=\"{{ url('core_login') }}\" class=\"login-form\" method=\"post\"  id=\"relevantForm\">
  358.                     <p style=\"    margin: 0; text-align: center; color: #eb9f9f;\">{{ message==''?'&nbsp;':message }}</p>
  359.                     <div class=\"email\">
  360.                         <label class=\"email\" for=\"email\">User Id / Email Address</label>
  361.                         <input type=\"text\" id=\"username\" name=\"username\" required>
  362.                     </div>
  363.                     <div class=\"password-row\">
  364.                         <label class=\"password\" for=\"password\">Password</label>
  365.                         <input type=\"password\" id=\"password\" name=\"password\" required>
  366.                         <button type=\"button\" class=\"toggle-password\">
  367.                             <img src=\"{{ absolute_url(path('dashboard')) }}honeybee_web_assets/icons/eye-close.svg?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\" class=\"eyeicon\" alt=\"\">
  368.                         </button>
  369.                     </div>
  370.                     <div class=\"remember\">
  371.                         <div class=\"terms\">
  372.                             <input type=\"hidden\" id=\"applicantDirectLogin\" name=\"applicantDirectLogin\" placeholder=\"\" value=\"1\">
  373.                             <input type=\"checkbox\" id=\"check\" >
  374.                             <label for=\"check\">Remember Me</label>
  375.                         </div>
  376.                         <div>
  377.                             <a href=\"{{ url('find_account_forgot_password',{ 'encData':(encData|json_encode) | nzo_encrypt  } )  }}\" for=\"\">Forgot Password ?</a>
  378.                         </div>
  379.                     </div>
  380.                     <button type=\"submit\"  class=\"submit-button rel_form_submit\">Login</button>
  381.                     <p class=\"login-link\">Don't have an account? <a href=\"{{ url('sign_up') }}\">Create Account</a></p>
  382.                     <div class=\"social-login\">
  383.                         <div class=\"separator\"><span>Or</span></div>
  384.                         <a type=\"button\" href=\"{{ oAuthLink }}\" class=\"social-button google\">
  385.                             <img src=\"{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/login/google.svg?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"> Login with Google
  386.                         </a>
  387. {#                        <button type=\"button\" class=\"social-button facebook\">#}
  388. {#                            <img src=\"{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/login/Facebook.svg?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\"alt=\"Facebook logo\"> Login with Facebook#}
  389. {#                        </button>#}
  390. {#                        <button type=\"button\" class=\"social-button linkedin\">#}
  391. {#                            <img src=\"{{ absolute_url(path('dashboard')) }}honeybee_web_assets/images/login/linkedin.svg?version={{ constant('ApplicationBundle\\\\Constants\\\\GeneralConstant::ENTITY_APP_VERSION') }}\" alt=\"LinkedIn 'In' icon\"> Login with LinkedIn#}
  392. {#                        </button>#}
  393.                     </div>
  394.                 </form>
  395.             </div>
  396.         </div>
  397.     </div>
  398. </section>
  399. {% include '@HoneybeeWeb/footer/central_footer.html.twig' %}
  400. <script>
  401.     var fbt='';
  402.     function check_doc_and_submit(submitFlag) {
  403.         var checkFailed = 0;
  404.         submitFlag=submitFlag||0
  405.         /////check if any checking needed here
  406.         \$('.login-inputs input').each(function(ind,elem){
  407.             if(\$(this).prop('required')){
  408.                 if(\$(this).val()=='' || \$(this).val()==0)
  409.                     checkFailed=1;
  410.                       console.log(\"REQ\");
  411.             } else {
  412.                       console.log(\"NREQ\");
  413.             }
  414.         });
  415.         \$('.small_error_text').each(function(ind,elem)
  416.         {
  417.             if(\$(elem).text()!='')
  418.                 checkFailed=1;
  419.         })
  420.         if(checkFailed==0)
  421.             \$('.rel_form_submit').addClass('ready');
  422.         else
  423.         {
  424.             \$('.rel_form_submit').removeClass('ready');
  425.         }
  426.         if (checkFailed == 0 && submitFlag==1) {
  427.             \$('.rel_form_submit').removeClass('ready');
  428.             \$('.rel_form_submit').hide();
  429.             \$('#relevantForm').submit();
  430.         }
  431.     }
  432.     \$(document).ready(function(){
  433.         \$.ajaxSetup({ cache: true });
  434. //         \$.getScript('https://connect.facebook.net/en_US/sdk.js', function(){
  435. //             FB.init({
  436. //                 appId: '1116951735682132',
  437. //                 version: 'v2.7' // or v2.1, v2.2, v2.3, ...
  438. //             });
  439. //             \$('#loginbutton,#feedbutton').removeAttr('disabled');
  440. //             FB.getLoginStatus(function(response) {
  441. //                 //    console.log(response);
  442. // //                statusChangeCallback(response);
  443. //             });
  444. //
  445. //
  446. //             \$('#fb_login').click(function(e){
  447. //                 e.preventDefault();
  448. //                 FB.login(function(response) {
  449. //                     //    console.log(response)
  450. //                     //    console.log(response.authResponse)
  451. //                     if (response.authResponse) {
  452. //                         fbt=response.authResponse.accessToken;
  453. //                         //    console.log('Welcome!  Fetching your information.... ');
  454. // //                        alert('This feature will be available on 12 Dec, please use other login method for now.')
  455. //                         FB.api('/me?fields=id,name,email,picture', function(response) {
  456. // //                            \$('#fb_login_form').clear();
  457. //                             var split_name=response.name.split(' ');
  458. //                             var f_name=split_name[0];
  459. //                             var l_name=(typeof split_name[1] !== 'undefined')? split_name[1]:'';
  460. //
  461. //                             if(typeof response.email !== 'undefined') {
  462. //
  463. //                                 \$('#fb_login_form').html(
  464. //                                         '<input type=\"hidden\" id=\"email_for_fb_login\" name=\"email\" value=\"' + response.email + '\">' +
  465. //                                         '<input type=\"hidden\" name=\"oAuthHash\" value=\"_NONE_\">' +
  466. //                                         '<input type=\"hidden\" name=\"image\" value=\"' + response.picture.data.url + '\">' +
  467. //                                         '<input type=\"hidden\" name=\"uniqueId\" value=\"' + response.id + '\">' +
  468. //                                         '<input type=\"hidden\" name=\"emailVerified\" value=\"' + response.email + '\">' +
  469. //                                         '<input type=\"hidden\" name=\"firstName\" value=\"' + f_name + '\">' +
  470. //                                         '<input type=\"hidden\" name=\"lastName\" value=\"' + l_name + '\">' +
  471. //                                         '<input type=\"hidden\" name=\"type\" value=\"1\">' +
  472. //                                         '<input type=\"hidden\" name=\"oAuthtoken\" value=\"' + fbt + '\">'
  473. //                                 );
  474. //                                 \$('#fb_login_form').submit();
  475. //                             }
  476. //                             else
  477. //                             {
  478. //                                 \$('#fb_login_form').html(
  479. //                                         '<input type=\"hidden\" id=\"email_for_fb_login\" name=\"email\" value=\"\">' +
  480. //                                         '<input type=\"hidden\" name=\"oAuthHash\" value=\"_NONE_\">' +
  481. //                                         '<input type=\"hidden\" name=\"image\" value=\"' + response.picture.data.url + '\">' +
  482. //                                         '<input type=\"hidden\" name=\"uniqueId\" value=\"' + response.id + '\">' +
  483. //                                         '<input type=\"hidden\" name=\"emailVerified\" value=\"' + response.email + '\">' +
  484. //                                         '<input type=\"hidden\" name=\"firstName\" value=\"' + f_name + '\">' +
  485. //                                         '<input type=\"hidden\" name=\"lastName\" value=\"' + l_name + '\">' +
  486. //                                         '<input type=\"hidden\" name=\"type\" value=\"1\">' +
  487. //                                         '<input type=\"hidden\" name=\"oAuthtoken\" value=\"' + fbt + '\">'
  488. //                                 );
  489. // //                                alert('you need to provide your email address access on facebook.')
  490. //                                 swal({
  491. //                                             title: \"Validate Action!\",
  492. //                                             text: \"Please Provide Your Approval Hash:\",
  493. //                                             type: \"input\",
  494. //                                             inputType: \"password\",
  495. //                                             showCancelButton: true,
  496. //                                             closeOnConfirm: true,
  497. //                                             animation: \"slide-from-top\",
  498. //                                             inputPlaceholder: \"Approval Hash\"
  499. //                                         },
  500. //                                         function (inputValue) {
  501. //                                             if (inputValue === false) return false;
  502. //                                             else if (inputValue === \"\") {
  503. //                                                 swal.showInputError(\"Email Needed!\");
  504. //                                                 return false
  505. //                                             }
  506. //                                             else if (inputValue != '') {
  507. //                                                 \$('#email_for_fb_login').val(inputValue)
  508. //                                                 \$('#fb_login_form').submit();
  509. //
  510. //
  511. //                                                 //\$(form_object).submit();
  512. //
  513. //                                             }
  514. //
  515. //                                             //swal(\"Nice!\", \"You wrote: \" + inputValue, \"success\");
  516. //                                         });
  517. //
  518. //
  519. //
  520. //                             }
  521. //
  522. //                             //    console.log('Good to see you, ' + response.name + '.');
  523. //                             //    console.log(response)
  524. //                         });
  525. //                     } else {
  526. //                         //    console.log('User cancelled login or did not fully authorize.');
  527. //                     }
  528. //                 }
  529. //                         , {scope: 'public_profile,email'}
  530. //                 );
  531. //             })
  532. //
  533. //         });
  534.         \$('.login-inputs input').focus(function() {
  535. //            if()
  536. //            \$('.login-inputs input').removeClass('error_class');
  537.             \$(this).removeClass('error_class');
  538.         })
  539.         \$('.login-inputs input').change(function () {
  540.             check_doc_and_submit(0); //check only not submit
  541.         })
  542.         //For save action
  543.         \$('input[type=\"submit\"], button[type=\"submit\"], .rel_form_submit').click(function (event) {
  544.             event.preventDefault();
  545.             console.log('____________________________HEREW__________________')
  546.             check_doc_and_submit(1);
  547.         })
  548.         check_doc_and_submit(0)
  549.     })
  550. </script>
  551. {# {% include '@Application/codecovers_header.html.twig' %} #}
  552. {# <style> #}
  553. {# .registration__hr { #}
  554. {# margin-bottom: 1rem; #}
  555. {# position: relative; #}
  556. {# text-align: center; #}
  557. {# } #}
  558. {# .registration__hr:after { #}
  559. {# border: 1px solid #d2d6db; #}
  560. {# content: ''; #}
  561. {# display: block; #}
  562. {# position: absolute; #}
  563. {# top: 50%; #}
  564. {# width: 100%; #}
  565. {# z-index: 0; #}
  566. {# border-radius: 5px; #}
  567. {# } #}
  568. {# .registration__hr-label { #}
  569. {# position: relative; #}
  570. {# color: #4d5760; #}
  571. {# background: #fff; #}
  572. {# padding: 0 0.5rem; #}
  573. {# z-index: 1; #}
  574. {# display: inline-block; #}
  575. {# max-width: 75%; #}
  576. {# } #}
  577. {# </style> #}
  578. {# <section class=\"section-account\"> #}
  579. {# <div class=\"img-backdrop\" style=\"background-image: url('http://www.codecovers.eu/assets/img/modules/materialadmin/img16.jpg')\"></div> #}
  580. {# <div class=\"spacer\"></div> #}
  581. {# <div class=\"card contain-sm style-transparent\"> #}
  582. {# <div class=\"card-body\"> #}
  583. {# <div class=\"row\"> #}
  584. {# <div class=\"col-sm-6\"> #}
  585. {# <br/> #}
  586. {# <span class=\"text-lg text-bold text-primary\">BUDDY BEE</span> #}
  587. {# <br/><br/> #}
  588. {# <form class=\"form floating-label\" action=\"http://www.codecovers.eu/materialadmin/dashboards/dashboard\" accept-charset=\"utf-8\" method=\"post\"> #}
  589. {# <div id=\"loginForm\"> #}
  590. {# <div class=\"form-group\"> #}
  591. {# <input type=\"text\" class=\"form-control\" id=\"username\" name=\"username\"> #}
  592. {# <label for=\"username\">Username</label> #}
  593. {# </div> #}
  594. {# <div class=\"form-group\"> #}
  595. {# <input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\"> #}
  596. {# <label for=\"password\">Password</label> #}
  597. {# <p class=\"help-block\"><a href=\"#\">Forgotten?</a></p> #}
  598. {# </div> #}
  599. {# <br/> #}
  600. {# <div class=\"row\"> #}
  601. {# <div class=\"col-xs-6 text-left\"> #}
  602. {# <div class=\"checkbox checkbox-inline checkbox-styled\"> #}
  603. {# <label> #}
  604. {# <input type=\"checkbox\"> <span>Remember me</span> #}
  605. {# </label> #}
  606. {# </div> #}
  607. {# </div><!--end .col --> #}
  608. {# <div class=\"col-xs-6 text-right\"> #}
  609. {# <button class=\"btn btn-primary btn-raised\" type=\"submit\">Login</button> #}
  610. {# </div><!--end .col --> #}
  611. {# </div><!--end .row --> #}
  612. {# </div> #}
  613. {# <div id=\"signupForm\"> #}
  614. {# <div class=\"form-group\"> #}
  615. {# <input type=\"text\" class=\"form-control\" id=\"userName\" name=\"userName\"> #}
  616. {# <label for=\"username\">Username</label> #}
  617. {# </div> #}
  618. {# <div class=\"form-group\"> #}
  619. {# <input type=\"text\" class=\"form-control\" id=\"email\" name=\"email\"> #}
  620. {# <label for=\"username\">Email</label> #}
  621. {# </div> #}
  622. {# <div class=\"form-group\"> #}
  623. {# <input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\"> #}
  624. {# <label for=\"password\">Password</label> #}
  625. {# </div> #}
  626. {# <div class=\"form-group\"> #}
  627. {# <input type=\"password\" class=\"form-control\" id=\"password\" name=\"password\"> #}
  628. {# <label for=\"password\">Confirm Password</label> #}
  629. {# </div> #}
  630. {# <div class=\"form-group\"> #}
  631. {# <label for=\"\">Select Your Requirement</label> #}
  632. {# <select name=\"selector\" id=\"selector\" class=\"form-control selectize_me\"> #}
  633. {# <option value=\"\"></option> #}
  634. {# {% for key,val in selector %} #}
  635. {# <option value=\"{{ key }}\">{{ val }}</option> #}
  636. {# {% endfor %} #}
  637. {# </select> #}
  638. {# </div> #}
  639. {# <br> #}
  640. {# <div class=\"row\"> #}
  641. {# <div class=\"col-xs-6 text-left\"> #}
  642. {# </div><!--end .col --> #}
  643. {# <div class=\"col-xs-6 text-right\"> #}
  644. {# <button class=\"btn btn-primary btn-raised\" type=\"submit\">Sign Up</button> #}
  645. {# </div><!--end .col --> #}
  646. {# </div><!--end .row --> #}
  647. {# </div> #}
  648. {# </form> #}
  649. {# </div><!--end .col --> #}
  650. {# <div class=\"col-sm-8 col-sm-offset-1 text-center\"> #}
  651. {# <br><br> #}
  652. {# <h3 class=\"text-light\" id=\"signupHead\"> #}
  653. {# No account yet? #}
  654. {# </h3> #}
  655. {# <h3 class=\"text-light\" id=\"loginHead\"> #}
  656. {# Already have an account? Please login #}
  657. {# </h3> #}
  658. {# <a class=\"btn btn-block btn-raised btn-primary\" href=\"#\" id=\"signUp\">Sign up here</a> #}
  659. {# <a class=\"btn btn-block btn-raised btn-primary\" href=\"#\" id=\"login\">Login</a> #}
  660. {# <br><br> #}
  661. {# <h3 class=\"text-light\"> #}
  662. {# or #}
  663. {# </h3> #}
  664. {# <p> #}
  665. {# <a href=\"#\" class=\"btn btn-block btn-raised btn-info\"><i class=\"fa fa-facebook pull-left\"></i>Login with Gmail</a> #}
  666. {# </p> #}
  667. {# <p> #}
  668. {# <a href=\"https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=8638b5kvyew2si&redirect_uri={{ redirect_url }}&state={{ state }}&scope=r_liteprofile%20r_emailaddress\" class=\"btn btn-block btn-raised btn-info\"><i class=\"fa fa-linkedin pull-left\"></i>Login with Linkedin</a> #}
  669. {# </p> #}
  670. {# <p> #}
  671. {# <a href=\"https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=8638b5kvyew2si&redirect_uri={{ redirect_url }}&state={{ state }}&scope=r_liteprofile%20r_emailaddress\" class=\"btn btn-block\" style=\"font-size: 1.5rem;  border-radius: 0.5rem; background-color: #207aac; color: #}
  672. {# white;\"> <span style=\"display: inline-block; margin-left: 1rem;\"><img src=\"https://content.linkedin.com/content/dam/developer/global/en_US/site/img/signin-button.png\"></span></a> #}
  673. {# </p> #}
  674. {# </div><!--end .col --> #}
  675. {# </div><!--end .row --> #}
  676. {# </div><!--end .card-body --> #}
  677. {# </div><!--end .card --> #}
  678. {# </section> #}
  679. {# <!-- END LOGIN SECTION --> #}
  680. {# <section class=\"section-account\"> #}
  681. {# <div class=\"img-backdrop\" style=\"background-image: url('http://honeybee/images/img16.jpg')\"> #}
  682. {# </div> #}
  683. {# <div class=\"spacer\"></div> #}
  684. {# <div class=\"mx-auto\" style=\"width: 50vw;\"> #}
  685. {# <div class=\"card\" #}
  686. {# style=\"box-shadow: none; box-shadow: 0 0 0 1px rgba(8, 9, 10, 0.1); border-radius: 0.4rem; color: black;\"> #}
  687. {# <div class=\"p-5\"> #}
  688. {# <div class=\"text-center\"> #}
  689. {# <h2 style=\"font-weight: bold; font-size: 3rem; margin: 0; color: #0aa89e;\">Honeybee</h2> #}
  690. {# <p style=\"font-size: 1.5rem; margin-top: 0.4rem;\">Tailored for Every type of Business</p> #}
  691. {# </div> #}
  692. {# <div class=\"mb-4\"> #}
  693. {# <a href=\"{{oAuthLink|raw}}\" class=\"btn btn-block\" #}
  694. {# style=\"font-size: 1.5rem; padding: 1rem; border-radius: 0.5rem; background-color: #EA4335; color: white; margin-bottom: 1rem;\"><i #}
  695. {# class=\"fab fa-google\"></i> <span style=\"display: inline-block; margin-left: 1rem;\">Continue with #}
  696. {# Google</span></a> #}
  697. {# <a href=\"#\" class=\"btn btn-block\" style=\"font-size: 1.5rem; padding: 1rem; border-radius: 0.5rem; background-color: #1DA1F2; color: #}
  698. {# white;\"><i class=\"fab fa-twitter\"></i> <span style=\"display: inline-block; margin-left: 1rem;\">Continue #}
  699. {# with Twitter</span></a> #}
  700. {# <a href=\"https://www.linkedin.com/oauth/v2/authorization?response_type=code&client_id=8638b5kvyew2si&redirect_uri={{ redirect_url }}&state={{ state }}&scope=r_liteprofile%20r_emailaddress\" class=\"btn btn-block\" style=\"font-size: 1.5rem;  border-radius: 0.5rem; background-color: #207aac; color: #}
  701. {# white;\"><i class=\"fab fa-twitter\"></i> <span style=\"display: inline-block; margin-left: 1rem;\"><img src=\"https://content.linkedin.com/content/dam/developer/global/en_US/site/img/signin-button.png\"></span></a> #}
  702. {# </div> #}
  703. {# <div class=\"registration__hr\"> #}
  704. {# <span class=\"registration__hr-label\"> #}
  705. {# Have a password? Continue with your email address #}
  706. {# </span> #}
  707. {# </div> #}
  708. {# <form> #}
  709. {# <div class=\"form-group\"> #}
  710. {# <label for=\"exampleInputEmail1\">Email address</label> #}
  711. {# <input type=\"email\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\" #}
  712. {# placeholder=\"Enter email\"> #}
  713. {# </div> #}
  714. {# <div class=\"form-group\"> #}
  715. {# <label for=\"exampleInputPassword1\">Password</label> #}
  716. {# <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"Password\"> #}
  717. {# </div> #}
  718. {# <button type=\"submit\" class=\"btn btn-block btn-success\" #}
  719. {# style=\"font-size: 1.5rem; padding: 1rem; border-radius: 0.5rem;\">Continue</button> #}
  720. {# </form> #}
  721. {# </div> #}
  722. {# </div> #}
  723. {# </div> #}
  724. {# </section> #}
  725. {# {% include '@Application/footer/footer_js_codecovers.html.twig' %} #}
  726. {# <script> #}
  727. {# \$(document).ready(function(){ #}
  728. {# \$('#login').hide(); #}
  729. {# \$('#signupForm').hide(); #}
  730. {# \$('#loginHead').hide(); #}
  731. {# \$('#signUp').click(function () { #}
  732. {# \$('#login').show(); #}
  733. {# \$('#loginHead').show(); #}
  734. {# \$('#signupForm').show(); #}
  735. {# \$('#signUp').hide(); #}
  736. {# \$('#signupHead').hide(); #}
  737. {# \$('#loginForm').hide(); #}
  738. {# }) #}
  739. {# \$('#login').click(function () { #}
  740. {# \$('#login').hide(); #}
  741. {# \$('#loginHead').hide(); #}
  742. {# \$('#signupForm').hide(); #}
  743. {# \$('#signUp').show(); #}
  744. {# \$('#signupHead').show(); #}
  745. {# \$('#loginForm').show(); #}
  746. {# }) #}
  747. {# }); #}
  748. {# </script> #}
  749. ""@Authentication/pages/views/central_login.html.twig""/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/Authentication/Resources/views/pages/views/central_login.html.twig");
  750.     }
  751. }