<?xml version="1.0" encoding="utf-8"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:enk="http://enketo.org/xforms" xmlns:esri="http://esri.com/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>sample_form</h:title>
    <model>
      <instance>
        <Sample_form id="Sample_form" version="2018111401">
          <formhub>
            <uuid/>
          </formhub>
          <start000000/>
          <end00000000/>
          <phonenumber/>
          <username/>
          <email/>
          <timestarted/>
          <staff_survey/>
          <e4e_staff>
            <staff01/>
          </e4e_staff>
          <staff_info>
            <staff_info01>
              <staff_name/>
              <state/>
              <age/>
              <hobbies/>
            </staff_info01>
            <work_info>
              <resumption/>
              <department/>
              <department_other/>
              <work_station/>
            </work_info>
            <onboarding>
              <onboarding01/>
              <onboarding02/>
              <onboarding02_other/>
            </onboarding>
            <parent44/>
          </staff_info>
          <end_staff/>
          <end_not_staff/>
          <meta>
            <instanceID/>
            <instanceName/>
          </meta>
        </Sample_form>
      </instance>
      <bind jr:preload="timestamp" jr:preloadParams="start" nodeset="/Sample_form/start000000" type="dateTime"/>
      <bind jr:preload="timestamp" jr:preloadParams="end" nodeset="/Sample_form/end00000000" type="dateTime"/>
      <bind jr:preload="property" jr:preloadParams="phonenumber" nodeset="/Sample_form/phonenumber" type="string"/>
      <bind jr:preload="property" jr:preloadParams="username" nodeset="/Sample_form/username" type="string"/>
      <bind jr:preload="property" jr:preloadParams="email" nodeset="/Sample_form/email" type="string"/>
      <bind calculate="format-date-time(now(),'%H:%M')" nodeset="/Sample_form/timestarted" type="string"/>
      <bind nodeset="/Sample_form/staff_survey" readonly="true()" type="string"/>
      <bind nodeset="/Sample_form/e4e_staff/staff01" required="true()" type="select1"/>
      <bind nodeset="/Sample_form/staff_info" relevant=" /Sample_form/e4e_staff/staff01  = 'yes'"/>
      <bind nodeset="/Sample_form/staff_info/staff_info01/staff_name" required="true()" type="string"/>
      <bind nodeset="/Sample_form/staff_info/staff_info01/state" required="true()" type="select1"/>
      <bind nodeset="/Sample_form/staff_info/staff_info01/age" required="true()" type="int"/>
      <bind nodeset="/Sample_form/staff_info/staff_info01/hobbies" required="true()" type="string"/>
      <bind constraint=".&lt;=date(today())" jr:constraintMsg="Date should not be later than today" nodeset="/Sample_form/staff_info/work_info/resumption" required="true()" type="date"/>
      <bind nodeset="/Sample_form/staff_info/work_info/department" required="true()" type="select1"/>
      <bind nodeset="/Sample_form/staff_info/work_info/department_other" relevant="selected(../department, 'other')" type="string"/>
      <bind nodeset="/Sample_form/staff_info/work_info/work_station" required="true()" type="binary"/>
      <bind nodeset="/Sample_form/staff_info/onboarding/onboarding01" required="true()" type="select1"/>
      <bind nodeset="/Sample_form/staff_info/onboarding/onboarding02" required="true()" type="select"/>
      <bind nodeset="/Sample_form/staff_info/onboarding/onboarding02_other" relevant="selected(../onboarding02, 'other')" type="string"/>
      <bind nodeset="/Sample_form/staff_info/parent44" required="true()" type="geopoint"/>
      <bind nodeset="/Sample_form/end_staff" readonly="true()" relevant=" /Sample_form/e4e_staff/staff01 ='yes'" type="string"/>
      <bind nodeset="/Sample_form/end_not_staff" readonly="true()" relevant=" /Sample_form/e4e_staff/staff01 ='no'" type="string"/>
      <bind calculate="concat('uuid:', uuid())" nodeset="/Sample_form/meta/instanceID" readonly="true()" type="string"/>
      <bind calculate="concat( /Sample_form/start000000 ,' ', /Sample_form/timestarted ,'_','Sample_form','_', /Sample_form/staff_info/staff_info01/staff_name )" nodeset="/Sample_form/meta/instanceName" type="string"/>
      <bind calculate="'564036ceae324d6b9f15a0c672a86d68'" nodeset="/Sample_form/formhub/uuid" type="string"/>
    </model>
  </h:head>
  <h:body class="pages">
    <input ref="/Sample_form/staff_survey">
      <label>e4e staff's survey</label>
    </input>
    <group ref="/Sample_form/e4e_staff">
      <label>**e4e staff**</label>
      <select1 ref="/Sample_form/e4e_staff/staff01">
        <label>Do you work at e4e?</label>
        <item>
          <label>Yes</label>
          <value>yes</value>
        </item>
        <item>
          <label>No</label>
          <value>no</value>
        </item>
      </select1>
    </group>
    <group ref="/Sample_form/staff_info">
      <group ref="/Sample_form/staff_info/staff_info01">
        <label>**Staff Personal Information**</label>
        <input ref="/Sample_form/staff_info/staff_info01/staff_name">
          <label>1. What is your name?</label>
        </input>
        <select1 ref="/Sample_form/staff_info/staff_info01/state">
          <label>2. What state are you from</label>
          <item>
            <label>Abia</label>
            <value>abia</value>
          </item>
          <item>
            <label>Adamawa</label>
            <value>adamawa</value>
          </item>
          <item>
            <label>Anambra</label>
            <value>anambra</value>
          </item>
          <item>
            <label>Akwa-Ibom</label>
            <value>akwa_ibom</value>
          </item>
          <item>
            <label>Bauchi</label>
            <value>bauchi</value>
          </item>
          <item>
            <label>Bayelsa</label>
            <value>bayelsa</value>
          </item>
          <item>
            <label>Benue</label>
            <value>benue</value>
          </item>
          <item>
            <label>Borno</label>
            <value>borno</value>
          </item>
          <item>
            <label>Cross River</label>
            <value>cross_river</value>
          </item>
          <item>
            <label>Delta</label>
            <value>delta</value>
          </item>
          <item>
            <label>Ebonyi</label>
            <value>ebonyi</value>
          </item>
          <item>
            <label>Edo</label>
            <value>edo</value>
          </item>
          <item>
            <label>Ekiti</label>
            <value>ekiti</value>
          </item>
          <item>
            <label>Enugu</label>
            <value>enugu</value>
          </item>
          <item>
            <label>Federal Capital Territory</label>
            <value>federal_cap</value>
          </item>
          <item>
            <label>Gombe</label>
            <value>gombe</value>
          </item>
          <item>
            <label>Imo</label>
            <value>imo</value>
          </item>
          <item>
            <label>Jigawa</label>
            <value>jigawa</value>
          </item>
          <item>
            <label>Kaduna</label>
            <value>kaduna</value>
          </item>
          <item>
            <label>Kano</label>
            <value>kano</value>
          </item>
          <item>
            <label>Katsina</label>
            <value>katsina</value>
          </item>
          <item>
            <label>Kebbi</label>
            <value>kebbi</value>
          </item>
          <item>
            <label>Kogi</label>
            <value>kogi</value>
          </item>
          <item>
            <label>Kwara</label>
            <value>kwara</value>
          </item>
          <item>
            <label>Lagos</label>
            <value>lagos</value>
          </item>
          <item>
            <label>Nasarawa</label>
            <value>nasarawa</value>
          </item>
          <item>
            <label>Niger</label>
            <value>niger</value>
          </item>
          <item>
            <label>Ogun</label>
            <value>ogun</value>
          </item>
          <item>
            <label>Ondo</label>
            <value>ondo</value>
          </item>
          <item>
            <label>Osun</label>
            <value>osun</value>
          </item>
          <item>
            <label>Oyo</label>
            <value>oyo</value>
          </item>
          <item>
            <label>Plateau</label>
            <value>plateau</value>
          </item>
          <item>
            <label>Rivers</label>
            <value>rivers</value>
          </item>
          <item>
            <label>Sokoto</label>
            <value>sokoto</value>
          </item>
          <item>
            <label>Taraba</label>
            <value>taraba</value>
          </item>
          <item>
            <label>Yobe</label>
            <value>yobe</value>
          </item>
          <item>
            <label>Zamfara</label>
            <value>zamfara</value>
          </item>
        </select1>
        <input ref="/Sample_form/staff_info/staff_info01/age">
          <label>3. How old are you?</label>
          <hint>In numbers</hint>
        </input>
        <input ref="/Sample_form/staff_info/staff_info01/hobbies">
          <label>4. What are your hobbies?</label>
        </input>
      </group>
      <group ref="/Sample_form/staff_info/work_info">
        <label>Work Information</label>
        <input ref="/Sample_form/staff_info/work_info/resumption">
          <label>5. When did you join e4e?</label>
        </input>
        <select1 ref="/Sample_form/staff_info/work_info/department">
          <label>6. What department are you working in?</label>
          <item>
            <label>PHD</label>
            <value>phd</value>
          </item>
          <item>
            <label>People and business</label>
            <value>people_and_business</value>
          </item>
          <item>
            <label>Web dev</label>
            <value>web_dev</value>
          </item>
          <item>
            <label>Design</label>
            <value>design</value>
          </item>
          <item>
            <label>Other</label>
            <value>other</value>
          </item>
        </select1>
        <input ref="/Sample_form/staff_info/work_info/department_other">
          <label>Specify other.</label>
        </input>
        <upload appearance="new" mediatype="image/*" ref="/Sample_form/staff_info/work_info/work_station">
          <label>7. Take a picture of your work station?</label>
        </upload>
      </group>
      <group appearance="field-list" ref="/Sample_form/staff_info/onboarding">
        <label>**Onboarding Process**</label>
        <select1 ref="/Sample_form/staff_info/onboarding/onboarding01">
          <label>8. How was the onboarding process</label>
          <item>
            <label>Very good</label>
            <value>very_good</value>
          </item>
          <item>
            <label>good</label>
            <value>good</value>
          </item>
          <item>
            <label>Average</label>
            <value>average</value>
          </item>
          <item>
            <label>Poor</label>
            <value>poor</value>
          </item>
        </select1>
        <select ref="/Sample_form/staff_info/onboarding/onboarding02">
          <label>9. Which of the following onboarding have you done?</label>
          <item>
            <label>Slack</label>
            <value>slack</value>
          </item>
          <item>
            <label>Culture</label>
            <value>culture</value>
          </item>
          <item>
            <label>Click up</label>
            <value>click_up</value>
          </item>
          <item>
            <label>Finance</label>
            <value>finance</value>
          </item>
          <item>
            <label>Health and safety</label>
            <value>health_and_safety</value>
          </item>
          <item>
            <label>Communication</label>
            <value>communication</value>
          </item>
          <item>
            <label>PowerPoint</label>
            <value>powerpoint</value>
          </item>
          <item>
            <label>Other</label>
            <value>other</value>
          </item>
        </select>
        <input ref="/Sample_form/staff_info/onboarding/onboarding02_other">
          <label>Specify other.</label>
        </input>
      </group>
      <input accuracyThreshold="5" appearance="w4" ref="/Sample_form/staff_info/parent44">
        <label>10. Collect the GPS coordinates.</label>
      </input>
    </group>
    <input ref="/Sample_form/end_staff">
      <label>End of Survey</label>
    </input>
    <input ref="/Sample_form/end_not_staff">
      <label>Not a staff. End of Survey</label>
    </input>
  </h:body>
</h:html>
