-
Notifications
You must be signed in to change notification settings - Fork 0
/
lab_plants.xml
77 lines (77 loc) · 2.66 KB
/
lab_plants.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
<?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>Lab Form</h:title>
<model>
<instance>
<lab_plants id="lab_form" version="1">
<acc_no_scan/>
<acc_no_typed/>
<species/>
<location/>
<photo_repeat jr:template="">
<photo/>
</photo_repeat>
<plant_count/>
<jar_count/>
<jar_repeat jr:template="">
<jar_content/>
</jar_repeat>
<note/>
<meta>
<instanceID/>
</meta>
</lab_plants>
</instance>
<bind nodeset="/lab_plants/acc_no_scan" type="barcode"/>
<bind nodeset="/lab_plants/acc_no_typed" relevant=" /lab_plants/acc_no_scan = ''" type="string"/>
<bind nodeset="/lab_plants/species" type="string"/>
<bind nodeset="/lab_plants/location" type="string"/>
<bind nodeset="/lab_plants/photo_repeat/photo" type="binary"/>
<bind nodeset="/lab_plants/plant_count" type="int"/>
<bind nodeset="/lab_plants/jar_count" type="int"/>
<bind nodeset="/lab_plants/jar_repeat/jar_content" type="int"/>
<bind nodeset="/lab_plants/note" type="string"/>
<bind calculate="concat('uuid:', uuid())" nodeset="/lab_plants/meta/instanceID" readonly="true()" type="string"/>
</model>
</h:head>
<h:body>
<input ref="/lab_plants/acc_no_scan">
<label>Plant ID</label>
</input>
<input ref="/lab_plants/acc_no_typed">
<label>Plant ID</label>
</input>
<input ref="/lab_plants/species">
<label>Species</label>
</input>
<input ref="/lab_plants/location">
<label>Location</label>
</input>
<group ref="/lab_plants/photo_repeat">
<label>Pictures</label>
<repeat nodeset="/lab_plants/photo_repeat">
<upload mediatype="image/*" ref="/lab_plants/photo_repeat/photo">
<label>Picture</label>
</upload>
</repeat>
</group>
<input ref="/lab_plants/plant_count">
<label># de plantas</label>
</input>
<input ref="/lab_plants/jar_count">
<label># de frascos</label>
</input>
<group ref="/lab_plants/jar_repeat">
<label>frasco</label>
<repeat nodeset="/lab_plants/jar_repeat">
<input ref="/lab_plants/jar_repeat/jar_content">
<label># de plantas</label>
</input>
</repeat>
</group>
<input ref="/lab_plants/note">
<label>Note</label>
</input>
</h:body>
</h:html>