This repository has been archived by the owner on Feb 12, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathElephant Death.xml
122 lines (121 loc) · 4.48 KB
/
Elephant Death.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa">
<h:head>
<h:title>Elephant Death Form</h:title>
<model>
<itext>
<translation lang="English">
<text id="ElephantPicture"><value>Take a picture of the elephant.</value></text>
<text id="SurveyorLocation"><value>Record your location.</value></text>
<text id="ElephantDeathReason"><value>What is the reason for the elephant's death?</value></text>
<text id="ElephantTusksRemoved"><value>Were the tusks removed from the elephant carcass?</value></text>
<text id="ElephantDeathDate"><value>When is the estimated date of death?</value></text>
<text id="ElephantAge"><value>What is the estimated age of the elephant?</value></text>
<text id="ElephantCollar"><value>Did the elephant wear a collar?</value></text>
<text id="FieldNotes"><value>Field notes.</value></text>
<text id="Poaching"><value>Poaching</value></text>
<text id="Starvation"><value>Starvation</value></text>
<text id="Drought"><value>Drought</value></text>
<text id="Entrapment"><value>Entrapment</value></text>
<text id="Other"><value>Other</value></text>
<text id="Yes"><value>Yes</value></text>
<text id="No"><value>No</value></text>
<text id="Unknown"><value>Unknown</value></text>
</translation>
</itext>
<instance>
<ElephantDeath id="ElephantDeath">
<DeviceId/>
<StartTime/>
<EndTime/>
<ElephantPicture/>
<SurveyorLocation/>
<ElephantDeathReason/>
<ElephantTusksRemoved/>
<ElephantDeathDate/>
<ElephantAge/>
<ElephantCollar/>
<FieldNotes/>
</ElephantDeath>
</instance>
<bind nodeset="/ElephantDeath/DeviceId" type="string" jr:preload="property" jr:preloadParams="deviceid"/>
<bind nodeset="/ElephantDeath/StartTime" type="dateTime" jr:preload="timestamp" jr:preloadParams="start"/>
<bind nodeset="/ElephantDeath/EndTime" type="dateTime" jr:preload="timestamp" jr:preloadParams="end"/>
<bind nodeset="/ElephantDeath/ElephantPicture" type="binary"/>
<bind nodeset="/ElephantDeath/SurveyorLocation" type="geopoint"/>
<bind nodeset="/ElephantDeath/ElephantDeathReason" type="select" />
<bind nodeset="/ElephantDeath/ElephantTusksRemoved" type="select1" relevant="selected(/ElephantDeath/ElephantDeathReason, 'Poaching')" />
<bind nodeset="/ElephantDeath/ElephantDeathDate" type="string" />
<bind nodeset="/ElephantDeath/ElephantAge" type="string" />
<bind nodeset="/ElephantDeath/ElephantCollar" type="select1" />
<bind nodeset="/ElephantDeath/FieldNotes" type="string" />
</model>
</h:head>
<h:body>
<upload ref="ElephantPicture" mediatype="image/*">
<label ref="jr:itext('ElephantPicture')"/>
</upload>
<input ref="SurveyorLocation">
<label ref="jr:itext('SurveyorLocation')"/>
</input>
<select ref="ElephantDeathReason">
<label ref="jr:itext('ElephantDeathReason')"/>
<item>
<label ref="jr:itext('Poaching')"/>
<value>Poaching</value>
</item>
<item>
<label ref="jr:itext('Starvation')"/>
<value>Starvation</value>
</item>
<item>
<label ref="jr:itext('Drought')"/>
<value>Drought</value>
</item>
<item>
<label ref="jr:itext('Entrapment')"/>
<hint ref="jr:itext('EntrapmentHint')"/>
<value>Entrapment</value>
</item>
<item>
<label ref="jr:itext('Other')"/>
<value>Other</value>
</item>
</select>
<select1 ref="ElephantTusksRemoved">
<label ref="jr:itext('ElephantTusksRemoved')"/>
<item>
<label ref="jr:itext('Yes')"/>
<value>Yes</value>
</item>
<item>
<label ref="jr:itext('No')"/>
<value>No</value>
</item>
</select1>
<input ref="ElephantDeathDate">
<label ref="jr:itext('ElephantDeathDate')"/>
</input>
<input ref="ElephantAge">
<label ref="jr:itext('ElephantAge')"/>
</input>
<select1 ref="ElephantCollar">
<label ref="jr:itext('ElephantCollar')"/>
<item>
<label ref="jr:itext('Yes')"/>
<value>Yes</value>
</item>
<item>
<label ref="jr:itext('No')"/>
<value>No</value>
</item>
<item>
<label ref="jr:itext('Unknown')"/>
<value>Unknown</value>
</item>
</select1>
<input ref="FieldNotes">
<label ref="jr:itext('FieldNotes')"/>
</input>
</h:body>
</h:html>