diff --git a/bizmatch-server/src/mail/mail.service.ts b/bizmatch-server/src/mail/mail.service.ts index 712aaca..6cde419 100644 --- a/bizmatch-server/src/mail/mail.service.ts +++ b/bizmatch-server/src/mail/mail.service.ts @@ -34,6 +34,8 @@ export class MailService { iname: mailInfo.sender.name, phone: mailInfo.sender.phoneNumber, email: mailInfo.sender.email, + id: mailInfo.listing.id, + url: 'http://localhost:4200', }, }); return user; diff --git a/bizmatch-server/src/mail/templates/inquiry.hbs b/bizmatch-server/src/mail/templates/inquiry.hbs index a09bde3..319fcb7 100644 --- a/bizmatch-server/src/mail/templates/inquiry.hbs +++ b/bizmatch-server/src/mail/templates/inquiry.hbs @@ -1,12 +1,104 @@ -
Dear {{ name }},
-You got an inquiry regarding your '{{title}}'' listing
-- Buyers Information -
-Contact Name: {{iname}}
-Contact Phone: {{phone}}
-Contact Mail: {{email}}
-Contact Name: {{iname}}
-Comments: {{inquiry}}
+ + + + + +You've received a message regarding your "{{title}}" listing.
+ +Internal Listing Number: {{internalListingNumber}}
\ No newline at end of file +not-found works!
diff --git a/bizmatch/src/app/components/not-found/not-found.component.scss b/bizmatch/src/app/components/not-found/not-found.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/bizmatch/src/app/components/not-found/not-found.component.ts b/bizmatch/src/app/components/not-found/not-found.component.ts new file mode 100644 index 0000000..f444acf --- /dev/null +++ b/bizmatch/src/app/components/not-found/not-found.component.ts @@ -0,0 +1,8 @@ +import { Component } from '@angular/core'; + +@Component({ + selector: 'app-not-found', + standalone: true, + template: '{{ user.description }}
}
diff --git a/bizmatch/src/app/pages/details/details-user/details-user.component.ts b/bizmatch/src/app/pages/details/details-user/details-user.component.ts
index 663449b..ab50d08 100644
--- a/bizmatch/src/app/pages/details/details-user/details-user.component.ts
+++ b/bizmatch/src/app/pages/details/details-user/details-user.component.ts
@@ -1,4 +1,3 @@
-import { Location } from '@angular/common';
import { Component } from '@angular/core';
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
import { ActivatedRoute, Router } from '@angular/router';
@@ -8,6 +7,7 @@ import { Observable } from 'rxjs';
import { BusinessListing, CommercialPropertyListing, User } from '../../../../../../bizmatch-server/src/models/db.model';
import { ListingCriteria } from '../../../../../../bizmatch-server/src/models/main.model';
import { environment } from '../../../../environments/environment';
+import { HistoryService } from '../../../services/history.service';
import { ImageService } from '../../../services/image.service';
import { ListingsService } from '../../../services/listings.service';
import { SelectOptionsService } from '../../../services/select-options.service';
@@ -42,7 +42,7 @@ export class DetailsUserComponent {
public selectOptions: SelectOptionsService,
private sanitizer: DomSanitizer,
private imageService: ImageService,
- private location: Location,
+ public historyService: HistoryService,
) {}
async ngOnInit() {
@@ -56,9 +56,7 @@ export class DetailsUserComponent {
this.companyOverview = this.sanitizer.bypassSecurityTrustHtml(this.user.companyOverview);
this.offeredServices = this.sanitizer.bypassSecurityTrustHtml(this.user.offeredServices);
}
- back() {
- this.location.back();
- }
+
isAdmin() {
return this.userService.hasAdminRole();
}
diff --git a/bizmatch/src/app/pages/subscription/edit-business-listing/edit-business-listing.component.html b/bizmatch/src/app/pages/subscription/edit-business-listing/edit-business-listing.component.html
index 31dd5c0..0571ee7 100644
--- a/bizmatch/src/app/pages/subscription/edit-business-listing/edit-business-listing.component.html
+++ b/bizmatch/src/app/pages/subscription/edit-business-listing/edit-business-listing.component.html
@@ -28,7 +28,6 @@