@if (!editMode) {
@if (contact.background) { }
@if (contact.avatar) { } @if (!contact.avatar) {
{{ contact.name.charAt(0) }}
}
{{ contact.name }}
@if (contact.tags.length) {
@for ( tag of contact.tags | fuseFindByKey: 'id' : tags; track trackByFn($index, tag) ) {
{{ tag.title }}
}
}
@if (contact.title) {
{{ contact.title }}
} @if (contact.company) {
{{ contact.company }}
} @if (contact.emails.length) {
@for ( email of contact.emails; track trackByFn($index, email) ) {
{{ email.email }} @if (email.label) {
• {{ email.label }}
}
}
} @if (contact.phoneNumbers.length) {
@for ( phoneNumber of contact.phoneNumbers; track trackByFn($index, phoneNumber) ) {
{{ getCountryByIso( phoneNumber.country ).code }}
{{ phoneNumber.phoneNumber }}
@if (phoneNumber.label) {
• {{ phoneNumber.label }}
}
}
} @if (contact.address) {
{{ contact.address }}
} @if (contact.birthday) {
{{ contact.birthday | date: 'longDate' }}
} @if (contact.notes) {
}
} @if (editMode) {
@if (contact.background) { }
@if (contact.avatar) { } @if (!contact.avatar) {
{{ contact.name.charAt(0) }}
}
Name
@if (contact.tags.length) { @for ( tag of contact.tags | fuseFindByKey: 'id' : tags; track trackByFn($index, tag) ) {
{{ tag.title }}
} }
@if (contact.tags.length) { Edit } @if (!contact.tags.length) { Add }
@if (!tagsEditMode) { @for ( tag of filteredTags; track trackByFn($index, tag) ) {
{{ tag.title }}
} } @if (tagsEditMode) {
@for ( tag of filteredTags; track trackByFn($index, tag) ) {
}
} @if ( shouldShowCreateTagButton( newTagInput.value ) ) {
Create "{{ newTagInput.value }}"
}
Title
Company
@for ( email of contactForm.get('emails')['controls']; track trackByFn(i, email); let i = $index; let first = $first; let last = $last ) {
@if (first) { Email } @if (first) { Label } @if (!(first && last)) {
}
}
Add an email address
@for ( phoneNumber of contactForm.get('phoneNumbers')[ 'controls' ]; track trackByFn(i, phoneNumber); let i = $index; let first = $first; let last = $last ) {
@if (first) { Phone } {{ getCountryByIso( phoneNumber.get( 'country' ).value ).code }} @for ( country of countries; track trackByFn($index, country) ) { {{ country.name }} {{ country.code }} } @if (first) { Label } @if (!(first && last)) {
}
}
Add a phone number
Address
Birthday
Notes
}