Task status selector in index

This commit is contained in:
2025-10-31 22:42:26 +02:00
parent 8bb22f8e04
commit 74c22b7b3d
11 changed files with 92 additions and 6 deletions
+8
View File
@@ -15,4 +15,12 @@ module TasksHelper
content_tag(:span, status.name, class: ['badge', 'task-status', status.category.dasherize])
end
def task_status_selector(task, selector_class: '', id: nil, with_form: false)
# TODO: extract into a component probably
raise 'You should pass id if you want the form' if with_form && id.blank?
render partial: 'tasks/status_selector', locals: { task:, selector_class:, id:, with_form: }
end
end