<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
  <source>
    <!-- Define different entity types -->
    <entity id="e1" name="first_name" label="Firstname" type="string"/>
    <entity id="e2" name="last_name" label="Lastname" type="string"/>
    <entity id="e3" name="birthday" label="Birthday" type="date"/>
    <entity id="e4" name="address" label="Address" type="string">
      <renderer type="textarea"/>
    </entity>
    <entity id="e5" name="email" label="E-Mail" type="string"/>
    <entity id="e6" name="url" label="Web" type="string"/>
    <entity id="e7" name="phone" label="Phone" type="string"/>
  </source>
  <form id="create" autocomplete="off" method="POST" action="" enctype="multipart/form-data">
    <snippet ref="create_snippet"/>
  </form>
  <form id="update" autocomplete="off" method="POST" action="" enctype="multipart/form-data">
    <snippet ref="create_snippet"/>
  </form>
  <form id="read" readonly="true">
    <snippet ref="create_snippet"/>
  </form>

  <!-- Create-->
  <snippet id="create_snippet">
    <snippet ref="s1"/>
  </snippet>

  <!-- Role -->
  <snippet id="s1">
    <row>
      <col><field ref="e1"/></col>
      <col><field ref="e2"/></col>
    </row>
    <row>
      <col><field ref="e4"/></col>
      <col><field ref="e3"/></col>
    </row>
    <row>
      <col>
        <row>
          <col><field ref="e5"/></col>
        </row>
        <row>
          <col><field ref="e6"/></col>
        </row>
      </col>
      <col><field ref="e7"/></col>
    </row>
  </snippet>
</configuration>
