fix: pass timezone attribute to all layout components
This commit is contained in:
parent
9d667ac162
commit
16bfd7667d
17 changed files with 27 additions and 7 deletions
|
|
@ -1,4 +1,4 @@
|
|||
<Layouts.admin flash={@flash}>
|
||||
<Layouts.admin flash={@flash} timezone={@timezone}>
|
||||
<div class="space-y-6">
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold text-zinc-900">Admin Dashboard</h1>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<Layouts.admin flash={@flash}>
|
||||
<Layouts.admin flash={@flash} timezone={@timezone}>
|
||||
<div class="space-y-6">
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold text-zinc-900">All Organizations</h1>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<Layouts.admin flash={@flash}>
|
||||
<Layouts.admin flash={@flash} timezone={@timezone}>
|
||||
<div class="space-y-6">
|
||||
<div>
|
||||
<h1 class="text-2xl font-bold text-zinc-900">All Users</h1>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
<Layouts.app flash={@flash}>
|
||||
<Layouts.app flash={@flash} timezone={@timezone}>
|
||||
<div class="max-w-2xl mx-auto">
|
||||
<div class="mb-6">
|
||||
<.link
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="agents"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
{@page_title}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="agents"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
{@page_title}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="alerts"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
Alerts
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="dashboard"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
Dashboard
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="devices"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
{@page_title}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="devices"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<div class="mb-6">
|
||||
<!-- Breadcrumbs -->
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="devices"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<div class="mb-6">
|
||||
<!-- Header with back button -->
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ defmodule ToweropsWeb.MobileQRLive do
|
|||
@impl true
|
||||
def render(assigns) do
|
||||
~H"""
|
||||
<Layouts.app flash={@flash}>
|
||||
<Layouts.app flash={@flash} timezone={@timezone}>
|
||||
<div class="mx-auto max-w-4xl">
|
||||
<.header>
|
||||
Mobile App Login
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
<Layouts.authenticated flash={@flash} current_scope={@current_scope} current_organization={nil}>
|
||||
<Layouts.authenticated
|
||||
flash={@flash}
|
||||
current_scope={@current_scope}
|
||||
current_organization={nil}
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
{@page_title}
|
||||
<:actions>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,9 @@
|
|||
<Layouts.authenticated flash={@flash} current_scope={@current_scope} current_organization={nil}>
|
||||
<Layouts.authenticated
|
||||
flash={@flash}
|
||||
current_scope={@current_scope}
|
||||
current_organization={nil}
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
{@page_title}
|
||||
<:subtitle>Create a new organization to manage your sites and devices</:subtitle>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="sites"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
{@page_title}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
current_scope={@current_scope}
|
||||
current_organization={@current_organization}
|
||||
active_page="sites"
|
||||
timezone={@timezone}
|
||||
>
|
||||
<.header>
|
||||
{@page_title}
|
||||
|
|
|
|||
|
|
@ -260,6 +260,7 @@ defmodule ToweropsWeb.UserSettingsLive do
|
|||
flash={@flash}
|
||||
current_scope={@current_scope}
|
||||
current_organization={@default_organization}
|
||||
timezone={@timezone}
|
||||
>
|
||||
<div class="border-b border-gray-200 pb-5 dark:border-white/5">
|
||||
<h1 class="text-3xl font-semibold tracking-tight text-gray-900 dark:text-white">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue