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

@@ -63,4 +63,4 @@ def covertype(id):
covertype = Covertype.query.get(id)
covertype_form = CovertypeForm(request.values, obj=covertype)
message=""
return render_template("covertype.html", covertype=covertype, alert=alert, message=message, covertype_form=covertype_form)
return render_template("id_name_form.html", covertype=covertype, alert=alert, message=message, form=covertype_form, page_title='Edit Covertype')