46 lines
2.7 KiB
Plaintext
46 lines
2.7 KiB
Plaintext
<div class="card__actions-container center border-radius flex-inline align-center justify-center gap" style="--bubble-color: <%= @bubble.color %>">
|
|
<% if bubble.popped? %>
|
|
<span class="card__pop-message">Completed by <%= bubble.popped_by.name %> on <%= local_datetime_tag(bubble.popped_at, style: :shortdate) %>.</span>
|
|
<%= button_to bucket_bubble_pop_path(bubble.bucket, bubble), method: :delete, class: "btn btn--plain borderless fill-transparent" do %>
|
|
<span>Un-do</span>
|
|
<% end %>
|
|
<% else %>
|
|
<div class="flex-inline center position-relative" data-controller="dialog" data-action="keydown.esc->dialog#close click@document->dialog#closeOnClickOutside">
|
|
<button class="btn borderless" data-action="click->dialog#open:stop">
|
|
<span>Close as…</span>
|
|
</button>
|
|
|
|
<dialog class="popup panel flex-column align-start gap-half fill-white shadow" style="--row-gap: 0.2em;"
|
|
aria-label="In stage…" aria-description="In stage…"
|
|
data-dialog-target="dialog" data-action="turbo:before-cache@document->dialog#close">
|
|
<strong class="popup__title margin-block-start-half pad-inline-half">Close as…</strong>
|
|
<%= button_to bucket_bubble_pop_path(bubble.bucket, bubble), class: "btn popup__item full-width", form_class: "full-width" do %>
|
|
<span class="overflow-ellipsis">Completed</span>
|
|
<% end %>
|
|
<%= button_to bucket_bubble_pop_path(bubble.bucket, bubble), class: "btn popup__item full-width", form_class: "full-width" do %>
|
|
<span class="overflow-ellipsis">Duplicate</span>
|
|
<% end %>
|
|
<%= button_to bucket_bubble_pop_path(bubble.bucket, bubble), class: "btn popup__item full-width", form_class: "full-width" do %>
|
|
<span class="overflow-ellipsis">Maybe later</span>
|
|
<% end %>
|
|
<%= button_to bucket_bubble_pop_path(bubble.bucket, bubble), class: "btn popup__item full-width", form_class: "full-width" do %>
|
|
<span class="overflow-ellipsis">Working as intended</span>
|
|
<% end %>
|
|
|
|
<% if bubble.stage.present? %>
|
|
<%= button_to bucket_bubble_stagings_path(bubble.bucket, bubble, stage_id: ""), method: :post, class: "btn popup__item full-width" do %>
|
|
<span class="overflow-ellipsis">Move back to Considering</span>
|
|
<% end %>
|
|
<% end %>
|
|
</dialog>
|
|
</div>
|
|
<span class="card__pop-message">
|
|
<% if bubble.stage.present? %>
|
|
Returns to <em>Considering</em> if no activity <%= local_datetime_tag(bubble.auto_pop_at, style: :indays) %>.
|
|
<% else %>
|
|
Auto-closes if no activity <%= local_datetime_tag(bubble.auto_pop_at, style: :indays) %>.
|
|
<% end %>
|
|
</span>
|
|
<% end %>
|
|
</div>
|