Member index: rename cycle toggle, add tooltip

This commit is contained in:
Moritz 2026-03-04 14:50:30 +01:00
parent 52228ca5d5
commit 60d3fa74fb
Signed by: moritz
GPG key ID: 1020A035E5DD0824

View file

@ -54,6 +54,14 @@
boolean_filters={@boolean_custom_field_filters} boolean_filters={@boolean_custom_field_filters}
member_count={length(@members)} member_count={length(@members)}
/> />
<.tooltip
content={
gettext(
"Sets whether the payment status filter and the membership fee status column use the last completed or the current payment cycle."
)
}
position="top"
>
<.button <.button
type="button" type="button"
variant="secondary" variant="secondary"
@ -62,25 +70,20 @@
data-testid="toggle-cycle-view" data-testid="toggle-cycle-view"
aria-label={ aria-label={
if(@show_current_cycle, if(@show_current_cycle,
do: gettext("Current Cycle Payment Status"), do: gettext("Current payment cycle"),
else: gettext("Last Cycle Payment Status") else: gettext("Last payment cycle")
)
}
title={
if(@show_current_cycle,
do: gettext("Current Cycle Payment Status"),
else: gettext("Last Cycle Payment Status")
) )
} }
> >
<.icon name="hero-arrow-path" class="h-5 w-5" /> <.icon name="hero-arrow-path" class="h-5 w-5" />
<span class="hidden sm:inline"> <span class="hidden sm:inline">
{if(@show_current_cycle, {if(@show_current_cycle,
do: gettext("Current Cycle Payment Status"), do: gettext("Current payment cycle"),
else: gettext("Last Cycle Payment Status") else: gettext("Last payment cycle")
)} )}
</span> </span>
</.button> </.button>
</.tooltip>
<.live_component <.live_component
module={MvWeb.Components.FieldVisibilityDropdownComponent} module={MvWeb.Components.FieldVisibilityDropdownComponent}
id="field-visibility-dropdown" id="field-visibility-dropdown"