|
<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>osm_upload_type_many_tags</h:title> |
|
<model> |
|
<instance> |
|
<data id="build_nh-test_1416094424"> |
|
<meta> |
|
<instanceID/> |
|
</meta> |
|
<photo/> |
|
<osm_road/> |
|
<osm_building/> |
|
<fav_color> |
|
red |
|
</fav_color> |
|
<form_completed/> |
|
</data> |
|
</instance> |
|
<itext> |
|
<translation lang="eng"> |
|
<text id="/data/photo:label"> |
|
<value>Take a picture of something.</value> |
|
</text> |
|
<text id="/data/photo:hint"> |
|
<value>We don't care what it is.</value> |
|
</text> |
|
<text id="/data/fav_color:label"> |
|
<value>What is your favorite color?</value> |
|
</text> |
|
<text id="/data/fav_color:hint"> |
|
<value>You must pick one of our choices.</value> |
|
</text> |
|
<text id="/data/osm_road:label"> |
|
<value>Road</value> |
|
</text> |
|
<text id="/data/osm_road:hint"> |
|
<value>Tag the road in front of the building.</value> |
|
</text> |
|
<text id="/data/osm_building:label"> |
|
<value>Building</value> |
|
</text> |
|
<text id="/data/osm_building:hint"> |
|
<value>Tag attributes about this building.</value> |
|
</text> |
|
<text id="/data/fav_color:option0"> |
|
<value>red</value> |
|
</text> |
|
<text id="/data/fav_color:option1"> |
|
<value>green</value> |
|
</text> |
|
<text id="/data/fav_color:option2"> |
|
<value>blue</value> |
|
</text> |
|
<text id="/data/fav_color:option3"> |
|
<value>The color of the sun.</value> |
|
</text> |
|
</translation> |
|
</itext> |
|
<bind nodeset="/data/meta/instanceID" type="string" readonly="true()" calculate="concat('uuid:', uuid())"/> |
|
<bind nodeset="/data/photo" type="binary"/> |
|
<bind nodeset="/data/osm_road" type="binary"/> |
|
<bind nodeset="/data/osm_building" type="binary"/> |
|
<bind nodeset="/data/fav_color" type="select1"/> |
|
<bind nodeset="/data/form_completed" type="dateTime" jr:preload="timestamp" jr:preloadParams="end"/> |
|
</model> |
|
</h:head> |
|
<h:body> |
|
<upload ref="/data/photo" mediatype="image/*"> |
|
<label ref="jr:itext('/data/photo:label')"/> |
|
<hint ref="jr:itext('/data/photo:hint')"/> |
|
</upload> |
|
<upload ref="/data/osm_road" mediatype="osm/*"> |
|
<label ref="jr:itext('/data/osm_road:label')"/> |
|
<hint ref="jr:itext('/data/osm_road:hint')"/> |
|
<tag>highway</tag> |
|
<tag>name</tag> |
|
<tag>maxspeed</tag> |
|
<tag>maxspeed:winter</tag> |
|
</upload> |
|
<upload ref="/data/osm_building" mediatype="osm/*"> |
|
<label ref="jr:itext('/data/osm_building:label')"/> |
|
<hint ref="jr:itext('/data/osm_building:hint')"/> |
|
<tag>name</tag> |
|
<tag>name:fr</tag> |
|
<tag>building</tag> |
|
<tag>addr:housenumber</tag> |
|
<tag>addr:street</tag> |
|
<tag>addr:city</tag> |
|
<tag>addr:postcode</tag> |
|
</upload> |
|
<select1 ref="/data/fav_color"> |
|
<label ref="jr:itext('/data/fav_color:label')"/> |
|
<hint ref="jr:itext('/data/fav_color:hint')"/> |
|
<item> |
|
<label ref="jr:itext('/data/fav_color:option0')"/> |
|
<value>red</value> |
|
</item> |
|
<item> |
|
<label ref="jr:itext('/data/fav_color:option1')"/> |
|
<value>green</value> |
|
</item> |
|
<item> |
|
<label ref="jr:itext('/data/fav_color:option2')"/> |
|
<value>blue</value> |
|
</item> |
|
<item> |
|
<label ref="jr:itext('/data/fav_color:option3')"/> |
|
<value>yellow</value> |
|
</item> |
|
</select1> |
|
</h:body> |
|
</h:html> |
Woot.