Add progress to req_list

This commit is contained in:
aminhashemi92 2025-09-07 12:00:34 +03:30
parent 7a153c46e6
commit 5ce94214d5
6 changed files with 29261 additions and 27 deletions

View file

@ -245,7 +245,7 @@ class ProcessInstance(SluggedModel):
'cancelled': 'warning',
}
color = status_colors.get(self.status, 'secondary')
return '<span class="badge bg-{}">{}</span>'.format(color, self.get_status_display())
return '<span class="badge bg-label-{}">{}</span>'.format(color, self.get_status_display())
def get_priority_display_with_color(self):
"""نمایش اولویت با رنگ"""