templates/UsersManagementBundle/Default/login.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <meta charset="utf-8">
  5.         <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6.         <meta content="width=device-width, initial-scale=1" name="viewport" />
  7.         <meta content="My Land Trading CRM" name="description" />
  8.         <meta content="Egyptforweb.com" name="author" />
  9.         <title> Login | {{ WEB_SITE_NAME }} </title>
  10.         <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
  11.         <!-- BEGIN GLOBAL MANDATORY STYLES -->
  12.         <link href="https://fonts.googleapis.com/css?family=Cairo" rel="stylesheet">
  13.         <link type="text/css" rel="stylesheet" href="{{asset('bundles/global/plugins/fonts.googleapis.css')}}" />
  14.         <link type="text/css" rel="stylesheet" href="{{asset('bundles/global/plugins/font-awesome/css/font-awesome.min.css')}}" />
  15.         <link type="text/css" rel="stylesheet" href="{{asset('bundles/global/plugins/simple-line-icons/simple-line-icons.min.css')}}" />
  16.         <link type="text/css" rel="stylesheet" href="{{asset('bundles/global/plugins/bootstrap/css/bootstrap.min.css')}}" />
  17.         <link type="text/css" rel="stylesheet" href="{{asset('bundles/global/plugins/bootstrap-switch/css/bootstrap-switch.min.css')}}" />
  18.         <!-- END GLOBAL MANDATORY STYLES -->
  19.         {#<!-- BEGIN THEME GLOBAL STYLES -->#}
  20.         <link type="text/css" rel="stylesheet" href="{{asset('bundles/global/css/components.min.css')}}" />
  21.         <link type="text/css" rel="stylesheet" href="{{asset('bundles/global/css/plugins.min.css')}}" />
  22.         {#<!-- END THEME GLOBAL STYLES -->#}
  23.         <!-- BEGIN PAGE LEVEL STYLES -->
  24.         <link href="{{asset('bundles/pages/css/login.min.css')}}" rel="stylesheet" type="text/css" />
  25.         <link href="{{asset('bundles/efw.css')}}" rel="stylesheet" type="text/css" />
  26.         <!-- END PAGE LEVEL STYLES -->
  27.     </head>
  28.     <body class="login login2">
  29.         <div class="logo">
  30.             <img src="{{asset('bundles/global/img/logo-big.png')}}" alt="" />
  31.         </div>
  32.         <div class="content">
  33.             <form action="{{ path('Login_Path') }}" method="post" role="form" class="login-form" name="log_in">
  34.                 <h3 class="form-title font-green">Sign In</h3>
  35.                 {% if error %}
  36.                 <div class="alert alert-danger">
  37.                     <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>
  38.                     <span>{{ error.message|trans }}</span>
  39.                 </div>
  40.                 {% endif %}
  41.                 {# Username #}
  42.                 <div class="form-group">
  43.                     <!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->
  44.                     <label class="control-label visible-ie8 visible-ie9">Username</label>
  45.                     <div class="input-icon">
  46.                         <i class="fa fa-user"></i>
  47.                         <input id="username" class="form-control form-control-solid placeholder-no-fix" type="text" autocomplete="off" placeholder="Username" name="username" />
  48.                     </div>
  49.                 </div>
  50.                 {# Password #}
  51.                 <div class="form-group">
  52.                     <label class="control-label visible-ie8 visible-ie9">Password</label>
  53.                     <div class="input-icon">
  54.                         <i class="fa fa-lock"></i>
  55.                         <input id="password" class="form-control form-control-solid placeholder-no-fix" type="password" autocomplete="off" placeholder="Password" name="password" />
  56.                     </div>
  57.                 </div>
  58.                 {# remember + submit + forget password #}
  59.                 <div class="form-actions">
  60.                     <button type="submit" class="btn green uppercase">Login</button>
  61.                     <label class="rememberme check mt-checkbox mt-checkbox-outline">
  62.                         <input type="checkbox" id="remember_me" name="_remember_me" checked/>Remember
  63.                         <span></span>
  64.                     </label>
  65.                     <a href="{{ path('ForgotPassword_Path') }}" id="forget-password" class="forget-password">Forgot Password?</a>
  66.                 </div>
  67.                 <input type="hidden" name="_csrf_token" value="{{ csrf_token('authenticate') }}">
  68.                 {#(2).(a).First, IS_AUTHENTICATED_REMEMBERED is given to all users who are logged in. They may have#}
  69.                 {#actually logged in during the session or may be logged in because they have a “remember me” cookie.#}
  70.                 {#(b).Second, IS_AUTHENTICATED_FULLY is actually stronger. You only have this if you’ve actually#}
  71.                 {#logged in during this session. If you’re logged in because of a remember me cookie, you won’t have this#}
  72.                 {#(c).Finally, IS_AUTHENTICATED_ANONYMOUSLY is given to all users, even if you’re not logged in.#}
  73.                 {#And since literally everyone has this, it seems worthless But it actually does have a use if you need#}
  74.                 {#to white-list URLs that should be public. I’ll show you an example in the last chapter.#}
  75.             </form>
  76.         </div>
  77.         <div class="copyright">MyLand © 2018. All rights reserved.</div>
  78.         <script>
  79.             if(self == top)
  80.                 document.documentElement.style.display = 'block';
  81.             else
  82.                 top.location = self.location;
  83.         </script>
  84.         <!-- BEGIN CORE PLUGINS -->
  85.         <script type="text/javascript" src="{{asset('bundles/global/plugins/jquery.min.js')}}"></script>
  86.         <script type="text/javascript" src="{{asset('bundles/global/plugins/bootstrap/js/bootstrap.min.js')}}"></script>
  87.         <script type="text/javascript" src="{{asset('bundles/global/plugins/js.cookie.min.js')}}"></script>
  88.         <script type="text/javascript" src="{{asset('bundles/global/plugins/jquery-slimscroll/jquery.slimscroll.min.js')}}"></script>
  89.         <script type="text/javascript" src="{{asset('bundles/global/plugins/jquery.blockui.min.js')}}"></script>
  90.         <script type="text/javascript" src="{{asset('bundles/global/plugins/bootstrap-switch/js/bootstrap-switch.min.js')}}"></script>
  91.         <!-- END CORE PLUGINS -->
  92.         <script type="text/javascript">
  93.             //        $(document).ready(function()
  94.             //        {
  95.             //
  96.             //            /* JQuery bootstrap validation */
  97.             //            //Form Class / Id
  98.             //            $('.login-form').bootstrapValidator
  99.             //            ({
  100.             //                message: 'This value is not valid.',
  101.             //                feedbackIcons:
  102.             //                {
  103.             //                    valid: 'glyphicon glyphicon-ok',
  104.             //                    invalid: 'glyphicon glyphicon-remove',
  105.             //                    validating: 'glyphicon glyphicon-refresh'
  106.             //                },
  107.             //                fields:
  108.             //                {
  109.             //                    "registration[username]":
  110.             //                    {
  111.             //                        message: 'The username is not valid.',
  112.             //                        validators:
  113.             //                            {
  114.             //                                notEmpty:
  115.             //                                    {
  116.             //                                        message: 'The username is required and cannot be empty.'
  117.             //                                    },
  118.             //                                regexp:
  119.             //                                    {
  120.             //                                        regexp: /^[a-zA-Z]+[a-zA-Z0-9]+$/,
  121.             //                                        message: 'The username Must start with alphabetical letter and can consist of alphabetical letters and numbers.'
  122.             //                                    },
  123.             //                                stringLength:
  124.             //                                    {
  125.             //                                        min: 3,
  126.             //                                        max: 32,
  127.             //                                        message: 'The username must be more than 3 and less than 32 characters long.'
  128.             //                                    },
  129.             //                                required: true
  130.             //                            }
  131.             //                    },
  132.             //                    "registration[password][first]":
  133.             //                    {
  134.             //                        validators:
  135.             //                            {
  136.             //                                identical:
  137.             //                                    {
  138.             //                                        field: "registration[password][second]",
  139.             //                                        message: 'The password and its confirm are not the same.'
  140.             //                                    },
  141.             //                                stringLength:
  142.             //                                    {
  143.             //                                        min: 3,
  144.             //                                        max: 32,
  145.             //                                        message: 'The Password must be more than 3 and less than 32 characters long.'
  146.             //                                    },
  147.             //                                regexp:
  148.             //                                    {
  149.             //                                        regexp: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?!.*\s).*$/,
  150.             //                                        message: 'Password must contain at least: 1 upper case letter, 1 lower case letter, and 1 number.'
  151.             //                                    }
  152.             //                            }
  153.             //                    }
  154.             //                }
  155.             //            });
  156.             //
  157.             //        });
  158.         </script>
  159.     </body>
  160. </html>