fixing page titles, fleshing out readme

This commit is contained in:
Adam Piontek 2021-03-25 20:31:32 -04:00
commit 2fe6f4c174
8 changed files with 86 additions and 6 deletions
lib/shift73k_web/live
shift_assign_live
shift_import_live
shift_live
shift_template_live
user

View file

@ -13,6 +13,7 @@ defmodule Shift73kWeb.ShiftAssignLive.Index do
def mount(_params, session, socket) do
socket
|> assign_defaults(session)
|> assign(:page_title, "Schedule Shifts")
|> assign(:custom_shift, @custom_shift)
|> assign(:show_template_btn_active, false)
|> assign(:show_template_details, false)

View file

@ -13,6 +13,7 @@ defmodule Shift73kWeb.ShiftImportLive.Index do
socket
|> assign_defaults(session)
|> assign(:page_title, "iCal Import")
|> assign(:url_valid, false)
|> assign(:url_validated, false)
|> assign(:tz_valid, true)

View file

@ -35,7 +35,7 @@ defmodule Shift73kWeb.ShiftLive.Index do
defp apply_action(socket, :index, _params) do
socket
|> assign(:page_title, "Listing Shifts")
|> assign(:page_title, "My Shifts")
|> assign(:shift, nil)
end

View file

@ -59,7 +59,7 @@ defmodule Shift73kWeb.ShiftTemplateLive.Index do
defp apply_action(socket, :index, _params) do
socket
|> assign(:page_title, "Listing Shift templates")
|> assign(:page_title, "My Shift Templates")
|> assign(:shift_template, nil)
end

View file

@ -8,6 +8,7 @@ defmodule Shift73kWeb.UserLive.Settings do
def mount(_params, session, socket) do
socket
|> assign_defaults(session)
|> assign(:page_title, "User Settings")
|> alert_email_verified?()
|> live_okreply()
end