<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
  <source>
    <!-- Define different entity types -->
    <entity id="e0" name="default"/>
    <entity id="e1" name="string" label="String field" type="string"/>
    <entity id="e2" name="integer" label="Integer field" type="integer" required="true">
      <rule expr="$integer ge 16" msg="Integer must be greated than 15" mode="post"/>
      <validator src="formbar.validators.null_validator" msg="An error occured"/>
    </entity>
    <entity id="e3" name="float" label="Float field" type="float" desired="true">
      <rule expr="$float lt 100.0" msg="Float must be lower than 100" mode="post"/>
      <help>This is is a very long helptext which should span over
      multiple rows. Further the will check if there are further html
      tags allowed.</help>
    </entity>
    <entity id="e4" name="date" label="Date field" type="date" autocomplete="off" css="datefield" number="1">
      <renderer type="datepicker"/>
      <help>This is my helptext</help>
    </entity>
    <entity id="e8" name="select" type="integer">
      <options>
        <include src="./include.xml"/>
        <option value="4">Value 4</option>
      </options>
      <rule expr="$select ne 2" msg="Select field is not 1" mode="post" triggers="warning"/>
    </entity>
    <!-- Fields for the user object -->
    <entity id="e5" name="name"/>
    <entity id="e6" name="fullname"/>
    <entity id="e7" name="password"/>
    <entity id="e9" name="html" tags="tag1, tag2">
      <renderer type="html">
        <div>Test</div>
      </renderer>
    </entity>
    <entity id="e10" name="time" type="time"/>
    <entity id="e11" name="interval" type="interval"/>
  </source>
  <form id="userform1">
    <row>
      <col><field ref="e6"/></col>
      <col><field ref="e7"/></col>
    </row>
  </form>
  <form id="userform2">
    <row>
      <col><field ref="e5"/></col>
      <col><field ref="e6"/></col>
      <col><field ref="e7"/></col>
    </row>
  </form>
  <form id="testform">
  </form>
  <form id="customform" css="testcss" readonly="false" autocomplete="off" method="GET" action="http://" enctype="multipart/form-data">
    <row>
      <col><field ref="e1"/></col>
    </row>
    <snippet ref="s1"/>
  </form>
  <form id="ambigous">
  </form>
  <form id="ambigous">
  </form>
  <snippet id="s1">
    <row>
      <col><field ref="e0"/></col>
      <col><field ref="e8"/></col>
      <col><field ref="e9"/></col>
      <col><field ref="e10"/></col>
      <col><field ref="e11"/></col>
    </row>
    <row>
      <col><field ref="e3"/></col>
      <col><field ref="e4"/></col>
    </row>
    <snippet ref="s2"/>
  </snippet>
  <snippet id="s2">
    <row>
      <col><field ref="e1"/></col>
      <col><field ref="e2"/></col>
    </row>
  </snippet>
  <form id="customform-readonly" css="testcss" readonly="false" autocomplete="off" method="GET" action="http://" enctype="multipart/form-data">
    <row>
      <col><field ref="e1"/></col>
    </row>
    <snippet ref="s1"/>
  </form>
</configuration>
