Workflow statuses editing

This commit is contained in:
2026-04-13 02:22:52 +03:00
parent 9766430e69
commit 450b7fb1d0
10 changed files with 130 additions and 20 deletions
@@ -0,0 +1,2 @@
module ProjectAdmin::Workflows::StatusesHelper
end
+8
View File
@@ -12,4 +12,12 @@ module TasksHelper
def task_status_selector(task, with_form: false)
render Tasks::Statuses::SelectorViewModel.new(task, with_form:)
end
# TODO: move into another helper?
def task_status_badge(status)
content_tag(
:span, mask_icon(Tasks::Statuses::SelectorViewModel.icon(status)) + status.name,
class: ['badge', 'task-status', status.color]
)
end
end