Skip to content

Instantly share code, notes, and snippets.

@MartijnR
Created February 12, 2020 21:41
Show Gist options
  • Save MartijnR/68759b00c168196136db6ab60e08094d to your computer and use it in GitHub Desktop.
Save MartijnR/68759b00c168196136db6ab60e08094d to your computer and use it in GitHub Desktop.
<?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:odk="http://www.opendatakit.org/xforms"
xmlns:orx="http://openrosa.org/xforms"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>grid-print-issue</h:title>
<model>
<instance>
<grid-print-issue id="grid-print-issue">
<grp>
<one/>
<two/>
<three/>
<five/>
<six/>
</grp>
<grp2>
<seven/>
<eight/>
</grp2>
<meta>
<instanceID/>
</meta>
</grid-print-issue>
</instance>
<bind nodeset="/grid-print-issue/grp/one" required="true()" type="string"/>
<bind nodeset="/grid-print-issue/grp/two" required="true()" type="int"/>
<bind nodeset="/grid-print-issue/grp/three" required="true()" type="decimal"/>
<bind nodeset="/grid-print-issue/grp/five" type="select1"/>
<bind nodeset="/grid-print-issue/grp/six" type="string"/>
<bind jr:preload="uid" nodeset="/grid-print-issue/meta/instanceID" readonly="true()" type="string"/>
</model>
</h:head>
<h:body class="theme-grid">
<group appearance="w5" ref="/grid-print-issue/grp">
<label>One simple row with 4 equal-sized questions cells (default group width = w4)</label>
<input appearance="w1" ref="/grid-print-issue/grp/one">
<label>Enter some text</label>
<hint>This question should be 1 column wide so it gets appearance: w1</hint>
</input>
<input appearance="w1" ref="/grid-print-issue/grp/two">
<label>Enter a number</label>
<hint>This question should be 1 column wide so it gets appearance: w1</hint>
</input>
<input appearance="w2" ref="/grid-print-issue/grp/three">
<label>Enter a decimal number</label>
<hint>This question should be 1 column wide so it gets appearance: w1</hint>
</input>
<select1 appearance="w1" ref="/grid-print-issue/grp/five">
<label>Enter</label>
<item>
<label>option a</label>
<value>a</value>
</item>
<item>
<label>option b</label>
<value>b</value>
</item>
<item>
<label>option c</label>
<value>c</value>
</item>
<item>
<label>option d</label>
<value>d</value>
</item>
</select1>
<input appearance="w1" ref="/grid-print-issue/grp/six">
<label>Enter</label>
</input>
</group>
<group appearance="w5" ref="/grid-print-issue/grp2">
<label>Another group</label>
<input appearance="w3 multiline" ref="/grid-print-issue/grp2/seven">
<label>Entertext </label>
<hint>This question should be 1 column wide so it gets appearance: w3</hint>
</input>
<input appearance="w1" ref="/grid-print-issue/grp2/eight">
<label>Enter</label>
</input>
</group>
</h:body>
</h:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment