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}
|
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"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue