neuester Stand

This commit is contained in:
2013-09-11 16:02:44 +02:00
parent 5cb555e869
commit 7d21be1a66
14 changed files with 707 additions and 29 deletions

59
app/views/new.blade.php Normal file
View File

@@ -0,0 +1,59 @@
@extends('hello')
@section('content')
<div class="page-header"><h1>Film vorschlagen</h1></div>
<div class="container">
{{ Form::open(array('url' => 'neu')) }}
<div class="input-group">
<span class="input-group-addon"><span class="glyphicon glyphicon-search"></span></span>
<input type="search" name="search" class="form-control" placeholder="Filmname...">
<span class="input-group-btn">
<button type="submit" value="Suchen" class="btn btn-primary">
Suchen
</button>
</span>
</div>
{{ Form::close() }}
</div>
<h2>Suchergebnisse</h2>
<p></p>
@if(isset($result))
<section id="results">
<table class="table">
<tr>
<th></th>
<th>Titel</th>
<th>Originaltitel</th>
<th>Veröffentlichung</th>
<th></th>
</tr>
@foreach($result['results'] as $r)
<tr>
<td>
<img src="{{ $tmdb->getImageUrl($r['poster_path'], TMDb::IMAGE_POSTER, 'w92'); }}" class="img-responsive img-thumbnail">
</td>
<td>{{ $r['title' ]}}</td>
<td>{{ $r['original_title']}}</td>
<td>{{ \Carbon\Carbon::parse($r['release_date'])->format('d.m.Y') }}</td>
<td>
<p><a class="btn btn-primary btn-xs" href="http://themoviedb.com/movie/{{$r['id']}}">themoviedb.org</a></p>
<p><a class="btn btn-default btn-xs" href="{{ url('vorschlag/' . $r['id']) }}">Film vorschlagen</a></p>
</td>
</tr>
@endforeach
</table>
</section>
<pre>{{var_dump($result)}}</pre>
@endif
@stop
@section('title')
Neuer Film ~
@stop