<?php

/* entegrasyon/setting/account/login_form.twig */
class __TwigTemplate_240e5a7fda325a4d16f9e6f4096731111c59050179a4e856fe082c89b156a134 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "
<div class=\"membershipcontainer\">

    <div class=\"pull-right\">
        <button  data-toggle=\"tooltip\" title=\"Geri Dön\" class=\"btn btn-default btnVazgec\"><i class=\"fa fa-reply\"></i></button></div>



    <div class=\"wrapper fadeInDown\">
        <div id=\"formContent\">
            <!-- Tabs Titles -->

            <!-- Icon -->
            <div class=\"fadeIn first\">
                <!-- <img src=\"http://danielzawadzki.com/codepen/01/icon.svg\" id=\"icon\" alt=\"User Icon\" />-->
                <div class=\"panel-heading\"><h4>Easy Entegre Giriş</h4></div>
            </div>

            <!-- Login Form -->
            <form>
                <input type=\"text\" id=\"username\" class=\"fadeIn second\" name=\"username\" placeholder=\"Email\">
                <input type=\"password\" id=\"password\" class=\"fadeIn third\" name=\"password\" placeholder=\"Parola\">
            </form>

            <a class=\"underlineHover hidden\" href=\"#\">Forgot Password?</a>

            <!-- Remind Passowrd -->
            <div id=\"formFooter\">
                <div class=\"btn-group\">
                    <button type=\"submit\" class=\"fadeIn fourth btn btn-primary btn-lg btnLogin\" data-loading-text=\"<i class='fa fa-spinner fa-spin '></i> Bekleyiniz\">Giriş Yap</button>
                    <a href=\"index.php?route=entegrasyon/setting&form=register&";
        // line 31
        echo (isset($context["token_link"]) ? $context["token_link"] : null);
        echo "\"  class=\"fadeIn fourth btn btn-info btn-lg\" data-loading-text=\"<i class='fa fa-spinner fa-spin '></i> Bekleyiniz\">Üye Ol</a>
                </div>
            </div>

        </div>
    </div>
</div>





