- Is it possible render element for drug&drop? As I see, I can create entity or select it from the list. I would like move all them to the form.
- As you can see on the screenshot, I have duplicated titles Godparent 2, but they are different in my xml
<section role='Godparent' type='person' title='Godparent 1'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Godparent' type='person' title='Godparent 2'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
- File āforms.pyā:
# Files which may contain form definitions
definition_files = ['form_be.xml', 'form_ca.xml', 'form_dk.xml', 'form_fr.xml',
'form_gb.xml', 'form_pl.xml', 'form_us.xml', 'form_ua.xml',
'test.xml', 'custom.xml']
Maybe it would be better load all .xml files automatically without manual defining each file? āform_ua.xmlā - is my. Something like addons are loading.
-
Is it possible create 2 or more different events from a Form? For example: Birth and Babtism, or Death or Burial.
-
Why documentation warns that it is better make custom eventsā names. Are there some risks for earlier saved data?
My current draft:
<?xml version="1.0" encoding="UTF-8"?>
<forms>
<form id='UABirth' type='Birth' title='Ukrainian Birth Metric'>
<heading>
<_attribute>Date Registered</_attribute>
</heading>
<heading>
<_attribute>Registrar</_attribute>
</heading>
<section role='Primary' type='person' title='Child'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Father' type='person' title='Father'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Mother' type='person' title='Mother'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Godparent' type='person' title='Godparent 1'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Godparent' type='person' title='Godparent 2'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
</form>
<form id='UAMarriage' type='Marriage' title='Ukrainian Marriage Metric'>
<section role='Family' type='family' title='Groom/Bride'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Primary' type='person' title='Groom'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Primary' type='person' title='Bride'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Witness for' type='multi' title='Groom Witnesses'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Witness for' type='multi' title='Bride Witnesses'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
</form>
<form id='UADeath' type='Death' title='Ukrainian Death Metric'>
<heading>
<_attribute>Date</_attribute>
</heading>
<heading>
<_attribute>Registrar</_attribute>
</heading>
<section role='Primary' type='person' title='Deceased'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
<section role='Primary' type='person' title='Mentioned'>
<column>
<_attribute>Name</_attribute>
</column>
</section>
</form>
</forms>