Membership Fee 6 - UI Components & LiveViews closes #280 #304
1 changed files with 3 additions and 5 deletions
|
|
@ -122,7 +122,7 @@ defmodule MvWeb.MemberLive.Show.MembershipFeesComponent do
|
|||
</:col>
|
||||
|
||||
<:action :let={cycle}>
|
||||
<div class="flex gap-1 flex-wrap">
|
||||
<div class="flex gap-1">
|
||||
<button
|
||||
:if={cycle.status != :paid}
|
||||
type="button"
|
||||
|
|
@ -137,15 +137,13 @@ defmodule MvWeb.MemberLive.Show.MembershipFeesComponent do
|
|||
{gettext("Paid")}
|
||||
</button>
|
||||
<button
|
||||
:if={cycle.status != :suspended}
|
||||
type="button"
|
||||
phx-click="mark_cycle_status"
|
||||
phx-value-cycle_id={cycle.id}
|
||||
phx-value-status="suspended"
|
||||
phx-target={@myself}
|
||||
class={[
|
||||
"btn btn-sm",
|
||||
if(cycle.status == :suspended, do: "btn-warning", else: "btn-outline btn-warning")
|
||||
]}
|
||||
class="btn btn-sm btn-outline btn-warning"
|
||||
title={gettext("Mark as suspended")}
|
||||
>
|
||||
<.icon name="hero-pause-circle" class="size-4" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue