Added .html for adding authors

parent 8ad71356
<!DOCTYPE html> {% extends 'base.html' %}
<html lang="en"> {% load static %}
<head> {% block title %} Add New Author {% endblock %}
<meta charset="UTF-8"> {% block content %}
<title>Title</title> {{ form.non_field_errors }}
</head> {% for field in form %}
<body> {% if field.errors %}
<p> {{ field.label }} has the following errors:</p>
</body> <ul>
</html> {% for error in field.errors %}
\ No newline at end of file <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 Author">
</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