added form.swig file and included it in the 'edit' and 'add' partials