- Replace gray->cool-steel, blue/indigo->cerulean, red->sweet-salmon, yellow/amber->wheat - Dark sidebar: sidebar/footer use cool-steel-800 bg, text lightened for contrast - ~11,600 color replacements across ~99 files - Update tests for new color class names
47 lines
1.4 KiB
Text
47 lines
1.4 KiB
Text
<Layouts.authenticated
|
|
flash={@flash}
|
|
current_scope={@current_scope}
|
|
active_page="schedules"
|
|
unresolved_alert_count={assigns[:unresolved_alert_count] || 0}
|
|
>
|
|
<div class="flex items-center gap-3 mb-6">
|
|
<.link
|
|
navigate={~p"/schedules"}
|
|
class="text-cool-steel-400 hover:text-cool-steel-600 dark:hover:text-cool-steel-300"
|
|
>
|
|
<.icon name="hero-arrow-left" class="h-5 w-5" />
|
|
</.link>
|
|
<h1 class="text-xl font-bold text-cool-steel-900 dark:text-white">{@page_title}</h1>
|
|
</div>
|
|
|
|
<div class="max-w-2xl">
|
|
<.form for={@form} phx-change="validate" phx-submit="save" class="space-y-6">
|
|
<div>
|
|
<.input field={@form[:name]} type="text" label={t("Name")} required />
|
|
</div>
|
|
<div>
|
|
<.input
|
|
field={@form[:timezone]}
|
|
type="text"
|
|
label={t("Timezone")}
|
|
placeholder="America/Chicago"
|
|
required
|
|
/>
|
|
</div>
|
|
<div>
|
|
<.input field={@form[:description]} type="textarea" label={t("Description")} />
|
|
</div>
|
|
<div class="flex items-center gap-3">
|
|
<.button type="submit" phx-disable-with={t("Saving...")}>
|
|
{t("Save Schedule")}
|
|
</.button>
|
|
<.link
|
|
navigate={~p"/schedules"}
|
|
class="text-sm text-cool-steel-600 dark:text-cool-steel-400 hover:text-cool-steel-900 dark:hover:text-white"
|
|
>
|
|
{t("Cancel")}
|
|
</.link>
|
|
</div>
|
|
</.form>
|
|
</div>
|
|
</Layouts.authenticated>
|