Remove unimplemented closure filter
https://fizzy.37signals.com/5986089/cards/1558
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
<div class="cards__heading" data-controller="dialog" data-action="keydown.esc->dialog#close click@document->dialog#closeOnClickOutside">
|
||||
<button class="cards__filter btn input input--select borderless overflow-ellipsis fill-transparent" data-action="click->dialog#open:stop">
|
||||
Recently closed
|
||||
</button>
|
||||
|
||||
<dialog class="margin-block-start-half popup panel flex-column align-start gap-half fill-white shadow"
|
||||
aria-label="Closed with reason…" aria-description="Closed with reason…"
|
||||
data-dialog-target="dialog" data-action="turbo:before-cache@document->dialog#close">
|
||||
<strong class="popup__title margin-block-start-half pad-inline-half">Closed with reason…</strong>
|
||||
<%= form_with url: cards_path, method: :get, class: "popup__list",
|
||||
data: { controller: "form" } do |form| %>
|
||||
<% filter.as_params.except(:closure_reason_ids).each do |key, value| %>
|
||||
<%= filter_hidden_field_tag key, value %>
|
||||
<% end %>
|
||||
|
||||
<%= link_to cards_path(filter.as_params.except(:closure_reason_ids)), class: "popup__item btn" do %>
|
||||
<span class="overflow-ellipsis">All recently closed</span>
|
||||
<% end %>
|
||||
|
||||
<% Closure::Reason.all.each do |reason| %>
|
||||
<div class="popup__item btn">
|
||||
<%= form.check_box :closure_reason_ids, {
|
||||
multiple: true,
|
||||
checked: false,
|
||||
data: { action: "change->form#submit" },
|
||||
include_hidden: false,
|
||||
}, reason.label %>
|
||||
|
||||
<%= form.label :closure_reason_ids, reason.label, for: form.field_id(:closure_reason_ids, reason.label), class: "overflow-ellipsis" %>
|
||||
<%= icon_tag "check", size: 18, class: "checked flex-item-justify-end" %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</dialog>
|
||||
</div>
|
||||
@@ -1,5 +1,5 @@
|
||||
<section id="closed-cards" class="cards cards--closed pad-block">
|
||||
<%= render "cards/index/closure_filter", filter: filter %>
|
||||
<h2 class="cards__heading">Recently closed</h2>
|
||||
|
||||
<% if page.used? %>
|
||||
<%= render partial: "cards/display/preview", collection: page.records, as: :card, cached: true %>
|
||||
|
||||
Reference in New Issue
Block a user