<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE FreeMedForms>

<FreeMedForms>

  <formdescription>
    <!-- Non translatable values -->
    <authors>Eric Maeker, MD</authors>
    <version>0.9.4</version>
    <fmfv>0.7.0</fmfv>
    <cdate>2012-01-17</cdate>
    <lmdate>2012-01-17</lmdate>
    <icon>test.png</icon>
    <weblink></weblink>
    <bibliography pmid=""></bibliography>

    <!-- Translatable values -->
    <license>GPLv3</license>
    <description lang="fr">Test du group widget</description>
    <description lang="xx">Group widget test</description>
    <category lang="xx">Test</category>
    <category lang="fr">Test</category>
    <specialties lang="fr">Test</specialties>
    <specialties lang="xx">Test</specialties>

  </formdescription>


  <MedForm name="Test::GroupTest">
    <label lang="xx">Group widget test</label>
    <label lang="fr">Test du group widget</label>
    <options>col=2;DontPrintEmptyValues;UseFormNameAsNameSpace</options>

    <Item type="group" name="Test1_1">
      <label lang="xx">This is a simple group widget</label>
      <Item type="helptext" name="Test1_1HT">
        <label lang="xx">This is a simple group widget. One column.</label>
      </Item>
    </Item>

    <Item type="group" name="Test1_2">
      <label lang="xx">This is a simple compact group widget</label>
      <options>compact</options>
      <Item type="helptext" name="Test1_2HT">
        <label lang="xx">This is a simple compact group widget. One column.</label>
      </Item>
    </Item>

    <Item type="group" name="Test2">
      <label lang="xx">This is a another group widget</label>
      <column>2</column>
      <Item type="helptext" name="Test2_1HT">
        <label lang="xx">This is a simple group widget. Two columns.</label>
      </Item>
      <Item type="helptext" name="Test2_2HT">
        <label lang="xx">The second column content.</label>
      </Item>
    </Item>

    <Item type="group" name="Test3">
      <label lang="xx">This is a checkable group widget</label>
      <options>checkable</options>
      <Item type="helptext" name="Test3HT">
        <label lang="xx">This is a checkabke group widget. One column.</label>
      </Item>
    </Item>

    <Item type="group" name="Test4_1">
      <label lang="xx">This is a collapsible group widget (not expanded at startup)</label>
      <options>collapsible</options>
      <Item type="helptext" name="Test4_1HT">
        <label lang="xx">This is a collapsible group widget (not expanded at startup). One column.</label>
      </Item>
    </Item>

    <Item type="group" name="Test4_2">
      <label lang="xx">This is a collapsible group widget (expanded at startup)</label>
      <options>collapsible;expanded</options>
      <Item type="helptext" name="Test4_2HT">
        <label lang="xx">This is a collapsible group widget (expanded at startup). One column.</label>
      </Item>
    </Item>

    <Item type="group" name="Test5">
      <label lang="xx">This is a collapsible group widget (expanded at startup by onload script)</label>
      <options>collapsible</options>
      <Item type="helptext" name="Test5_1HT">
        <label lang="xx">This is a collapsible group widget (expanded at startup by onload script). One column.</label>
      </Item>

      <Item type="helptext" name="Test5_2HT">
        <label lang="xx">script uses: item.checked = true/false;</label>
      </Item>

      <script>
        <onload>freemedforms.forms.namespaceInUse = "";
                var collapsible = freemedforms.forms.item("Test::GroupTest::Test5");
                collapsible.checked = true;
        </onload>
      </script>
    </Item>

 </MedForm>

</FreeMedForms>
