towerops/lib/towerops_web/live/org_live/new.html.heex
Graham McIntire 6bc802b22a
Add global header to new organization page
All authenticated pages now have consistent navigation header.
Login/registration pages keep simple layout as they're for
unauthenticated users.
2026-01-04 11:41:26 -06:00

17 lines
644 B
Text

<Layouts.authenticated flash={@flash} current_organization={nil}>
<.header>
{@page_title}
<:subtitle>Create a new organization to manage your sites and equipment</:subtitle>
</.header>
<div class="max-w-2xl">
<.form for={@form} id="organization-form" phx-change="validate" phx-submit="save">
<.input field={@form[:name]} type="text" label="Organization Name" required />
<div class="flex gap-3 mt-6">
<.button phx-disable-with="Creating..." variant="primary">Create Organization</.button>
<.button navigate={~p"/orgs"}>Cancel</.button>
</div>
</.form>
</div>
</Layouts.authenticated>