-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplant_form.xml
140 lines (140 loc) · 5.09 KB
/
plant_form.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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>Plant Form</h:title>
<model>
<itext>
<translation lang="es">
<text id="/plant_form/acc_no_typed:label">
<value>código</value>
</text>
<text id="/plant_form/photo_repeat:label">
<value>otra foto</value>
</text>
<text id="/plant_form/species:label">
<value>especie</value>
</text>
<text id="/plant_form/alive:label">
<value>viva</value>
</text>
<text id="/plant_form/alive/0:label">
<value>muerta</value>
</text>
<text id="/plant_form/alive/1:label">
<value>viva</value>
</text>
<text id="/plant_form/photo_repeat/photo:label">
<value>foto</value>
</text>
<text id="/plant_form/acc_no_scan:label">
<value>código</value>
</text>
<text id="/plant_form/note:label">
<value>notas</value>
</text>
<text id="/plant_form/location:label">
<value>ubicación</value>
</text>
</translation>
<translation default="true()" lang="English">
<text id="/plant_form/acc_no_typed:label">
<value>Plant ID</value>
</text>
<text id="/plant_form/photo_repeat:label">
<value>add a new picture</value>
</text>
<text id="/plant_form/species:label">
<value>Species</value>
</text>
<text id="/plant_form/alive:label">
<value>Alive</value>
</text>
<text id="/plant_form/alive/0:label">
<value>dead</value>
</text>
<text id="/plant_form/alive/1:label">
<value>alive</value>
</text>
<text id="/plant_form/photo_repeat/photo:label">
<value>Picture</value>
</text>
<text id="/plant_form/acc_no_scan:label">
<value>Plant ID</value>
</text>
<text id="/plant_form/note:label">
<value>Note</value>
</text>
<text id="/plant_form/location:label">
<value>Location</value>
</text>
</translation>
</itext>
<instance>
<plant_form id="plant_form_s" version="4">
<end/>
<username/>
<deviceid/>
<acc_no_scan/>
<acc_no_typed/>
<species/>
<location/>
<photo_repeat jr:template="">
<photo/>
</photo_repeat>
<alive/>
<note/>
<meta>
<instanceID/>
</meta>
</plant_form>
</instance>
<bind jr:preload="timestamp" jr:preloadParams="end" nodeset="/plant_form/end" type="dateTime"/>
<bind jr:preload="property" jr:preloadParams="username" nodeset="/plant_form/username" type="string"/>
<bind jr:preload="property" jr:preloadParams="deviceid" nodeset="/plant_form/deviceid" type="string"/>
<bind nodeset="/plant_form/acc_no_scan" type="barcode"/>
<bind nodeset="/plant_form/acc_no_typed" relevant=" /plant_form/acc_no_scan = ''" type="string"/>
<bind nodeset="/plant_form/species" type="string"/>
<bind nodeset="/plant_form/location" type="string"/>
<bind nodeset="/plant_form/photo_repeat/photo" type="binary"/>
<bind nodeset="/plant_form/alive" type="select1"/>
<bind nodeset="/plant_form/note" type="string"/>
<bind calculate="concat('uuid:', uuid())" nodeset="/plant_form/meta/instanceID" readonly="true()" type="string"/>
</model>
</h:head>
<h:body>
<input ref="/plant_form/acc_no_scan">
<label ref="jr:itext('/plant_form/acc_no_scan:label')"/>
</input>
<input ref="/plant_form/acc_no_typed">
<label ref="jr:itext('/plant_form/acc_no_typed:label')"/>
</input>
<input ref="/plant_form/species">
<label ref="jr:itext('/plant_form/species:label')"/>
</input>
<input ref="/plant_form/location">
<label ref="jr:itext('/plant_form/location:label')"/>
</input>
<group ref="/plant_form/photo_repeat">
<label ref="jr:itext('/plant_form/photo_repeat:label')"/>
<repeat nodeset="/plant_form/photo_repeat">
<upload mediatype="image/*" ref="/plant_form/photo_repeat/photo">
<label ref="jr:itext('/plant_form/photo_repeat/photo:label')"/>
</upload>
</repeat>
</group>
<select1 ref="/plant_form/alive">
<label ref="jr:itext('/plant_form/alive:label')"/>
<item>
<label ref="jr:itext('/plant_form/alive/1:label')"/>
<value>1</value>
</item>
<item>
<label ref="jr:itext('/plant_form/alive/0:label')"/>
<value>0</value>
</item>
</select1>
<input ref="/plant_form/note">
<label ref="jr:itext('/plant_form/note:label')"/>
</input>
</h:body>
</h:html>