1- @extends (' layouts.app' )
1+ @extends (' layouts.app' )
22@section (' title' ,' Create new task' )
33
44@section (' styles' )
5- <script src =" //cdn.ckeditor.com/4.8.0/standard/ckeditor.js" ></script >
6- @endsection
5+ <script src =" //cdn.ckeditor.com/4.8.0/standard/ckeditor.js" ></script >
6+ @endsection
77
88@section (' content' )
9- <div class =" row" >
10-
11- <div class =" col" >
12-
13- <div class =" d-flex justify-content-between" >
9+ <div class =" d-flex justify-content-between" >
1410 <div >
15- <h2 >Create task</h2 >
11+ <h2 >Create task</h2 >
1612 </div >
1713 <div >
18- <a href =" {{ route (' tasks.index' )} }" class =' btn btn-lg btn-warning' >Go back</a >
14+ <a href =" {{ route (' tasks.index' ) } }" class =' btn btn-lg btn-warning' >Go back</a >
1915 </div >
20- </div >
21- <br >
22- @include (' particles.errors' )
23- @if (\Session:: has (' success' ) )
24- <div class =" alert alert-success" >
25- <p >{{ \Session:: get (' success' ) } } </p >
26- </div ><br />
27- @endif
28- <form name =' create_form' method =" post" action =" {{ route (' tasks.store' )} }" >
29- {{ csrf_field ()} }
16+ </div >
17+ @include (' particles.errors' )
18+ @include (' particles.alert' )
19+ <form name =' create_form' method =" post" action =" {{ route (' tasks.store' ) } }" >
20+ {{ csrf_field () } }
3021
31- <div class =" form-group col-md-12 " >
22+ <div class =" form-group" >
3223 <label for =" name" >Name:</label >
3324 <input type =" text" class =" form-control" name =" name" maxlength =' 150' required >
34- </div >
25+ </div >
3526
36- <div class =" form-group col-md-12" >
37- <label for =" description" >Description:</label >
38- <textarea name =" description" ></textarea >
39- <script >
40- CKEDITOR .replace ( ' description' );
41- </script >
42- </div >
43- </div >
44- <div class =" form-group col-md-12" >
45- <button type =" submit" class =" btn btn-success btn-block" >Add Task</button >
46- </div >
47- </form >
48- </div >
49- </div >
27+ <div class =" form-group" >
28+ <label for =" description" >Description:</label >
29+ <textarea name =" description" ></textarea >
30+ <script >
31+ CKEDITOR .replace (' description' );
32+ </script >
33+ </div >
34+ <div class =" form-group" >
35+ <button type =" submit" class =" btn btn-success btn-block" >Add Task</button >
36+ </div >
37+ </form >
5038@endsection
0 commit comments