google-code-export / sandy-disaster-recovery

Automatically exported from code.google.com/p/sandy-disaster-recovery
2 stars 2 forks source link

Infobox Contents #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Continuation from Issue 19.

When constructing the Infobox contents, include these variables:

$isOlderThan60 = "Older than 60" if true; else, blank
$isDisabled = "Disabled." if true; else, blank
$isSpecialNeeds: "Has Special Needs." if special needs field is non-null
$priority: "Priority: [1-5]."
$isFirstResponder: "First Responder." if true; else, blank.
$carpetRemoval: "Carpet Removal." if true; else, blank.
$hardwoodFloorRemoval: "Hardwood Floor Removal." if grue; else, blank.
$needsDrywallRemoval: "Drywall Removal." if true; else, blank.
$heavyItemRemoval: "Remove Heavy Items." if true; else, blank.
$applianceRemoval: "Remove Appliances.
$isStandingWater: "Standing Water." if true; else, blank.
$isNeedsPump: "Needs Pump." if true; else, blank.
$moldRemediation: "Mold Remediation." if true; else, blank.
$heightOfFlood: "Flooded [5] feet high." if not blank.
$floorsAffected: [Value of dropdown]
$numTotalTreesDown: "[3]"
$numBigTreesDown: "[1]"
  $treesStatement: "[3] downed trees[if($numBigTreesDown>0) {' , including [1] tree with diameter over 18 inches.'}]
$isRoofDamage: "Roof Damage." if true; else, blank.
$tarpsNeeded: "[3] tarp(s) needed." if non-null; else, blank.
$isOnlyDebrisRemoval: "This work order request is only for debris removal." if 
true; else, blank.
$goodsServicesString: "[This person is running low on medication, fuel, and 
needs blankets.]"
$isHomeHabitable "Home habitable." if true; else, "Home may not be habitable."
$isElectricityOn "Power is on." if true; else, "Power is out."
$isDownedWires "Downed wires." if true; else, blank.
$hazardsString "[There are several potholes in the front yard. Don't twist your 
ankle!]"
[Note: basically, this is a summary of everything in the DB. If I missed 
something, add it. If I added something extra, delete it]

$workDetails: A combination of all of the variables above.

$dateRequested: "[11/5/2012]"
$daysAgo = Today()-$dateRequested
$doNotWorkBefore: "Do Not Work Before [11/29/2012]." if date exists; else, 
blank.

The Infobox should contain (in pseudo-html/code):
<strong>Case number: $caseNumber</strong>

<strong>Name:</strong> $residentName<br />
<strong>Address:</strong> $fullAddressZip<br />
<strong>Phone:</strong> $phoneNumber1 $phoneNumber2<br />
<strong>Work Requested:</strong> $workDetails<br />
<strong>Status:</strong> [Status Drop-down]<br />
<em>Submitted <strong>$daysAgo</strong> days ago by $submittingOrg. Claimed by: 
$claimingOrg</em>
[Printer Friendly] [Edit] [Claim]

FORMAT:
<Placemark><name><![CDATA[$workOrderNumber]]></name><description><![CDATA[$redac
tedAddress, $city, $state $zip<br /><strong>$workOrderNumber: 
$assignedOrg&ndash;$completionStatus<br />$workRequested<br />$workDetails<br 
/>Date Requested: $dateRequested ($daysAgo days ago). 
$doNotWorkBefore]]></description><styleUrl>#$styleName</styleUrl><Point><coordin
ates>$latitude, $longitude</coordinates></Point></Placemark>

Add $isHomeTreeDamaged to $workDetails:
"Home damaged by tree." if true; else, blank.

Original issue reported on code.google.com by v...@aarontitus.net on 9 Nov 2012 at 10:11

GoogleCodeExporter commented 9 years ago
Oops... Ignore the KML under "FORMAT:"

Original comment by v...@aarontitus.net on 9 Nov 2012 at 10:12

GoogleCodeExporter commented 9 years ago

Original comment by v...@aarontitus.net on 9 Nov 2012 at 10:13

GoogleCodeExporter commented 9 years ago
This part is not critical, but high:
Add "Unclaim" and "Request" buttons to the Infobox.
If work order is not claimed, the button should say, "Claim".
Else if work order is claimed by the organization logged in, the button should 
say, "Unclaim" Clicking this button will un-assign the work order.
Else if work order is claimed by another organization, the button should say, 
"Request". Clicking this button will send an email request to the organization 
Point of Contact and the administrator.  Note: Issue 21 will need to be 
completed before this functionality is  possible.

Original comment by v...@aarontitus.net on 15 Nov 2012 at 2:33

GoogleCodeExporter commented 9 years ago
I see that you added a "Release" button... awesome.  Would you mind calling it 
"Unclaim," just so that it's clear? I've already had a question about what the 
"Release" button does.

Original comment by v...@aarontitus.net on 20 Nov 2012 at 1:14

GoogleCodeExporter commented 9 years ago
We have yet to build the "Request" feature, but that is probably better suited 
for another ticket.

Original comment by v...@aarontitus.net on 14 Dec 2012 at 9:04