Skip to content

Instantly share code, notes, and snippets.

@guidobouman
Last active February 3, 2020 13:45
Show Gist options
  • Save guidobouman/f9221b5b4ebd64c813b74dba13426e8b to your computer and use it in GitHub Desktop.
Save guidobouman/f9221b5b4ebd64c813b74dba13426e8b to your computer and use it in GitHub Desktop.
Registratie flow
Registratie flow
Registratie formulier
submit -> Extra velden
Extra velden
submit -> Idin validatie?
Idin validatie
submit -> Kies bonus
Kies bonus
submit -> Geld storten?
Geld storten
submit -> Registratie voltooid
Registratie voltooid
Interne checks
Idin validatie?
yes? -> Idin validatie
no? -> Kies bonus
Geld storten?
yes? -> Geld storten
no? -> Registratie voltooid
function render(model){
const currentStateName = model.active_states[0].name;
const isPending = currentStateName.indexOf('?') > -1;
const msg = isPending
? 'Wachten op check...'
: `${currentStateName}`;
return $("h1", {style: {color: "darkBlue", textAlign: "center"}}, msg);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment