afex.aff.html - Update example markup
authorTim Otten <totten@civicrm.org>
Thu, 13 Jun 2019 16:46:47 +0000 (12:46 -0400)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:18 +0000 (19:13 -0700)
ext/afform/mock/ang/afex.aff.html

index 377f85c280d31765b33ddd9bee344f16ccab33b0..2bf45526698dedd4d94dc6720f4f3718298902b9 100644 (file)
@@ -1,14 +1,15 @@
-<af-model-list ctrl="modelListCtrl" >
-  <af-model-prop af-type="Individual" af-name="parent" af-label="Parent" af-api4-params="{where: ['id','=', routeParams.cid]}" />
-  <af-model-prop af-type="Individual" af-name="spouse" af-label="Spouse" af-contact-relationship="['Spouse of', 'parent']" />
-  <af-model-prop af-type="Household" af-name="home" af-label="Home" />
+<af-model-list ctrl="modelListCtrl">
+  <!-- FIXME: Distinguish "Individual"s from "Household"s -->
+  <af-model-prop af-type="Contact" af-name="parent" af-label="Parent" af-api4-params="{where: ['id','=', routeParams.cid]}"></af-model-prop>
+  <af-model-prop af-type="Contact" af-name="spouse" af-label="Spouse" af-contact-relationship="['Spouse of', 'parent']"></af-model-prop>
+  <af-model-prop af-type="Contact" af-name="home" af-label="Home"></af-model-prop>
 
   <!-- "parent" and "spouse" should be exported as variables in this scope -->
 
   <af-model af-name="parent">
     <af-block-contact-name af-label="My Name" />
     <af-block-contact-email af-label="My Email" />
-    <af-field field-name="do_not_email" field-type="checkbox" field-default="1" />
+    <af-field field-name="do_not_email" />
   </af-model>
 
   <af-model af-name="spouse">