@leroysheep / BookAlchemy Mirror · read-only
Fork 0

Mirrored from https://github.com/LeeRoySheep/BookAlchemy.git

Synced Nov 2, 19:30 UTC

master
html 32 lines 1.01 KB
Raw
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4 <meta charset="UTF-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0">
6 <meta http-equiv="X-UA-Compatible" content="ie=edge">
7 <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
8 </head>
9 <body>
10 <header><h1>➕ Add Author:</h1></header>
11 <main>
12 {% if success %}
13 <h2>Author added successfully!</h2>
14 {% elif success==False %}
15 <h2>Author not added! {{ error }}</h2>
16 {% endif %}
17 <form action="/add_author" method="POST">
18 <label for="name">Author Name:</label>
19 <input type="text" id="name" name="name" required><br><br>
20
21 <label for="birthdate">Birthdate:</label>
22 <input type="date" id="birthdate" name="birthdate" required><br><br>
23
24 <label for="date_of_death">Date of Death:</label>
25 <input type="date" id="date_of_death" name="date_of_death"><br><br>
26
27 <input type="submit" value="Add Author">
28 </form>
29 <a href="/"><button>Home</button></a>
30 </main>
31 </body>
32 </html>