{% extends "admin/dashboard.html" %} {% load static %} {% block title %} Admin | Book Create {% endblock title %} {% block content %}
{% csrf_token %}

Add Cover Image

Please upload a valid image.

General Information

Please enter a valid book title.
Please enter the author's name.
Please select the book's status.
Please upload a valid PDF file.
(() => { 'use strict'; // Fetch all forms with the 'needs-validation' class const forms = document.querySelectorAll('.needs-validation'); // Add event listener to validate fields on submit Array.from(forms).forEach((form) => { form.addEventListener('submit', (event) => { if (!form.checkValidity()) { event.preventDefault(); event.stopPropagation(); } form.classList.add('was-validated'); }, false); }); })(); {% endblock %}