123456789101112131415161718192021222324252627282930313233343536373839 |
- @extends('hello')
- @section('content')
- <div class="container" style="margin-top: 40px;">
- <div class="row">
- <div class="col-md-8 col-md-offset-2">
- <div class="panel panel-default">
- <div class="panel-heading"><h2 class="panel-title">News erstellen</h2></div>
- <div class="panel-body">
- {{Form::open(array('url' => 'news'))}}
- @if(count($errors->all()) > 0)
- <div class="alert alert-danger alert-dismissable">
- <button type="button" class="close" data-dismiss="alert">×</button>
- Es müssen beide Felder ausgefüllt werden!
- </div>
- @endif
- <div class="input-group form-group <?php if($errors->has('headline')) echo "has-error" ?>">
- <span class="input-group-addon">
- <span class="glyphicon glyphicon-paperclip"></span>
- </span>
- <input type="text" class="form-control" name="headline" placeholder="Überschrift" <?php if(!is_null(Input::get('headline'))) echo "value='" . Input::get('headline') . "'"; ?>>
- </div>
- <div class="form-group <?php if($errors->has('email')) echo "has-error" ?>">
- <textarea class="form-control" name="body" placeholder="Nachricht"><?php if(!is_null(Input::get('body'))) echo Input::get('body') . "'"; ?></textarea>
- </div>
- <div class="form-group">
- <button type="submit" class="btn btn-primary">Absenden</button>
- </div>
- {{ Form::close() }}
- </div>
- </div>
- </div>
- </div>
- </div>
- @stop
- @section('title')
- News erstellen ~
- @stop
|