From 960d203739078417e11664b94fa8f707485e9e2e Mon Sep 17 00:00:00 2001 From: brienne Date: Fri, 11 Aug 2023 13:07:03 -0400 Subject: [PATCH] add Note as an afformEntity make afformEntity a join join Note to Contact Entity --- ext/afform/admin/afformEntities/Note.php | 5 +++++ ext/afform/core/ang/afblockContactNote.aff.html | 5 +++++ ext/afform/core/ang/afblockContactNote.aff.json | 7 +++++++ 3 files changed, 17 insertions(+) create mode 100644 ext/afform/admin/afformEntities/Note.php create mode 100644 ext/afform/core/ang/afblockContactNote.aff.html create mode 100644 ext/afform/core/ang/afblockContactNote.aff.json diff --git a/ext/afform/admin/afformEntities/Note.php b/ext/afform/admin/afformEntities/Note.php new file mode 100644 index 0000000000..a8a35545a2 --- /dev/null +++ b/ext/afform/admin/afformEntities/Note.php @@ -0,0 +1,5 @@ + 'join', + 'repeat_max' => NULL, +]; diff --git a/ext/afform/core/ang/afblockContactNote.aff.html b/ext/afform/core/ang/afblockContactNote.aff.html new file mode 100644 index 0000000000..d02d2f6408 --- /dev/null +++ b/ext/afform/core/ang/afblockContactNote.aff.html @@ -0,0 +1,5 @@ +
+ + +
+ \ No newline at end of file diff --git a/ext/afform/core/ang/afblockContactNote.aff.json b/ext/afform/core/ang/afblockContactNote.aff.json new file mode 100644 index 0000000000..b3412870a7 --- /dev/null +++ b/ext/afform/core/ang/afblockContactNote.aff.json @@ -0,0 +1,7 @@ +{ + "title": "Contact Note(s)", + "type": "block", + "entity_type": "Contact", + "join_entity": "Note" + } + \ No newline at end of file -- 2.25.1