diff options
Diffstat (limited to 'Year_3/TSDWL/LARAVEL/iBook/resources')
-rw-r--r-- | Year_3/TSDWL/LARAVEL/iBook/resources/views/books/create.blade.php | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Year_3/TSDWL/LARAVEL/iBook/resources/views/books/create.blade.php b/Year_3/TSDWL/LARAVEL/iBook/resources/views/books/create.blade.php new file mode 100644 index 0000000..398c7b4 --- /dev/null +++ b/Year_3/TSDWL/LARAVEL/iBook/resources/views/books/create.blade.php @@ -0,0 +1,26 @@ +@extends('layout') + +@section('content') +<h1>Create a new book</h1> + +<form method="post" action="/books"> + @csrf + <div> + <label for="name">Name: </label> + <input type="text" name="name" id="name"> + </div> + <div> + <label for="published_at">Published at: </label> + <input type="date" name="published_at" id="published_at"> + </div> + <div> + <label for="is_online">Is online?: </label> + <input type="checkbox" name="is_online" id="is_online"> + </div> + <div> + <label for="author_id">Author: </label> + <input type="text" name="name" id="name"> + </div> +</form> + +@endsection |