kit

offline

Built revision v17.10.0

Phoenix
Topics

Human support

Bring a missing role, layout, or state, or a rendering against the standard, to the session working on kit. Name the package and the entry.

offline

Connection lost

Your entered email is still here but has not been saved.

aisha@oakmereprimary.org

Reconnect before saving.

· Main Hall

This meeting will be reinstated when you are back online.

Available when you are back online.

Not saved yet

Your followed changes will be marked as read when you are back online.

On Off Off Available when you are back online.
Source
<Kit.Phoenix.Layouts.Form.form id="state-offline-form" state_notice_rest={%{id: "offline-standing"}} subject_state={Kit.Phoenix.State.offline(:attention, "Connection lost", "Your entered email is still here but has not been saved.")}>
  <:form_groups>
    <Kit.Phoenix.Roles.FormGroup.form_group id="offline-email-form-group" kind={Kit.Phoenix.Roles.FormGroup.Kind.email()} control_rest={%{"id" => "offline-email", "value" => "aisha@oakmereprimary.org"}}>
      <:printed_value>aisha@oakmereprimary.org</:printed_value>
      <:label rest={%{"for" => "offline-email"}}>Oakmere Primary School billing email</:label>
    </Kit.Phoenix.Roles.FormGroup.form_group>
  </:form_groups>
  <:submit_return action="primary-action" action_state={Kit.Phoenix.ActionState.inert("offline-save-email", "Reconnect before saving.")} control_rest={%{"aria-describedby" => "offline-standing"}}>Save email</:submit_return>
</Kit.Phoenix.Layouts.Form.form>
<Kit.Phoenix.Roles.Row.row standing={Kit.Phoenix.Roles.Row.Standing.unsaved("This meeting will be reinstated when you are back online.")}>
  <:subject href="#state-offline">Choir rehearsal</:subject>
  <:stamp><Kit.Phoenix.Roles.Stamp.stamp state="settled">Cancelled</Kit.Phoenix.Roles.Stamp.stamp></:stamp>
  <:facts><Kit.Phoenix.Roles.Time.time value={Kit.Phoenix.Time.moment_with_weekday(reader(), ~U[2025-04-22 18:00:00Z])} /> ·&nbsp;Main Hall</:facts>
  <:actions>
    <Kit.Phoenix.Roles.SecondaryAction.secondary_action saves_behind="This meeting will be reinstated when you are back online.">Reinstate</Kit.Phoenix.Roles.SecondaryAction.secondary_action>
  </:actions>
  <:actions action="secondary-action" action_state={Kit.Phoenix.ActionState.inert("offline-email-hirer", "Available when you are back online.")}>Email the hirer</:actions>
</Kit.Phoenix.Roles.Row.row>
<Kit.Phoenix.Layouts.Form.form id="state-offline-form-2" subject_state={Kit.Phoenix.State.none()}>
  <:notices>
    <Kit.Phoenix.Roles.Notice.notice state={Kit.Phoenix.Roles.Notice.State.settled()}>
      <:standing>Not saved yet</:standing>
      <:sentence>Your followed changes will be marked as read when you are back online.</:sentence>
    </Kit.Phoenix.Roles.Notice.notice>
  </:notices>
</Kit.Phoenix.Layouts.Form.form>
<Kit.Phoenix.Layouts.Form.form id="state-offline-form-3" subject_state={Kit.Phoenix.State.none()}>
  <:form_groups>
    <Kit.Phoenix.Roles.FormGroup.form_group id="offline-hirer-texts">
      <:label>Text the hirer before each booking</:label>
      <:control :let={binding}>
        <Kit.Phoenix.Roles.Switch.switch binding={binding} name="hirer_texts" checked={false} disabled on_words="On" off_words="Off" reason="Available when you are back online." />
      </:control>
    </Kit.Phoenix.Roles.FormGroup.form_group>
  </:form_groups>
</Kit.Phoenix.Layouts.Form.form>