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 owned(id):
owned = Owned.query.get(id)
owned_form = OwnedForm(request.values, obj=owned)
message=""
return render_template("owned.html", owned=owned, alert=alert, message=message, owned_form=owned_form)
return render_template("id_name_form.html", owned=owned, alert=alert, message=message, form=owned_form, page_title='Edit Owned Type' )