@extends('movies.layout.master')
@section('content')
<h1 class="page-header">{{ isset($movie)? '更新电影' : '创建电影' }}</h1>
{{ Form::open(array(
'url' => isset($movie)? 'movies/' . $movie->movie_id : 'movies',
'method' => isset($movie)? 'PUT' : 'POST',
'class' => 'form-horizontal')) }}
<div class="form-group">
{{ Form::label('movie_title', '电影标题', array('class' => 'col-sm-2 control-label')) }}
<div class="col-sm-10">
{{ Form::text('movie_title', isset($movie)? $movie->movie_title : '', array('class' => 'col-sm-2 form-control'))}}
</div>
</div>
<div class="form-group">
{{ Form::label('movie_budget', '制作成本', array('class' => 'col-sm-2 control-label')) }}
<div class="col-sm-10">
{{ Form::text('movie_budget', isset($movie)? $movie->movie_budget : '', array('class' => 'col-sm-2 form-control')) }}
</div>
</div>
<div class="form-group">
{{ Form::label('movie_date', '发行日期', array('class' => 'col-sm-2 control-label')) }}
<div class="col-sm-10">
{{ Form::text('movie_date', isset($movie)? $movie->movie_date : '', array('class' => 'col-sm-2 form-control')) }}
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
{{ Form::submit(isset($movie)? '更新' : '发布', array('class' => 'btn btn-default')) }}
</div>
</div>
{{ Form::close() }}
@stop