Member index: rename cycle toggle, add tooltip
This commit is contained in:
parent
52228ca5d5
commit
60d3fa74fb
1 changed files with 27 additions and 24 deletions
|
|
@ -54,6 +54,14 @@
|
|||
boolean_filters={@boolean_custom_field_filters}
|
||||
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
|
||||
type="button"
|
||||
variant="secondary"
|
||||
|
|
@ -62,25 +70,20 @@
|
|||
data-testid="toggle-cycle-view"
|
||||
aria-label={
|
||||
if(@show_current_cycle,
|
||||
do: gettext("Current Cycle Payment Status"),
|
||||
else: gettext("Last Cycle Payment Status")
|
||||
)
|
||||
}
|
||||
title={
|
||||
if(@show_current_cycle,
|
||||
do: gettext("Current Cycle Payment Status"),
|
||||
else: gettext("Last Cycle Payment Status")
|
||||
do: gettext("Current payment cycle"),
|
||||
else: gettext("Last payment cycle")
|
||||
)
|
||||
}
|
||||
>
|
||||
<.icon name="hero-arrow-path" class="h-5 w-5" />
|
||||
<span class="hidden sm:inline">
|
||||
{if(@show_current_cycle,
|
||||
do: gettext("Current Cycle Payment Status"),
|
||||
else: gettext("Last Cycle Payment Status")
|
||||
do: gettext("Current payment cycle"),
|
||||
else: gettext("Last payment cycle")
|
||||
)}
|
||||
</span>
|
||||
</.button>
|
||||
</.tooltip>
|
||||
<.live_component
|
||||
module={MvWeb.Components.FieldVisibilityDropdownComponent}
|
||||
id="field-visibility-dropdown"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue