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.
This commit is contained in:
parent
6fbdf9a9b8
commit
6bc802b22a
1 changed files with 15 additions and 13 deletions
|
|
@ -1,15 +1,17 @@
|
|||
<.header>
|
||||
{@page_title}
|
||||
<:subtitle>Create a new organization to manage your sites and equipment</:subtitle>
|
||||
</.header>
|
||||
<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="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>
|
||||
<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>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue