Skip to content

Instantly share code, notes, and snippets.

@natepappenhagen
Last active January 5, 2021 19:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save natepappenhagen/174c77d26c4b12b8d15e937cbd0f708b to your computer and use it in GitHub Desktop.
Save natepappenhagen/174c77d26c4b12b8d15e937cbd0f708b to your computer and use it in GitHub Desktop.
BOP Apps & Forms
BOP Apps & Forms
Property C&L*
Disabled
hasLocations - true -> Blanket Coverage
hasLocations - false -> Disabled
Blanket Coverage
noBlanket* -> OPTION 1 DEFAULT - No Blanket - Seperate BCL & BPP For Each Location
allLocationsAllBuildings -> OPTION 2 - All Locations & Buildings - BCL
eachLocationIncludesBuildings -> OPTION 3 - Each Location Includes Child Buildings - BCL
allLocationsAllBuildingsIncludesBPP -> OPTION 4 - All Locations & Buildings - BCL & BPP
OPTION 1 DEFAULT - No Blanket - Seperate BCL & BPP For Each Location
# Required Fields: Deductible Propety
#
# Optional Fields: Deductibles-Wind-Hail, CL BCL, CL BPP, Custom Additional Coverage
save - have more locations -> OPTION 1 DEFAULT - No Blanket - Seperate BCL & BPP For Each Location
save - have no more locations -> Has Required Fields Satisfied?
OPTION 2 - All Locations & Buildings - BCL
# Required Fields: Deductible Propety
#
# Optional Fields: Deductibles-Wind-Hail, CL BCL, Custom Additional Coverage
save -> Has Required Fields Satisfied?
OPTION 3 - Each Location Includes Child Buildings - BCL
# Required Fields: Deductible Propety
#
# Optional Fields: Deductibles-Wind-Hail, CL BCL, Custom Additional Coverage
save - have no more locations -> Has Required Fields Satisfied?
save - have more locations -> OPTION 3 - Each Location Includes Child Buildings - BCL
OPTION 4 - All Locations & Buildings - BCL & BPP
# Required Fields: Deductible Propety, CL BPP
#
# Optional Fields: Deductibles-Wind-Hail, CL BCL, Custom Additional Coverage
save -> Has Required Fields Satisfied?
Has Required Fields Satisfied?
yes -> Saved
no -> Error State
Error State
Fix Required Fields -> Saved
Saved
function render(model){
function addImage() {
if (model.active_states[0].image_url) {
return $("img",
{src: model.active_states[0].image_url, style: {height: "70%", margin: "0 auto"}})
} else {
return "No image available."
}
}
return (
<div style={{textAlign: "center"}}>
<h1>{model.active_states[0].name}</h1>
{addImage()}
</div>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment