template: fix border setting bug on datasheet table

Removed border from wrong tables, and did not remove from the correct
class.