def rendered_report_title(self): if not self.individual: self.name = _("%(report_name)s for %(worker_type)s") % { "report_name": _(self.name), "worker_type": _(SelectMobileWorkerField.get_default_text(self.user_filter)) } return self.name
def headers(self): headers = DataTablesHeader(DataTablesColumn("Name"), DataTablesColumn("User"), DataTablesColumn("Created Date"), DataTablesColumn("Modified Date"), DataTablesColumn("Status")) headers.no_sort = True if not self.individual: self.name = "%s for %s" % (self.name, SelectMobileWorkerField.get_default_text(self.user_filter)) if not self.case_type: headers.prepend_column(DataTablesColumn("Case Type")) return headers
def headers(self): headers = DataTablesHeader( DataTablesColumn(_("Case Type")), DataTablesColumn(_("Name")), DataTablesColumn(_("Owner")), DataTablesColumn(_("Created Date")), DataTablesColumn(_("Created By")), DataTablesColumn(_("Modified Date")), DataTablesColumn(_("Status")) ) headers.no_sort = True if not self.individual: self.name = _("%(report_name)s for %(worker_type)s") % { "report_name": _(self.name), "worker_type": _(SelectMobileWorkerField.get_default_text(self.user_filter)) } return headers