add data-resource attribute to resource rows