style: consistent save buttons and active tab
This commit is contained in:
parent
82962a2f2a
commit
ba08434604
15 changed files with 486 additions and 438 deletions
|
|
@ -63,6 +63,7 @@ defmodule MvWeb.MemberLive.Form do
|
|||
<div class="mt-6 space-y-6">
|
||||
<%!-- Tab navigation: same styling as member show; only Contact Data tab (no Membership Fees on edit) --%>
|
||||
<div
|
||||
id="member-tablist"
|
||||
role="tablist"
|
||||
class="tabs tabs-bordered tabs-lg bg-base-200/60 rounded-box p-1 w-fit"
|
||||
>
|
||||
|
|
@ -259,13 +260,17 @@ defmodule MvWeb.MemberLive.Form do
|
|||
</.form_section>
|
||||
</div>
|
||||
|
||||
<%!-- Bottom Action Buttons --%>
|
||||
<div class="flex justify-end gap-4 mt-6">
|
||||
<.button navigate={return_path(@return_to, @member)} variant="neutral" type="button">
|
||||
<%!-- Buttons: below all form fields, Cancel left (secondary), Speichern right (primary) --%>
|
||||
<div class="mt-6 flex items-center justify-end gap-4">
|
||||
<.link navigate={return_path(@return_to, @member)} class="btn btn-secondary">
|
||||
{gettext("Cancel")}
|
||||
</.button>
|
||||
<.button phx-disable-with={gettext("Saving...")} variant="primary" type="submit">
|
||||
{gettext("Save Member")}
|
||||
</.link>
|
||||
<.button
|
||||
type="submit"
|
||||
phx-disable-with={gettext("Saving...")}
|
||||
class="btn btn-primary"
|
||||
>
|
||||
{gettext("Save member")}
|
||||
</.button>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue