+Bewertungen, Meistgewünschter Film, Sortierung nach Votes

This commit is contained in:
2013-09-27 04:06:12 +02:00
parent 521ecc46c1
commit fb74d68046
11 changed files with 264 additions and 20 deletions

39
app/views/news.blade.php Normal file
View File

@@ -0,0 +1,39 @@
@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">&times;</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="&Uuml;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