login.blade.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. @extends('layouts.app')
  2. @section('content')
  3. @include('partials.nav')
  4. <br>
  5. <div class="container">
  6. <div class="row">
  7. <div class="col-md-8 col-md-offset-2">
  8. <div class="panel panel-default background-colored">
  9. <div class="panel-heading background-colored text-center ">Connexion</div>
  10. <div class="panel-body">
  11. <form class="form-horizontal" role="form" method="POST" action="{{ url('/login') }}">
  12. {!! csrf_field() !!}
  13. <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
  14. <label class="col-md-4 control-label">Adresse e-mail</label>
  15. <div class="col-md-6">
  16. <input type="email" class="form-control" name="email" value="{{ old('email') }}">
  17. @if ($errors->has('email'))
  18. <span class="help-block">
  19. <strong>{{ $errors->first('email') }}</strong>
  20. </span>
  21. @endif
  22. </div>
  23. </div>
  24. <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
  25. <label class="col-md-4 control-label">Mot de passe</label>
  26. <div class="col-md-6">
  27. <input type="password" class="form-control" name="password">
  28. @if ($errors->has('password'))
  29. <span class="help-block">
  30. <strong>{{ $errors->first('password') }}</strong>
  31. </span>
  32. @endif
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <div class="col-md-6 col-md-offset-4">
  37. <div class="checkbox">
  38. <label>
  39. <input type="checkbox" name="remember"> Retenir mon mot de passe
  40. </label>
  41. </div>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <div class="col-md-6 col-md-offset-4">
  46. <button type="submit" class="btn btn-primary">
  47. <i class="fa fa-btn fa-sign-in"></i>Connexion
  48. </button>
  49. <a class="btn btn-link white" href="{{ url('/password/reset') }}">Mot de passe oublié?</a>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. @endsection