def data_attributes(admin_set)
        # Get permission template associated with this AdminSet (if any)
        permission_template = PermissionTemplate.find_by(source_id: admin_set.id)

        # Only add data attributes if permission template exists
        return {} unless permission_template
        attributes_for(permission_template: permission_template)
      end
def data_attributes(admin_set)
        # Get permission template associated with this AdminSet (if any)
        permission_template = PermissionTemplate.find_by(source_id: admin_set.id)

        # Only add data attributes if permission template exists
        return {} unless permission_template
        attributes_for(permission_template: permission_template)
      end
Create a hash of HTML5 'data' attributes. These attributes are added to select_options and
 later utilized by Javascript to limit new Work options based on AdminSet selected