
<?php \Laravel\Section::start('content'); ?>
	<h1>Add a new article</h1>
	<?php echo  render('common.article_errors') ; ?>
	<?php echo  Form::open('article/create', 'POST') ; ?>

	<p>
		<?php echo  Form::label('art_date', 'Date:') ; ?> <br/>
		<?php echo  Form::date('art_date', Input::old('art_date')) ; ?>
	</p>
	<p>
		<?php echo  Form::label('art_title', 'Title:') ; ?> <br/>
		<?php echo  Form::text('art_title', Input::old('art_title')) ; ?>
	</p>
	<p>
		<?php echo  Form::label('art_text', 'Text:') ; ?> <br/>
		<?php echo  Form::textarea('art_text', Input::old('art_text')) ; ?>
	</p>
	<p>
		<?php echo  Form::label('art_image', 'Image:') ; ?> <br/>
		<?php echo  Form::text('art_image', Input::old('art_image')) ; ?>
	</p>
	<p>
		<?php echo  Form::label('art_expiration', 'Expiration date:') ; ?> <br/>
		<?php echo  Form::date('art_expiration', Input::old('art_expiration')) ; ?>
	</p>
	<p>
		<?php echo  Form::submit('save' , array( 'class' => 'button')) ; ?>
		<?php echo  HTML::link_to_route('articles' , 'cancel', null, array( 'class'=>'button',)) ; ?>
	</p>
	<?php echo  Form::close() ; ?>
<?php \Laravel\Section::stop(); ?>


<?php echo view('layouts.default')->with(get_defined_vars())->render(); ?>