Created
February 16, 2020 16:05
-
-
Save ecojuntak/2bd89c7d9804d7c397666833b1592d4b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Edit book</title> | |
</head> | |
<body> | |
<div style="background: #388BF2; font-size: 24px; color: white"> | |
Simple library app | |
</div> | |
<div style="margin-top: 20px; margin-bottom: 20px"> | |
<a href="/books"> Book list </a> | |
<h3> Please change the data you want yo update </h3> | |
<div> | |
<form method="post" action="{{ url("/books", $book->id) }}"> | |
{{ method_field('PUT') }} | |
<div> | |
<label> | |
Title | |
<input name="title" value="{{ $book->title }}"/> | |
</label> | |
</div> | |
<div> | |
<label> | |
Publication | |
<input name="publication" value="{{ $book->publication }}"/> | |
</label> | |
</div> | |
<div> | |
<label> | |
Author | |
<input name="author" value="{{ $book->author }}"/> | |
</label> | |
</div> | |
<div> | |
<label> | |
Year | |
<input name="year" type="date" value="{{ $book->year }}"/> | |
</label> | |
</div> | |
<button type="submit"> Update </button> | |
</form> | |
</div> | |
</div> | |
<div style="background: #31B057; font-size: 20px; color: white"> | |
Created with love and willingness to learn | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment