register.blade.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. @extends('hello')
  2. @section('content')
  3. <div class="container" style="margin-top: 40px;">
  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"><h2 class="panel-title">Registrieren</h2></div>
  8. <div class="panel-body">
  9. {{Form::open(array('url' => 'register'))}}
  10. @if(count($errors->all()) > 0)
  11. <div class="alert alert-danger alert-dismissable">
  12. <button type="button" class="close" data-dismiss="alert">&times;</button>
  13. Deine Registrierungsdaten sind fehlerhaft!
  14. </div>
  15. @endif
  16. <div class="input-group form-group <?php if($errors->has('name')) echo "has-error" ?>">
  17. <span class="input-group-addon">
  18. <span class="glyphicon glyphicon-user"></span>
  19. </span>
  20. <input type="text" class="form-control" name="user" placeholder="Benutzername" <?php if(!is_null(Input::get('user'))) echo "value='" . Input::get('user') . "'"; ?>>
  21. </div>
  22. <div class="input-group form-group <?php if($errors->has('email')) echo "has-error" ?>">
  23. <span class="input-group-addon">
  24. <span class="glyphicon glyphicon-envelope"></span>
  25. </span>
  26. <input type="email" class="form-control" name="email" placeholder="name@domain.tld" <?php if(!is_null(Input::get('email'))) echo "value='" . Input::get('email') . "'"; ?>>
  27. </div>
  28. <div class="input-group form-group <?php if($errors->has('password')) echo "has-error" ?>">
  29. <span class="input-group-addon">
  30. <span class="glyphicon glyphicon-lock"></span>
  31. </span>
  32. <input type="password" class="form-control" name="password" placeholder="Passwort">
  33. </div>
  34. <div class="input-group form-group <?php if($errors->has('password')) echo "has-error" ?>">
  35. <span class="input-group-addon">
  36. <span class="glyphicon glyphicon-lock"></span>
  37. </span>
  38. <input type="password" class="form-control" name="pw-confirm" placeholder="Passwort bestätigen">
  39. </div>
  40. <div class="form-group <?php if($errors->has('fire')) echo "has-error" ?>">
  41. <div class="input-group">
  42. <span class="input-group-addon">
  43. <span class="glyphicon glyphicon-fire"></span>
  44. </span>
  45. <input type="text" class="form-control" name="fire" placeholder="&pi; (pi) beschreibt welche geometrische Figur?" <?php if(!is_null(Input::get('fire'))) echo "value='" . Input::get('fire') . "'"; ?>>
  46. </div>
  47. <p class="help-block">Beantworte die Frage, um zu beweisen, dass Du kein Bot bist.</p>
  48. </div>
  49. <div class="form-group">
  50. <button type="submit" class="btn btn-primary">Registrieren</button>
  51. </div>
  52. {{ Form::close() }}
  53. </div>
  54. </div>
  55. </div>
  56. </div>
  57. </div>
  58. @stop
  59. @section('title')
  60. Registrieren ~
  61. @stop