diff options
author | Santo Cariotti <santo@dcariotti.me> | 2022-01-24 19:31:36 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2022-01-24 19:31:36 +0100 |
commit | d43e1f5f5c0d70ca1b0ed4eed4b5364bf53e5685 (patch) | |
tree | 5a290c97a688a1df682ecc148b914998748d27e8 /Year_3/TSDWL/LARAVEL/iBook | |
parent | 0a58e131ce0d96ecd60c4daf2c41821a625d689b (diff) |
add example in spring
Diffstat (limited to 'Year_3/TSDWL/LARAVEL/iBook')
-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 |