Rename speculative attributes af-api4-params and af-contact-relationship
authorTim Otten <totten@civicrm.org>
Fri, 13 Sep 2019 16:40:30 +0000 (12:40 -0400)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:19 +0000 (19:13 -0700)
ext/afform/docs/sandbox/planning-v0.3.md
ext/afform/mock/ang/afex.aff.html

index 00751898758e42c7deb747d9e1a76cb74e33ce59..e8ea3ab28773c308b9b6bab846596f614d00d18e 100644 (file)
     type="Individual"
     af-name="parent"
     label="Parent"
-    af-api4-params="{where: ['id','=', routeParams.cid]}"
+    api4-params="{where: ['id','=', routeParams.cid]}"
   />
   <af-model
     type="Individual"
     af-name="spouse"
     label="Spouse"
-    af-contact-relationship="['Spouse of', 'parent']"
+    contact-relationship="['Spouse of', 'parent']"
   />
   <!-- "parent" and "spouse" should be exported as variables in this scope -->
 
     <!--type="Email"-->
     <!--af-name="email"-->
     <!--label="Emails"-->
-    <!--af-api4-params="{where: ['contact_id', '=', options.parent.id]}"-->
+    <!--api4-params="{where: ['contact_id', '=', options.parent.id]}"-->
   <!--/>-->
   <!--<af-fieldset af-name="email">-->
     <!---->
     type="Individual"
     af-name="parent"
     label="Parent"
-    af-api4-params="{where: ['id','=', routeParams.cid]}"
+    api4-params="{where: ['id','=', routeParams.cid]}"
   />
   <af-model
     type="Individual"
     af-name="spouse"
     label="Spouse"
-    af-contact-relationship="['Spouse of', 'parent']"
+    contact-relationship="['Spouse of', 'parent']"
   />
   <!-- "parent" and "spouse" should be exported as variables in this scope -->
 
index 4550e83047ec8d768e344c6a1a298d92c49c3645..ef5d156df5d5e198946d4548adff891dbc3dc555 100644 (file)
@@ -1,7 +1,7 @@
 <af-form ctrl="modelListCtrl">
   <!-- FIXME: Distinguish "Individual"s from "Household"s -->
-  <af-model type="Contact" af-name="parent" label="Parent" af-api4-params="{where: ['id','=', routeParams.cid]}"></af-model>
-  <af-model type="Contact" af-name="spouse" label="Spouse" af-contact-relationship="['Spouse of', 'parent']"></af-model>
+  <af-model type="Contact" af-name="parent" label="Parent" api4-params="{where: ['id','=', routeParams.cid]}"></af-model>
+  <af-model type="Contact" af-name="spouse" label="Spouse" contact-relationship="['Spouse of', 'parent']"></af-model>
   <af-model type="Contact" af-name="home" label="Home"></af-model>
 
   <!-- "parent" and "spouse" should be exported as variables in this scope -->