style: fix tab in edit mode
This commit is contained in:
parent
cde6a68591
commit
615b4b866b
1 changed files with 24 additions and 6 deletions
|
|
@ -58,14 +58,31 @@ defmodule MvWeb.MemberLive.Form do
|
||||||
</.header>
|
</.header>
|
||||||
|
|
||||||
<div class="mt-6 space-y-6">
|
<div class="mt-6 space-y-6">
|
||||||
<%!-- Tab navigation: Payments tab not shown on new/edit (only on member show) --%>
|
<%!-- Tab navigation: same styling as member show; only Contact Data tab (no Membership Fees on edit) --%>
|
||||||
<div role="tablist" class="tabs tabs-bordered">
|
<div
|
||||||
<button type="button" role="tab" class="tab tab-active" aria-selected="true">
|
role="tablist"
|
||||||
<.icon name="hero-identification" class="size-4 mr-2" />
|
class="tabs tabs-bordered tabs-lg bg-base-200/60 rounded-box p-1 w-fit"
|
||||||
|
>
|
||||||
|
<button
|
||||||
|
id="member-tab-contact"
|
||||||
|
role="tab"
|
||||||
|
type="button"
|
||||||
|
tabindex="0"
|
||||||
|
aria-selected="true"
|
||||||
|
aria-controls="member-tabpanel-contact"
|
||||||
|
class="tab tab-active flex items-center gap-2"
|
||||||
|
>
|
||||||
|
<.icon name="hero-identification" class="size-4 shrink-0" />
|
||||||
{gettext("Contact Data")}
|
{gettext("Contact Data")}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<%!-- Contact Data Tab Content (same structure as member show) --%>
|
||||||
|
<div
|
||||||
|
id="member-tabpanel-contact"
|
||||||
|
role="tabpanel"
|
||||||
|
aria-labelledby="member-tab-contact"
|
||||||
|
>
|
||||||
<%!-- Personal Data and Custom Fields Row --%>
|
<%!-- Personal Data and Custom Fields Row --%>
|
||||||
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
<div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-6">
|
||||||
<%!-- Personal Data Section --%>
|
<%!-- Personal Data Section --%>
|
||||||
|
|
@ -281,6 +298,7 @@ defmodule MvWeb.MemberLive.Form do
|
||||||
</section>
|
</section>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</.form>
|
</.form>
|
||||||
</Layouts.app>
|
</Layouts.app>
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue