summaryrefslogtreecommitdiff
path: root/Year_3/TSDWL/LARAVEL/iBook/resources/views/books/create.blade.php
blob: 398c7b47cc544ba89103b94b9c62e3eb602d8a4c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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