Skip to content

Commit

Permalink
Add street address & city to afform (read only)
Browse files Browse the repository at this point in the history
I just added these as a was a bit creeped out seeing people do
name address merges without visibility on wheter the address
was a real address or a pseudo-address
  • Loading branch information
eileenmcnaughton committed Feb 26, 2021
1 parent f3d6082 commit 50c58d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ang/contactBasic.aff.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{ts('No contact id provided')}}
</div>
<div ng-if="options.contact_id"
af-api3="['Contact','getsingle', {id: options.contact_id, return: 'first_name,last_name,email, middle_name, display_name, contact_type, nick_name'}]"
af-api3="['Contact','getsingle', {id: options.contact_id, return: 'first_name,last_name,email, middle_name, display_name, contact_type, nick_name, street_address, city'}]"
af-api3-ctrl="contact">
<form name="basicContact"
onaftersave="crmApi4('Contact','update', {
Expand All @@ -29,6 +29,8 @@ <h1 class="basic-contact-heading" ng-show="!contact['result'].display_name">{{op
<div><strong class="basic-contact-field">{{ ts('Last Name') }}</strong>: <span editable-text="contact['result'].last_name">{{contact['result'].last_name || ".."}}</span></div>
<div><strong class="basic-contact-field">{{ ts('Nick Name') }}</strong>: <span editable-text="contact['result'].nick_name">{{contact['result'].nick_name || ".."}}</span></div>
<div><strong class="basic-contact-field">{{ts('Email')}}</strong>: <span editable-text="contact['result'].email">{{contact['result'].email || ".."}}</span></div>
<div ng-show=contact['result'].street_address><strong class="basic-contact-field">{{ts('Street Address')}}</strong>: <span>{{contact['result'].street_address}}</span></div>
<div ng-show=contact['result'].city><strong class="basic-contact-field">{{ts('City')}}</strong>: <span>{{contact['result'].city}}</span></div>
<div><strong class="basic-contact-field">{{ts('Contact ID')}}</strong>: <a target="_blank" ng-if="options.contact_url" href="{{options.contact_url}}{{contact['result'].contact_id}}">{{contact['result'].id}}</a></div>

<p></p>
Expand Down

0 comments on commit 50c58d1

Please sign in to comment.