eimkasp

LaravelForm template blade

Nov 16th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.66 KB | None | 0 0
  1. <h1>Formos</h1>
  2.  
  3. @if(count($errorMessages) > 0)
  4.     <h2>Yra klaidu</h2>
  5.     <ul>
  6.         @foreach($errorMessages->all() as $error)
  7.             <li>{{ $error }}</li>
  8.         @endforeach
  9.     </ul>
  10. @endif
  11.  
  12. <div id="forma">
  13.     {{ Form::open(['url' => '/formos', 'method' => "POST", 'class' => 'labai-gera-forma']) }}
  14.     {{ Form::text('name', 'this is name', ['class' => 'awesome', 'id'=>"geras"]) }}
  15.     {{ Form::text('email', 'example@gmail.com', ['class' => 'awesome', 'id'=>"geras1"]) }}
  16.     {{ Form::text('email-confirm', 'example@gmail.com', ['class' => 'awesome', 'id'=>"geras1"]) }}
  17.     {{ Form::submit('Click Me!') }}
  18.     {{ Form::close() }}
  19. </div>
Add Comment
Please, Sign In to add comment