Commit 4c3da610 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

added method to the form of addbookk & add author

parent 2a66faa4
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
{% block title %}Add New Author{% endblock %} {% block title %}Add New Author{% endblock %}
{% block content %} {% block content %}
<form> <form method="post">
{% csrf_token %}
<label>First Name: </label> <label>First Name: </label>
<input id="first_name" type="text" name="first_name" max length="50" required/> <input id="first_name" type="text" name="first_name" max length="50" required/>
<label>Last Name: </label> <label>Last Name: </label>
......
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
{% block title %}Add New Book{% endblock %} {% block title %}Add New Book{% endblock %}
{% block content %} {% block content %}
<form> <form method="post">
{% csrf_token %}
<label>Title: </label> <label>Title: </label>
<input id="title" type="text" name="title" max length="50" required/> <input id="title" type="text" name="title" max length="50" required/>
<label>Author: </label> <label>Author: </label>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment