Last active
February 16, 2022 03:09
-
-
Save bostonou/30e78bc737430fa0f9a2ca9b200323e3 to your computer and use it in GitHub Desktop.
LOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LOS | |
Submitted* | |
application-verified -> Verified | |
documents-requested -> Waiting Docs | |
Waiting Docs | |
docs-received -> Verified | |
docs-overdue -> Email Notification Sent | |
Email Notification Sent | |
docs-received -> Verified | |
docs-overdue -> Email Notification Sent | |
application-expires -> Application Rejected | |
Verified | |
analyst-approves -> Analyst Approved | |
analyst-rejects -> Application Rejected | |
Analyst Approved | |
underwriter-approves -> Application Approved | |
underwriter-rejects -> Application Rejected | |
Application Approved | |
Application Rejected | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function submitted(model) { | |
return $("div", | |
{style: {color: "black"}}, | |
`The application has been submitted.`, | |
$('button', {style: {position: "relative", left: 50, top: 30}, | |
onClick: function(){ model.emit("application-verified") }}, | |
"Verify Application"), | |
$('button', {style: {position: "relative", left: 50, top: 30}, | |
onClick: function(){ model.emit("documents-requested") }}, | |
"Request Docs")); | |
} | |
function render(model){ | |
let current_state_name = model.active_states[0].name; | |
switch (current_state_name) { | |
case "Submitted": | |
return submitted(model); | |
default: | |
return $("h1", | |
{style: {color: "darkBlue"}}, | |
`The current state is: ${current_state_name}`); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment