<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration>
  <source>
    <!-- Define different entity types -->
    <entity id="e1" name="name" label="Name" type="string"/>
    <entity id="e2" name="permissions" label="Permissions">
      <renderer type="listing" hideadd="true" nolinks="true" showsearch="true"/>
    </entity>
    <entity id="e3" name="admin" label="Administrational role"/>
    <entity id="e4" name="description" label="Description" type="string">
      <renderer type="textarea"/>
    </entity>
    <entity id="e5" name="users" label="Users">
      <renderer type="selection"/>
    </entity>
  </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>
    </row>
    <row>
      <col><field ref="e4"/></col>
    </row>
    <row>
      <col><field ref="e5"/></col>
    </row>
    <row>
      <col><field ref="e2"/></col>
    </row>
    <row>
      <col><field ref="e3"/></col>
    </row>
  </snippet>
</configuration>
