26 lines
1.1 KiB
Plaintext
26 lines
1.1 KiB
Plaintext
<div id="<%= dom_id(card, :stages) %>" class="card__stages" role="radiogroup">
|
|
<legend class="for-screen-reader">Choose a column for this card</legend>
|
|
|
|
<%= button_to "Not now", card_not_now_path(card),
|
|
class: [ "workflow-stage btn", { "workflow-stage--current": card.postponed? } ],
|
|
role: "radio",
|
|
aria: { checked: card.postponed? },
|
|
form_class: "flex align-center gap-half" %>
|
|
|
|
<%= button_to "The Stream", card_triage_path(card), method: :delete,
|
|
class: [ "workflow-stage workflow-stage--stream btn", { "workflow-stage--current": card.awaiting_triage? } ],
|
|
role: "radio",
|
|
aria: { checked: card.awaiting_triage? },
|
|
form_class: "flex align-center gap-half" %>
|
|
|
|
<% card.collection.columns.each do |column| %>
|
|
<%= button_to_set_column card, column %>
|
|
<% end %>
|
|
|
|
<%= button_to "Closed", card_closure_path(card, reason: "Completed"),
|
|
class: [ "workflow-stage btn", { "workflow-stage--current": card.closed? } ],
|
|
role: "radio",
|
|
aria: { checked: card.closed? },
|
|
form_class: "flex align-center gap-half" %>
|
|
</div>
|