78 lines
2.7 KiB
XML
78 lines
2.7 KiB
XML
<?xml version="1.0"?>
|
|
<yep:description schema="/schemas/Description.xsd"
|
|
xmlns:ev="http://www.w3.org/2001/xml-events"
|
|
xmlns:yep="http://abracadabra.entrouvert.org/0.0"
|
|
xmlns:xforms="http://www.w3.org/2002/xforms"
|
|
xmlns:xi="http://www.w3.org/2003/XInclude">
|
|
<xforms:model id="personModel" schema="/schemas/Person.xsd">
|
|
<xforms:submission action="file://tmp/abracadabra-put.xml" method="put" id="submit"/>
|
|
</xforms:model>
|
|
|
|
<yep:page name="edit" type="form">
|
|
<yep:body>
|
|
<xforms:group model="personModel" yep:id="editGroup">
|
|
<xforms:label yep:translatable="true">Person</xforms:label>
|
|
<xforms:input ref="yep:fullName">
|
|
<xforms:label yep:translatable="true">Nom complet</xforms:label>
|
|
</xforms:input>
|
|
<xforms:input ref="yep:email">
|
|
<xforms:label yep:translatable="true">Courriel</xforms:label>
|
|
</xforms:input>
|
|
<xforms:select1 appearance="minimal" ref="yep:language">
|
|
<xforms:label yep:translatable="true">Language</xforms:label>
|
|
<xforms:item>
|
|
<xforms:label yep:translatable="true">English</xforms:label>
|
|
<xforms:value>en</xforms:value>
|
|
</xforms:item>
|
|
<xforms:item>
|
|
<xforms:label yep:translatable="true">Français</xforms:label>
|
|
<xforms:value>fr</xforms:value>
|
|
</xforms:item>
|
|
</xforms:select1>
|
|
<xforms:select appearance="full" ref="yep:authorizations">
|
|
<xforms:label yep:translatable="true">Caractéristiques</xforms:label>
|
|
<xforms:item>
|
|
<xforms:label yep:translatable="true">Habitant de la commune</xforms:label>
|
|
<xforms:value>resident</xforms:value>
|
|
</xforms:item>
|
|
<xforms:item>
|
|
<xforms:label yep:translatable="true">Employé de l'État Civil</xforms:label>
|
|
<xforms:value>employee</xforms:value>
|
|
</xforms:item>
|
|
</xforms:select>
|
|
</xforms:group>
|
|
</yep:body>
|
|
<yep:actionButtonsBar>
|
|
<yep:actionButton>
|
|
<xforms:label yep:translatable="true">Modify</xforms:label>
|
|
<yep:action>submit</yep:action>
|
|
</yep:actionButton>
|
|
</yep:actionButtonsBar>
|
|
</yep:page>
|
|
|
|
<yep:page name="view">
|
|
<yep:body>
|
|
<yep:copy original="editGroup"/>
|
|
</yep:body>
|
|
<yep:actionButtonsBar>
|
|
<yep:actionButton>
|
|
<xforms:label yep:translatable="true">Edit</xforms:label>
|
|
<yep:action>edit</yep:action>
|
|
</yep:actionButton>
|
|
</yep:actionButtonsBar>
|
|
</yep:page>
|
|
|
|
<!--
|
|
<yep:page name="view">
|
|
<xi:include xpointer="xmlns(yep=http://abracadabra.entrouvert.org/0.0)xpointer(/yep:description/yep:page[@name = 'edit']/yep:body)"/>
|
|
<yep:actionButtonsBar>
|
|
<yep:actionButton>
|
|
<xforms:label yep:translatable="true">Edit</xforms:label>
|
|
<yep:action>edit</yep:action>
|
|
</yep:actionButton>
|
|
</yep:actionButtonsBar>
|
|
</yep:page>
|
|
-->
|
|
|
|
</yep:description>
|