extract base view template for form view

@dannyroberts