コード例 #1
0
ファイル: inspect.py プロジェクト: tsinkala/core-hq
 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
コード例 #2
0
 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
コード例 #3
0
ファイル: inspect.py プロジェクト: mchampanis/core-hq
 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
コード例 #4
0
    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