Skip to content

Instantly share code, notes, and snippets.

@mateusgf
Created July 26, 2013 14:26
Show Gist options
  • Save mateusgf/6089276 to your computer and use it in GitHub Desktop.
Save mateusgf/6089276 to your computer and use it in GitHub Desktop.
@layout('layouts.default')
@section('content')
<div id="ask">
<h1>Ask a Question</h1>
@if(Auth::check())
@if($errors->has())
<p>The following errors have occurred:</p>
<ul id="form-errors">
{{ $errors->first('question', '<li>:message</li>') }}
</ul>
@endif
{{ Form::open('ask', 'POST') }}
{{ Form::token() }}
<p>
{{ Form::label('question', 'Question') }}<br />
{{ Form::text('question', Input::old('question')) }}
{{ Form::submit('Ask a Question') }}
</p>
{{ Form::close() }}
@else
<p>Please login to ask or answer questions.</p>
@endif
</div><!-- end ask -->
@endsection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment