Afform - Selectable location_type, is_primary, etc.
authorColeman Watts <coleman@civicrm.org>
Wed, 25 Aug 2021 13:25:18 +0000 (09:25 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 27 Aug 2021 12:44:54 +0000 (08:44 -0400)
commit1f0461e7a6a7451dfffee8ce87fffb17ea3842ea
tree781df920445a9b71982339a883509ec3e8284619
parent4159717939212c27482b05458b219a15a7b4cf80
Afform - Selectable location_type, is_primary, etc.

This allows the user to set a join block (email, phone, address, etc) as either repeatable
OR with a set value for is_primary or location_type.

Fixes dev/core#2703
14 files changed:
ext/afform/admin/afformEntities/Address.php
ext/afform/admin/afformEntities/Email.php
ext/afform/admin/afformEntities/IM.php
ext/afform/admin/afformEntities/Phone.php
ext/afform/admin/afformEntities/Website.php
ext/afform/admin/ang/afGuiEditor.css
ext/afform/admin/ang/afGuiEditor/afGuiContainerMultiToggle.component.js [new file with mode: 0644]
ext/afform/admin/ang/afGuiEditor/afGuiContainerMultiToggle.html [new file with mode: 0644]
ext/afform/admin/ang/afGuiEditor/elements/afGuiContainer-menu.html
ext/afform/admin/ang/afGuiEditor/elements/afGuiContainer.component.js
ext/afform/admin/ang/afGuiEditor/elements/afGuiContainer.html
ext/afform/core/CRM/Afform/ArrayHtml.php
ext/afform/core/Civi/Api4/Action/Afform/Submit.php
ext/afform/mock/tests/phpunit/api/v4/AfformCustomFieldUsageTest.php