Move custom form into sub-template and use it

Move the custom form code for creating and updating a lend into a sub-template
and use it in lend-create-form.html and lend-id-update-form.html
Fix bug in form for creating/updating a lend

Change button's type from "reset" to "button" to prevent it from resetting the
entire form when pressed.