Skip to content

Commit

Permalink
Merge pull request #27110 from briennekordis/afform_note
Browse files Browse the repository at this point in the history
add Note as an afformEntity
  • Loading branch information
seamuslee001 authored Aug 21, 2023
2 parents 7f9dbe5 + 960d203 commit 5123e04
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/afform/admin/afformEntities/Note.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php
return [
'type' => 'join',
'repeat_max' => NULL,
];
5 changes: 5 additions & 0 deletions ext/afform/core/ang/afblockContactNote.aff.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<div class="af-container af-layout-inline">
<af-field name="note" />
<af-field name="subject" />
</div>

7 changes: 7 additions & 0 deletions ext/afform/core/ang/afblockContactNote.aff.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"title": "Contact Note(s)",
"type": "block",
"entity_type": "Contact",
"join_entity": "Note"
}

0 comments on commit 5123e04

Please sign in to comment.