stepper.anubis 736 Bytes
/*
 * Created by PyramIDE.
 * User: フランスのトトロ aka (David RENÉ) 
 * Date: 04/04/2020
 * Time: 01:23
 * © David RENÉ
 */

transmit xlib/web/types/making_a_web_site.anubis
transmit session.anubis

public type Step_Status:
  initial,
  valid,
  no_valid
.

public type Step_Session:
  step_session(
    Int     current_step,
    Session session
  )
.

public type Step:
  step(
    String      name,                     //step name
    Int         index,                    //step number
    (Step_Session stp_session) -> Step_Session          process,
    (Step_Session stp_session) -> HTML  view
  )
.


public type Stepper:
  stepper(
    String        name,
    List(Step)    steps,
    Step_Session  session
  )
.