PainWeb.BookLive (pain v0.1.0)

Properties

  • id :string, required: true - Both the DOM ID and the ID to uniquely identify a LiveView. An :id is automatically generated when rendering root LiveViews but it is a required option when rendering a child LiveView.

  • container :tuple - An optional tuple for the HTML tag and DOM attributes to be used for the LiveView container. For example: {:li, style: "color: blue;"}. By default it uses the module definition container.

  • session :map - A map of binary keys with extra session data to be serialized and sent to the client. All session data currently in the connection is automatically available in LiveViews. You can use this option to provide extra data. Remember all session data is serialized and sent to the client, so you should always keep the data in the session to a minimum. For example, instead of storing a User struct, you should store the "user_id" and load the User when the LiveView mounts.

  • sticky :boolean - An optional flag to maintain the LiveView across live redirects, even if it is nested within another LiveView. If you are rendering the sticky view within your live layout, make sure that the sticky view itself does not use the same layout. You can do so by returning {:ok, socket, layout: false} from mount.

Summary

Functions

Link to this function

all_employees()

Link to this function

body_areas(chosen)

Link to this function

bookable_any(calendars, services, employed, decide)

Link to this function

bookable_as_gender(calendars, services, employed, gender, decide)

Link to this function

bookable_by_gender(calendars, services, employed)

PainWeb.BookLive.bookable_by_gender(cals, %{ 1 => "90Min Reflexology with Chinese Medicine", 2 => "90min Massage", 3 => "Cupping", 4 => "Wet Cupping" }, %{ 1 => "Bin Wang"})

Link to this function

bookable_employees_by_service(calendars, services)

PainWeb.BookLive.bookable_employees_by_service(cals, %{ 1 => "90Min Reflexology with Chinese Medicine", 2 => "90min Massage", 3 => "Cupping", 4 => "Wet Cupping" })

Link to this function

chosen_services(services)

Link to this function

classed_services()

Link to this function

employee_bookable?(calendars, employee, services, employed)

Link to this function

employee_can_do?(calendars, employee, service_key)

Link to this function

employee_keys()

Link to this function

explain_services(assigns)

Link to this function

handle_event(binary, params, socket)

Callback implementation for Phoenix.LiveView.handle_event/3.

Link to this function

handle_info(arg, socket)

Callback implementation for Phoenix.LiveView.handle_info/2.

Link to this function

mount(params, session, socket)

Callback implementation for Phoenix.LiveView.mount/3.

Link to this function

needing_choice(limbs)

Link to this function

render(assigns)

Callback implementation for Phoenix.LiveView.render/1.

Link to this function

schedule_calendars(schedule, assigns)

Link to this function

scheduled_block(schedule)

Link to this function

service_keys(services)

Link to this function

sum_addons(addons, all_addons)

Link to this function

sum_services(chosen_services)