<?xml version="1.0"?>
<yep:description xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:xforms="http://www.w3.org/2002/xforms"
                 xmlns:xi="http://www.w3.org/2003/XInclude"
                 xmlns:yep="http://www.entrouvert.org/namespaces/expression/0.0">
 <xforms:model id="bugModel" schema="/schemas/Bug.xsd">
  <xforms:submission action="file://tmp/abracadabra-put.xml" method="put" id="submit"/>
 </xforms:model>

 <yep:page name="new" type="form">
  <yep:body>
   <xforms:group model="bugModel">
    <h1>Soumettre un bug</h1>
   
    <div class="field">
     <xforms:input ref="yep:category">
      <xforms:label>Catégorie</xforms:label>
     </xforms:input>
    </div>

    <div class="field">
     <xforms:input ref="yep:assignedTo">
      <xforms:label>Assigné à</xforms:label>
     </xforms:input>
    </div>

    <div class="field">
     <xforms:input ref="yep:originator">
      <xforms:label>Soumis par</xforms:label>
     </xforms:input>
    </div>

    <div class="field">
     <xforms:input ref="yep:release">
      <xforms:label>Version</xforms:label>
     </xforms:input>
    </div>

    <div class="field">
     <xforms:input ref="yep:summary">
      <xforms:label>Résumé</xforms:label>
     </xforms:input>
    </div>

    <xforms:group ref="yep:comments">
     <xforms:label>Commentaires</xforms:label>
     <xforms:repeat ref="yep:comment">
      <xforms:textarea appearance="full"/>
     </xforms:repeat>
    </xforms:group>

   </xforms:group>
  </yep:body>
  <yep:actionButtonsBar>
   <yep:actionButton>
    <xforms:label>Soumettre</xforms:label>
    <yep:action>submit</yep:action>
   </yep:actionButton>
  </yep:actionButtonsBar>
 </yep:page>

 <yep:page name="edit" type="form">
  <yep:body>
   <xi:include xpointer="xmlns(xforms=http://www.w3.org/2002/xforms) xmlns(yep=http://www.entrouvert.org/namespaces/expression/0.0) xpointer(/yep:description/yep:page[@name = 'new']/yep:body/xforms:group)"/>
  </yep:body>
  <yep:actionButtonsBar>
   <yep:actionButton>
    <xforms:label>Modifier</xforms:label>
    <yep:action>submit</yep:action>
   </yep:actionButton>
  </yep:actionButtonsBar>
 </yep:page>

 <yep:body>
  <xi:include xpointer="xmlns(xforms=http://www.w3.org/2002/xforms) xmlns(yep=http://www.entrouvert.org/namespaces/expression/0.0) xpointer(/yep:description/yep:page[@name = 'new']/yep:body/xforms:group)"/>
 </yep:body>
 <yep:actionButtonsBar>
  <yep:actionButton>
   <xforms:label>Éditer</xforms:label>
   <yep:action>edit</yep:action>
  </yep:actionButton>
 </yep:actionButtonsBar>

</yep:description>

