<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="ringo">
  <source>
    <!-- Define different entity types -->
    <entity id="e1" name="name" label="Name" type="string" required="true"/>
    <entity id="e2" name="description" label="Description" type="string">
      <renderer type="textarea"/>
    </entity>
    <entity id="e3" name="tagtype" label="Type" type="integer">
      <renderer type="dropdown"/>
      <help>The type of the tag will determine how the tag is displayed (colored)</help>
      <options>
        <option value="0">Default</option>
        <option value="1">Primary</option>
        <option value="2">Success</option>
        <option value="3">Info</option>
        <option value="4">Warning</option>
        <option value="5">Danger</option>
      </options>
    </entity>
    <entity id="e4" name="modul" label="Modul">
      <renderer type="dropdown"/>
      <help>Optional. Choose a modul this keyword belongs to. If not selected the keyword is considrered as global keyword which is available in all moduls. Otherwise the keyword is only available in the selected modul.</help>
    </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 width="8"><field ref="e1"/></col>
      <col width="2"><field ref="e3"/></col>
      <col width="2"><field ref="e4"/></col>
    </row>
    <row>
      <col><field ref="e2"/></col>
    </row>
  </snippet>
</configuration>
