Last active
January 5, 2021 19:57
-
-
Save natepappenhagen/174c77d26c4b12b8d15e937cbd0f708b to your computer and use it in GitHub Desktop.
BOP Apps & Forms
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
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 |
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 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