app/helpers/application_helper/button/miq_template_perf.rb
class ApplicationHelper::Button::MiqTemplatePerf < ApplicationHelper::Button::Basic
needs :@record
def disabled?
unless @record.has_perf_data?
@error_message = _('No Capacity & Utilization data has been collected for this Template')
end
@error_message.present?
end
end