<script>

    \$('.btnRegister').on('click',function (event) {
        \$('.btnRegister').button(\"loading\");
        //\$('.membershipcontainer').empty();
        setTimeout(function(){  \$('.membershipcontainer').load('index.php?route=entegrasyon/setting/register&";
        // line 48
        echo (isset($context["token_link"]) ? $context["token_link"] : null);
        echo "');
        }, 100);

    });


    \$('.btnLogin').on('click',function (event) {
        \$('.btnLogin').button(\"loading\");
        var username=\$('#username').val();
        var password=\$('#password').val();
        if(username==''){
            Swal.fire('Hata','Lütfen Email Adresinizi Giriniz','warning');
            \$('.btnLogin').button(\"reset\");
            return
        }

        if(password==''){
            \$('.btnLogin').button(\"reset\");
            Swal.fire('Hata','Lütfen Parolanızı Giriniz','warning');
            return;
        }

\$.post('index.php?route=entegrasyon/setting/login&";
        // line 70
        echo (isset($context["token_link"]) ? $context["token_link"] : null);
        echo "',{username:username,password:password},function (json) {
    \$('.btnLogin').button(\"reset\");
    if(json['status']){

     /*   Swal.fire({
            title: 'Başarılı',
            text: \"Entegrasyon girişiniz başarıyla tamamlandı, Ayarlar sayfasına dönmek istermisiniz?\",
            icon: 'success',
            showCancelButton: true,
            confirmButtonColor: '#3085d6',
            cancelButtonColor: '#d33',
            confirmButtonText: 'Evet!',
            cancelButtonText: \"Hayır!\",

        }).then((result) => {
            if (result.value) {




            }
        })*/
        window.location.href=\"index.php?route=entegrasyon/setting/login_success&";
        // line 92
        echo (isset($context["token_link"]) ? $context["token_link"] : null);
        echo "\"


    }else {

        Swal.fire('Hata',json['message'],'warning');

    }

},'JSON');

    })

</script>";
    }

    public function getTemplateName()
    {
        return "entegrasyon/setting/account/login_form.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  121 => 92,  96 => 70,  71 => 48,  51 => 31,  19 => 1,);
    }
}
/* */
/* <div class="membershipcontainer">*/
/* */
/*     <div class="pull-right">*/
/*         <button  data-toggle="tooltip" title="Geri Dön" class="btn btn-default btnVazgec"><i class="fa fa-reply"></i></button></div>*/
/* */
/* */
/* */
/*     <div class="wrapper fadeInDown">*/
/*         <div id="formContent">*/
/*             <!-- Tabs Titles -->*/
/* */
/*             <!-- Icon -->*/
/*             <div class="fadeIn first">*/
/*                 <!-- <img src="http://danielzawadzki.com/codepen/01/icon.svg" id="icon" alt="User Icon" />-->*/
/*                 <div class="panel-heading"><h4>Easy Entegre Giriş</h4></div>*/
/*             </div>*/
/* */
/*             <!-- Login Form -->*/
/*             <form>*/
/*                 <input type="text" id="username" class="fadeIn second" name="username" placeholder="Email">*/
/*                 <input type="password" id="password" class="fadeIn third" name="password" placeholder="Parola">*/
/*             </form>*/
/* */
/*             <a class="underlineHover hidden" href="#">Forgot Password?</a>*/
/* */
/*             <!-- Remind Passowrd -->*/
/*             <div id="formFooter">*/
/*                 <div class="btn-group">*/
/*                     <button type="submit" class="fadeIn fourth btn btn-primary btn-lg btnLogin" data-loading-text="<i class='fa fa-spinner fa-spin '></i> Bekleyiniz">Giriş Yap</button>*/
/*                     <a href="index.php?route=entegrasyon/setting&form=register&{{ token_link }}"  class="fadeIn fourth btn btn-info btn-lg" data-loading-text="<i class='fa fa-spinner fa-spin '></i> Bekleyiniz">Üye Ol</a>*/
/*                 </div>*/
/*             </div>*/
/* */
/*         </div>*/
/*     </div>*/
/* </div>*/
/* */
/* */
/* */
/* */
/* */
/* <script>*/
/* */
/*     $('.btnRegister').on('click',function (event) {*/
/*         $('.btnRegister').button("loading");*/
/*         //$('.membershipcontainer').empty();*/
/*         setTimeout(function(){  $('.membershipcontainer').load('index.php?route=entegrasyon/setting/register&{{ token_link }}');*/
/*         }, 100);*/
/* */
/*     });*/
/* */
/* */
/*     $('.btnLogin').on('click',function (event) {*/
/*         $('.btnLogin').button("loading");*/
/*         var username=$('#username').val();*/
/*         var password=$('#password').val();*/
/*         if(username==''){*/
/*             Swal.fire('Hata','Lütfen Email Adresinizi Giriniz','warning');*/
/*             $('.btnLogin').button("reset");*/
/*             return*/
/*         }*/
/* */
/*         if(password==''){*/
/*             $('.btnLogin').button("reset");*/
/*             Swal.fire('Hata','Lütfen Parolanızı Giriniz','warning');*/
/*             return;*/
/*         }*/
/* */
/* $.post('index.php?route=entegrasyon/setting/login&{{ token_link }}',{username:username,password:password},function (json) {*/
/*     $('.btnLogin').button("reset");*/
/*     if(json['status']){*/
/* */
/*      /*   Swal.fire({*/
/*             title: 'Başarılı',*/
/*             text: "Entegrasyon girişiniz başarıyla tamamlandı, Ayarlar sayfasına dönmek istermisiniz?",*/
/*             icon: 'success',*/
/*             showCancelButton: true,*/
/*             confirmButtonColor: '#3085d6',*/
/*             cancelButtonColor: '#d33',*/
/*             confirmButtonText: 'Evet!',*/
/*             cancelButtonText: "Hayır!",*/
/* */
/*         }).then((result) => {*/
/*             if (result.value) {*/
/* */
/* */
/* */
/* */
/*             }*/
/*         })*//* */
/*         window.location.href="index.php?route=entegrasyon/setting/login_success&{{ token_link }}"*/
/* */
/* */
/*     }else {*/
/* */
/*         Swal.fire('Hata',json['message'],'warning');*/
/* */
/*     }*/
/* */
/* },'JSON');*/
/* */
/*     })*/
/* */
/* </script>*/
