Skip to content

Instantly share code, notes, and snippets.

@edgerunner
Last active August 1, 2023 06:36
Show Gist options
  • Save edgerunner/42ad9f56fffa8f6097cd4201a5d17963 to your computer and use it in GitHub Desktop.
Save edgerunner/42ad9f56fffa8f6097cd4201a5d17963 to your computer and use it in GitHub Desktop.
Confirm calving inline form
Confirm calving inline form
Invisible
confirm calving -> Visible
Visible&
focus elsewhere -> Invisible
Calving time selector
modify calving time -> Modified
Default
Modified
Calf list
add a calf -> Multiple
Single
Multiple
remove calf 2 -> Single
remove calf n -> Multiple
Difficulty selector
easy -> Easy
difficult -> Difficult
assisted -> Assisted
c-section -> C-Section
Easy
Difficult
Assisted
C-Section
Condition list
add a condition -> Some
None
Some
remove last condition -> None
remove condition -> Some
function render(model){
let current_state_name = model.active_states.map(s => s.name);
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