-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Afform - Quick add links for Autocomplete fields
- Loading branch information
Showing
10 changed files
with
157 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<af-form ctrl="afform"> | ||
<af-entity data="{contact_type: 'Individual'}" type="Individual" name="Individual1" actions="{create: true, update: false}" security="RBAC" /> | ||
<fieldset af-fieldset="Individual1" class="af-container"> | ||
<div class="af-container"> | ||
<div class="af-container af-layout-inline"> | ||
<af-field name="first_name" /> | ||
<af-field name="middle_name" /> | ||
<af-field name="last_name" /> | ||
</div> | ||
<div af-join="Email" data="{is_primary: true}"> | ||
<div class="af-container af-layout-inline"> | ||
<af-field name="email" /> | ||
</div> | ||
</div> | ||
</div> | ||
</fieldset> | ||
<button class="af-button btn btn-primary" crm-icon="fa-check" ng-click="afform.submit()">Submit</button> | ||
</af-form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
return [ | ||
'type' => 'form', | ||
'title' => ts('New Individual'), | ||
'icon' => 'fa-list-alt', | ||
'server_route' => 'civicrm/quick-add/Individual', | ||
'permission' => [ | ||
'add contacts' | ||
], | ||
'permission_operator' => 'AND', | ||
'submit_enabled' => TRUE, | ||
'create_submission' => FALSE, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters