菜谱项目

reset.blade.php 3.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="row">
  5. <div class="col-md-8 col-md-offset-2">
  6. <div class="panel panel-default">
  7. <div class="panel-heading">Reset Password</div>
  8. <div class="panel-body">
  9. <form class="form-horizontal" method="POST" action="{{ route('password.request') }}">
  10. {{ csrf_field() }}
  11. <input type="hidden" name="token" value="{{ $token }}">
  12. <div class="form-group{{ $errors->has('email') ? ' has-error' : '' }}">
  13. <label for="email" class="col-md-4 control-label">E-Mail Address</label>
  14. <div class="col-md-6">
  15. <input id="email" type="email" class="form-control" name="email" value="{{ $email or old('email') }}" required autofocus>
  16. @if ($errors->has('email'))
  17. <span class="help-block">
  18. <strong>{{ $errors->first('email') }}</strong>
  19. </span>
  20. @endif
  21. </div>
  22. </div>
  23. <div class="form-group{{ $errors->has('password') ? ' has-error' : '' }}">
  24. <label for="password" class="col-md-4 control-label">Password</label>
  25. <div class="col-md-6">
  26. <input id="password" type="password" class="form-control" name="password" required>
  27. @if ($errors->has('password'))
  28. <span class="help-block">
  29. <strong>{{ $errors->first('password') }}</strong>
  30. </span>
  31. @endif
  32. </div>
  33. </div>
  34. <div class="form-group{{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
  35. <label for="password-confirm" class="col-md-4 control-label">Confirm Password</label>
  36. <div class="col-md-6">
  37. <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
  38. @if ($errors->has('password_confirmation'))
  39. <span class="help-block">
  40. <strong>{{ $errors->first('password_confirmation') }}</strong>
  41. </span>
  42. @endif
  43. </div>
  44. </div>
  45. <div class="form-group">
  46. <div class="col-md-6 col-md-offset-4">
  47. <button type="submit" class="btn btn-primary">
  48. Reset Password
  49. </button>
  50. </div>
  51. </div>
  52. </form>
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. @endsection