created generic id_name_form.html and made condition, covertype, genre, owned, publisher & rating use it for single edit page

This commit is contained in:
2020-11-18 12:09:02 +11:00
parent 8ebf9b73cb
commit 5f46636298
15 changed files with 34 additions and 147 deletions

View File

@@ -61,4 +61,4 @@ def genre(id):
genre = Genre.query.get(id)
genre_form = GenreForm(request.values, obj=genre)
message=""
return render_template("genre.html", genre=genre, alert=alert, message=message, genre_form=genre_form)
return render_template("id_name_form.html", genre=genre, alert=alert, message=message, form=genre_form, page_title='Edit Genre')