Applying Bootstrap label class based on custom attribute