Added content for edit-author.html

parent d274c65c
{% extends 'base.html' %} {% extends 'base.html' %}
{% load static %} {% load static %}
{% block title %} Add New Author {% endblock %} {% block title %} Add New Author {% endblock %}
{% block content %} {% block content %}
{{ form.non_field_errors }} {{ form.non_field_errors }}
......
<!DOCTYPE html> {% extends 'base.html' %}
<html lang="en"> {% load static %}
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body> {% block title %} Add New Book {% endblock %}
</html> {% block content %}
\ No newline at end of file {{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p> {{ field.label }} has the following errors:</p>
<ul>
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<form method = "post">
{% csrf_token %}
{% for field in form %}
{{field.label}}: {{field}}<br><br>
{% endfor %}
&nbsp; &nbsp; &nbsp; &nbsp;<input type="submit" value="Add Book">
</form>
{% endblock %}
<!DOCTYPE html> {% extends 'base.html' %}
<html lang="en"> {% load static %}
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body> {% block title %} Edit Author {% endblock %}
</html> {% block content %}
\ No newline at end of file {{ form.non_field_errors }}
{% for field in form %}
{% if field.errors %}
<p> {{ field.label }} has the following errors:</p>
<ul>
{% for error in field.errors %}
<li>{{ error }}</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
<form method = "post">
{% csrf_token %}
{% for field in form %}
{{field.label}}: {{field}}<br><br>
{% endfor %}
&nbsp; &nbsp; &nbsp; &nbsp; <input type="submit" value="Save Changes">
</form>
{% endblock %}
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