<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<configuration xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="ringo">
  <source>
    <entity id="name" name="name" label="Name" type="string">
    </entity>
    <entity id="file" name="file" label="File" type="file"/>
    <entity id="description" name="description" label="Description" type="string">
      <renderer type="textarea"/>
    </entity>
    <entity id="size" name="size" label="Size" type="integer" readonly="true"/>
    <entity id="mime" name="mime" label="Mime" readonly="true"/>
    <entity id="mid" name="modul" label="Modul">
      <renderer type="dropdown"/>
    </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="edit_snippet"/>
  </form>
  <form id="read" readonly="true">
    <snippet ref="read_snippet"/>
  </form>

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

  <snippet id="read_snippet">
    <row>
      <col><field ref="name"/></col>
      <col><field ref="mid"/></col>
    </row>
    <row>
      <col><field ref="size"/></col>
      <col><field ref="mime"/></col>
    </row>
    <row>
      <col><field ref="description"/></col>
    </row>
  </snippet>

  <snippet id="edit_snippet">
    <row>
      <col><field ref="name"/></col>
      <col><field ref="mid"/></col>
    </row>
    <row>
      <col><field ref="file"/></col>
    </row>
    <row>
      <col><field ref="description"/></col>
    </row>
  </snippet>

</configuration>
