news.blade.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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">News erstellen</h2></div>
  8. <div class="panel-body">
  9. {{Form::open(array('url' => 'news'))}}
  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. Es müssen beide Felder ausgefüllt werden!
  14. </div>
  15. @endif
  16. <div class="input-group form-group <?php if($errors->has('headline')) echo "has-error" ?>">
  17. <span class="input-group-addon">
  18. <span class="glyphicon glyphicon-paperclip"></span>
  19. </span>
  20. <input type="text" class="form-control" name="headline" placeholder="&Uuml;berschrift" <?php if(!is_null(Input::get('headline'))) echo "value='" . Input::get('headline') . "'"; ?>>
  21. </div>
  22. <div class="form-group <?php if($errors->has('email')) echo "has-error" ?>">
  23. <textarea class="form-control" name="body" placeholder="Nachricht"><?php if(!is_null(Input::get('body'))) echo Input::get('body') . "'"; ?></textarea>
  24. </div>
  25. <div class="form-group">
  26. <button type="submit" class="btn btn-primary">Absenden</button>
  27. </div>
  28. {{ Form::close() }}
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. @stop
  35. @section('title')
  36. News erstellen ~
  37. @stop