settings.blade.php 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. @extends('hello')
  2. @section('content')
  3. <div class="container" style="margin-top: 40px;">
  4. <div class="row">
  5. <div class="col-md-2">
  6. <ul class="nav nav-pills nav-stacked">
  7. <li class="active"><a href="#avatar" data-toggle="pill">Avatar</a></li>
  8. <li><a href="#password" data-toggle="pill">Password</a></li>
  9. <li><a href="#email" data-toggle="pill">E-Mail</a></li>
  10. </ul>
  11. </div>
  12. <div class="col-md-8 tab-content">
  13. <div class="tab-pane active" id="avatar">
  14. <div class="panel panel-default">
  15. <div class="panel-heading">
  16. <h2 class="panel-title">Avatar</h2>
  17. </div>
  18. <div class="panel-body">
  19. <div class="media media-left">
  20. <a href="#"><img class="media-object" src="{{ Auth::user()->getAvatar() }}" width="64"></a>
  21. </div>
  22. <div class="media-body">
  23. <h4 class="media-heading">Aktueller Avatar</h4>
  24. Du kannst unten einen neuen Avatar hochladen oder den Avatar zurücksetzen.
  25. </div>
  26. <p>
  27. {{ Form::open(array('url' => 'settings/avatar-upload', 'files' => true)) }}
  28. {{ $errors->first() }}
  29. {{ Form::file('avatar'); }}
  30. <button type="submit" class="btn btn-primary">Absenden</button>
  31. {{ Form::close() }}
  32. </p>
  33. <p>
  34. {{ Form::open(array('url' => 'settings/avatar-reset')) }}
  35. <button type="submit" class="btn btn-danger">Avatar zurücksetzen</button>
  36. {{ Form::close() }}
  37. </p>
  38. </div>
  39. </div>
  40. </div>
  41. <div class="tab-pane" id="password">
  42. <div class="panel panel-default">
  43. <div class="panel-heading"><h2 class="panel-title">Passwort ändern</h2></div>
  44. <div class="panel-body">
  45. {{ Form::open(array('url' => 'settings/password')) }}
  46. {{ $errors->first() }}
  47. <div class="input-group form-group <?php if ($errors->has('oldpw')) echo "has-error" ?>">
  48. <span class="input-group-addon">
  49. <span class="glyphicon glyphicon-lock"></span>
  50. </span>
  51. <input type="password" class="form-control" name="oldpw" placeholder="Altes Passwort">
  52. </div>
  53. <div class="input-group form-group <?php if ($errors->has('newpw')) echo "has-error" ?>">
  54. <span class="input-group-addon">
  55. <span class="glyphicon glyphicon-lock"></span>
  56. </span>
  57. <input type="password" class="form-control" name="newpw" placeholder="Neues Passwort">
  58. </div>
  59. <div class="input-group form-group <?php if ($errors->has('newpw')) echo "has-error" ?>">
  60. <span class="input-group-addon">
  61. <span class="glyphicon glyphicon-lock"></span>
  62. </span>
  63. <input type="password" class="form-control" name="newpw2"
  64. placeholder="Neues Passwort bestätigen">
  65. </div>
  66. <button type="submit" class="btn btn-primary">Absenden</button>
  67. {{ Form::close() }}
  68. </div>
  69. </div>
  70. </div>
  71. <div class="tab-pane" id="email">
  72. <div class="panel panel-default">
  73. <div class="panel-heading"><h2 class="panel-title">E-Mail ändern</h2></div>
  74. <div class="panel-body">
  75. <dl class="dl-horizontal">
  76. <dt>Aktuelle E-Mail</dt>
  77. <dd>{{Auth::user()->email}}</dd>
  78. </dl>
  79. {{ Form::open(array('url' => 'settings/email')) }}
  80. <div class="input-group form-group <?php if ($errors->has('pw')) echo "has-error" ?>">
  81. <span class="input-group-addon">
  82. <span class="glyphicon glyphicon-lock"></span>
  83. </span>
  84. <input type="password" class="form-control" name="pw" placeholder="Passwort">
  85. </div>
  86. <div class="input-group form-group <?php if ($errors->has('email')) echo "has-error" ?>">
  87. <span class="input-group-addon">
  88. <span class="glyphicon glyphicon-envelope"></span>
  89. </span>
  90. <input type="email" class="form-control" name="email" placeholder="Neue E-Mail">
  91. </div>
  92. <div class="input-group form-group <?php if ($errors->has('email')) echo "has-error" ?>">
  93. <span class="input-group-addon">
  94. <span class="glyphicon glyphicon-envelope"></span>
  95. </span>
  96. <input type="email" class="form-control" name="email2"
  97. placeholder="Neue E-Mail bestätigen">
  98. </div>
  99. <button type="submit" class="btn btn-primary">Absenden</button>
  100. {{ Form::close() }}
  101. </div>
  102. </div>
  103. </div>
  104. </div>
  105. </div>
  106. </div>
  107. @stop
  108. @section('title')
  109. Einstellungen ~
  110. @stop