This commit is contained in:
David Heinemeier Hansson
2025-04-18 16:47:53 +02:00
parent 406c764253
commit 247524da29
+6 -4
View File
@@ -1,10 +1,12 @@
module WorkflowsHelper
def button_to_set_stage(card, stage)
button_to \
tag.span(stage.name, class: "overflow-ellipsis"), card_stagings_path(card, stage_id: stage),
method: :post, class: [ "btn justify-start workflow-stage txt-uppercase workflow-stage", { "workflow-stage--current": stage == card.stage } ],
form_class: "flex align-center gap-half",
data: { turbo_frame: "_top" }
tag.span(stage.name, class: "overflow-ellipsis"),
card_stagings_path(card, stage_id: stage),
method: :post,
class: [ "btn justify-start workflow-stage txt-uppercase workflow-stage", { "workflow-stage--current": stage == card.stage } ],
form_class: "flex align-center gap-half",
data: { turbo_frame: "_top" }
end
def stage_color(stage)