Can't get autoform to render


#1

Good day,

I can’t seem to get my autoform to render, the console isn’t showing any errors so not too sure where I am going wrong. Any advice would be most appreciated, see code below. thank you kindly.

person.html

{{> NewPerson }}

newperson.html

{{> quickForm collection="Person" id="insertPersonForm" type="insert" class="new-person-form"}}

routes.js

FlowRouter.route(’/’,{
name: ‘home’,
action(){
BlazeLayout.render(‘HomeLayout’);
}
});

FlowRouter.route(’/PersonDetails’,{
name: ‘Person Details’,
action(){
BlazeLayout.render(‘MainLayout’, {main: ‘Person’});
}
});

homelayout.html

Personal Health Record

{{> loginButtons}}

mainlayout.html

Personal Health Record

{{> loginButtons}} {{> Template.dynamic template=main}}