UNPKG

medic-enketo-xslt

Version:

XSL stylesheets for the Enketo XForm transformation to be run client-side in a web browser

15 lines (11 loc) 5.74 kB
<form autocomplete="off" novalidate="novalidate" class="or clearfix pages" dir="ltr" id="HH"><!--This form was created by transforming a OpenRosa-flavored (X)Form using an XSL stylesheet created by Enketo LLC.--><section class="form-logo"> </section><h3 dir="auto" id="form-title">New Household</h3> <label class="question non-select "><span lang="" class="question-label active">Head of Household</span><span class="required">*</span><input type="text" name="/data/household_head" data-required="true()" data-type-xml="string"/><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label> <fieldset class="question simple-select "><fieldset><legend><span lang="" class="question-label active">Gender</span><span class="required">*</span></legend><div class="option-wrapper"><label class=""><input type="radio" name="/data/gender" data-name="/data/gender" value="female" data-required="true()" data-type-xml="select1"/><span lang="" class="option-label active">Female</span></label><label class=""><input type="radio" name="/data/gender" data-name="/data/gender" value="male" data-required="true()" data-type-xml="select1"/><span lang="" class="option-label active">Male</span></label></div></fieldset><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></fieldset> <label class="question non-select or-appearance-numbers "><span lang="" class="question-label active">Mobile Number</span><span class="required">*</span><input type="text" name="/data/mobile_number" data-required="true()" data-type-xml="string"/><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label> <label class="question non-select "><span lang="" class="question-label active">Age of Youngest Child</span><span class="required">*</span><input type="number" name="/data/age_youngest_child" data-required="true()" data-type-xml="int"/><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label> <label class="question non-select "><span lang="" class="question-label active">Number of Children Under 5 Years</span><span class="required">*</span><input type="number" name="/data/no_children_u5" data-required="true()" data-type-xml="int"/><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label> <label class="question non-select "><span lang="" class="question-label active">Number of Pregnant Women</span><span class="required">*</span><input type="number" name="/data/no_pregnant_women" data-required="true()" data-type-xml="int"/><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></label> <fieldset class="question simple-select "><fieldset><legend><span lang="" class="question-label active">Do you own an improved cook stove?</span><span class="required">*</span></legend><div class="option-wrapper"><label class=""><input type="radio" name="/data/improved_cook_stove" data-name="/data/improved_cook_stove" value="yes" data-required="true()" data-type-xml="select1"/><span lang="" class="option-label active">Yes</span></label><label class=""><input type="radio" name="/data/improved_cook_stove" data-name="/data/improved_cook_stove" value="no" data-required="true()" data-type-xml="select1"/><span lang="" class="option-label active">No</span></label></div></fieldset><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></fieldset> <fieldset class="question simple-select "><fieldset><legend><span lang="" class="question-label active">Do you own a solar light?</span><span class="required">*</span></legend><div class="option-wrapper"><label class=""><input type="radio" name="/data/solar_light" data-name="/data/solar_light" value="yes" data-required="true()" data-type-xml="select1"/><span lang="" class="option-label active">Yes</span></label><label class=""><input type="radio" name="/data/solar_light" data-name="/data/solar_light" value="no" data-required="true()" data-type-xml="select1"/><span lang="" class="option-label active">No</span></label></div></fieldset><span class="or-constraint-msg active" lang="" data-i18n="constraint.invalid">Value not allowed</span><span class="or-required-msg active" lang="" data-i18n="constraint.required">This field is required</span></fieldset> <label class="note non-select "><span lang="" class="question-label active">Once you save the household you can add any women that are pregnant or children that need treatment</span><input type="text" name="/data/note_registration" data-type-xml="string" readonly="readonly"/></label> <fieldset id="or-calculated-items" style="display:none;"><label class="calculation non-select "><input type="hidden" name="/data/meta/instanceID" data-calculate="concat('uuid:', uuid())" data-type-xml="string"/></label></fieldset></form>