Afform Gui - Add support for entityRef fields
authorColeman Watts <coleman@civicrm.org>
Tue, 4 May 2021 20:58:51 +0000 (16:58 -0400)
committerColeman Watts <coleman@civicrm.org>
Thu, 13 May 2021 12:33:41 +0000 (08:33 -0400)
commit783a2874ddf2462a69fe7122df399135a8a3ddaa
tree12dc0c6c6c2816b3c52ad1d91960ae8170595801
parent6294937f76a17de2caa04d93e11cd1f1fc31f219
Afform Gui - Add support for entityRef fields

Adds a widget for EntityRef and allows it to be changed to Number (for entering ID)
or Select (for choosing another entity on a form).
15 files changed:
Civi/Api4/Generic/BasicGetFieldsAction.php
Civi/Api4/Service/Spec/Provider/ActivitySpecProvider.php
Civi/Api4/Service/Spec/SpecFormatter.php
ext/afform/admin/Civi/AfformAdmin/AfformAdminMeta.php
ext/afform/admin/afformEntities/Activity.php
ext/afform/admin/ang/afGuiEditor.css
ext/afform/admin/ang/afGuiEditor/afGuiEditor.component.js
ext/afform/admin/ang/afGuiEditor/afGuiFieldValue.directive.js
ext/afform/admin/ang/afGuiEditor/elements/afGuiButton.html
ext/afform/admin/ang/afGuiEditor/elements/afGuiField-menu.html
ext/afform/admin/ang/afGuiEditor/elements/afGuiField.component.js
ext/afform/admin/ang/afGuiEditor/inputType/EntityRef.html [new file with mode: 0644]
ext/afform/core/Civi/Afform/AfformMetadataInjector.php
ext/afform/core/ang/af/afField.component.js
ext/afform/core/ang/af/fields/EntityRef.html [new file with mode: 0644]