Created
July 26, 2013 14:26
-
-
Save mateusgf/6089276 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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