Fronts: use collection's `type` for template mapping

todo: move template logic into dedicated collection object