diff --git a/bizmatch/src/app/pages/details/details-business-listing/details-business-listing.component.scss b/bizmatch/src/app/pages/details/details-business-listing/details-business-listing.component.scss index 2bc0dfe..fa2ba82 100644 --- a/bizmatch/src/app/pages/details/details-business-listing/details-business-listing.component.scss +++ b/bizmatch/src/app/pages/details/details-business-listing/details-business-listing.component.scss @@ -34,3 +34,20 @@ margin-right: 0; font-weight: bold; } +::ng-deep ul { + display: block; + list-style-type: disc; /* listet Punkte (•) vor jedem Listenelement auf */ + margin-top: 1em; + margin-bottom: 1em; + margin-left: 0; + margin-right: 0; + padding-left: 40px; /* Standard-Einrückung für Listen */ +} +::ng-deep li { + display: list-item; /* Zeigt das Element als Listenelement an */ + margin-left: 0; + margin-right: 0; + margin-top: 0; + margin-bottom: 0; + padding-left: 0; +} diff --git a/bizmatch/src/app/pages/details/details-commercial-property-listing/details-commercial-property-listing.component.scss b/bizmatch/src/app/pages/details/details-commercial-property-listing/details-commercial-property-listing.component.scss index 2bc0dfe..fa2ba82 100644 --- a/bizmatch/src/app/pages/details/details-commercial-property-listing/details-commercial-property-listing.component.scss +++ b/bizmatch/src/app/pages/details/details-commercial-property-listing/details-commercial-property-listing.component.scss @@ -34,3 +34,20 @@ margin-right: 0; font-weight: bold; } +::ng-deep ul { + display: block; + list-style-type: disc; /* listet Punkte (•) vor jedem Listenelement auf */ + margin-top: 1em; + margin-bottom: 1em; + margin-left: 0; + margin-right: 0; + padding-left: 40px; /* Standard-Einrückung für Listen */ +} +::ng-deep li { + display: list-item; /* Zeigt das Element als Listenelement an */ + margin-left: 0; + margin-right: 0; + margin-top: 0; + margin-bottom: 0; + padding-left: 0; +} diff --git a/bizmatch/src/app/pages/details/details-user/details-user.component.html b/bizmatch/src/app/pages/details/details-user/details-user.component.html index 09a1c86..31d6824 100644 --- a/bizmatch/src/app/pages/details/details-user/details-user.component.html +++ b/bizmatch/src/app/pages/details/details-user/details-user.component.html @@ -139,172 +139,129 @@
- Profile picture of Avery Brown smiling + + @if(user.hasProfile){ + + } @else { + + }

- Avery Brown + {{ user.firstname }} {{ user.lastname }}

Company - - New Mexico Business Sales + {{ user.companyName }} | For Sale - - 9 + {{ businessListings?.length + commercialPropListings?.length }}

- + @if(user.hasCompanyLogo){ + + } +
- +
-

Helping business owners in southern New Mexico sell their businesses and assisting buyers in finding the perfect opportunity.

+

{{ user.description }}

Company Profile

-

- New Mexico Business Sales is a trusted business brokerage firm serving the southern New Mexico market. Our team of experienced brokers is committed to providing personalized service and expert guidance to ensure - a smooth and successful transaction for our clients. -

+

Name - Avery Brown + {{ user.firstname }} {{ user.lastname }}
Phone Number - (575) 555-7890 + {{ formatPhoneNumber(user.phoneNumber) }}
EMail Address - avery.brown@nmbizsales.com + {{ user.email }}
Company Location - Las Cruces - NM + {{ user.companyLocation }}

Services we offer

-

What We Offer

- +

Areas (Counties) we serve

- Doña Ana County-NM - Otero County-NM - Luna County-NM - Sierra County-NM - Grant County-NM + @for (area of user.areasServed; track area) { + {{ area.county }}-{{ area.state }} + }

Licensed In

- 4.2700P-NM + @for (license of user.licensedIn; track license) { + {{ license.registerNo }}-{{ license.state }} + }
+
+ @if(businessListings?.length>0){

My Business Listings For Sale

-
+ @for (listing of businessListings; track listing) { +
- - Food and Restaurant + + {{ selectOptions.getBusiness(listing.type) }}
-

Successful Coffee Shop in The Colony

+

{{ listing.title }}

-
-
- - Food and Restaurant -
-

Established Craft Beer Bar in Wylie

-
-
-
- - Industrial Services -
-

Profitable Electrical Contracting Business in New Braunfels

-
-
-
- - Service -
-

Successful Fitness Center in Coppell

-
-
-
- - Mixed Use -
-

Mixed-Use Development Opportunity

-
-
-
- - Land -
-

Upscale Golf Course

-
-
-
- - -
-

My Commercial Property Listings For Sale

-
-
-
- Car Dealership and Service Center -
-

Mixed Use

-

Car Dealership and Service Center

-
-
-
-
-
- Cold Storage Warehouse -
-

Industrial

-

Cold Storage Warehouse

-
-
-
-
-
- Retail Strip Center in Round Rock -
-

Retail

-

Retail Strip Center in Round Rock

-
+ } +
+ } + + @if(commercialPropListings?.length>0){ +
+

My Commercial Property Listings For Sale

+
+ @for (listing of commercialPropListings; track listing) { +
+
+ @if (listing.imageOrder?.length>0){ + + } @else { + + } +
+

{{ selectOptions.getCommercialProperty(listing.type) }}

+

{{ listing.title }}

+
+
+ }
+ }
diff --git a/bizmatch/src/app/pages/details/details-user/details-user.component.scss b/bizmatch/src/app/pages/details/details-user/details-user.component.scss index 2980734..fa2ba82 100644 --- a/bizmatch/src/app/pages/details/details-user/details-user.component.scss +++ b/bizmatch/src/app/pages/details/details-user/details-user.component.scss @@ -1,3 +1,53 @@ -:host ::ng-deep p { - margin:3px 0; -} \ No newline at end of file +::ng-deep p { + display: block; + margin-top: 1em; + margin-bottom: 1em; + margin-left: 0; + margin-right: 0; + font-size: 1rem; /* oder 1rem, abhängig vom Browser und den Standardeinstellungen */ + line-height: 1.5; +} +::ng-deep h1 { + display: block; + font-size: 2em; /* etwa 32px */ + margin-top: 0.67em; + margin-bottom: 0.67em; + margin-left: 0; + margin-right: 0; + font-weight: bold; +} +::ng-deep h2 { + display: block; + font-size: 1.5em; /* etwa 24px */ + margin-top: 0.83em; + margin-bottom: 0.83em; + margin-left: 0; + margin-right: 0; + font-weight: bold; +} +::ng-deep h3 { + display: block; + font-size: 1.17em; /* etwa 18.72px */ + margin-top: 1em; + margin-bottom: 1em; + margin-left: 0; + margin-right: 0; + font-weight: bold; +} +::ng-deep ul { + display: block; + list-style-type: disc; /* listet Punkte (•) vor jedem Listenelement auf */ + margin-top: 1em; + margin-bottom: 1em; + margin-left: 0; + margin-right: 0; + padding-left: 40px; /* Standard-Einrückung für Listen */ +} +::ng-deep li { + display: list-item; /* Zeigt das Element als Listenelement an */ + margin-left: 0; + margin-right: 0; + margin-top: 0; + margin-bottom: 0; + padding-left: 0; +} diff --git a/bizmatch/src/app/pages/subscription/edit-commercial-property-listing/edit-commercial-property-listing.component.html b/bizmatch/src/app/pages/subscription/edit-commercial-property-listing/edit-commercial-property-listing.component.html index 1d5a32b..50f4eea 100644 --- a/bizmatch/src/app/pages/subscription/edit-commercial-property-listing/edit-commercial-property-listing.component.html +++ b/bizmatch/src/app/pages/subscription/edit-commercial-property-listing/edit-commercial-property-listing.component.html @@ -142,3 +142,104 @@
--> + +
+
+

Edit Listing

+
+
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+
+ + +
+
+ + +
+
+ +
+
+ + +
+
+ + +
+
+ + + +
+
+ + +
+
+ +
+
+
+
+ @for (image of listing.imageOrder; track listing.imageOrder) { +
+ + +
+ + + +
+
+ } +
+
+ @if (mode==='create'){ + + } @else { + + } +
+
+
diff --git a/bizmatch/src/app/pages/subscription/edit-commercial-property-listing/edit-commercial-property-listing.component.ts b/bizmatch/src/app/pages/subscription/edit-commercial-property-listing/edit-commercial-property-listing.component.ts index 76b86d0..1441673 100644 --- a/bizmatch/src/app/pages/subscription/edit-commercial-property-listing/edit-commercial-property-listing.component.ts +++ b/bizmatch/src/app/pages/subscription/edit-commercial-property-listing/edit-commercial-property-listing.component.ts @@ -5,11 +5,14 @@ import { ListingsService } from '../../../services/listings.service'; import { SelectOptionsService } from '../../../services/select-options.service'; import { createDefaultCommercialPropertyListing, map2User, routeListingWithState } from '../../../utils/utils'; -import { DragDropModule, moveItemInArray } from '@angular/cdk/drag-drop'; +import { CdkDragDrop, DragDropModule, moveItemInArray } from '@angular/cdk/drag-drop'; import { faTrash } from '@fortawesome/free-solid-svg-icons'; +import { NgSelectModule } from '@ng-select/ng-select'; import { AngularCropperjsModule } from 'angular-cropperjs'; import { MixedCdkDragDropModule } from 'angular-mixed-cdk-drag-drop'; import { KeycloakService } from 'keycloak-angular'; +import { NgxCurrencyDirective } from 'ngx-currency'; +import { QuillModule } from 'ngx-quill'; import { BusinessListing, CommercialPropertyListing, User } from '../../../../../../bizmatch-server/src/models/db.model'; import { AutoCompleteCompleteEvent, ImageProperty, emailToDirName } from '../../../../../../bizmatch-server/src/models/main.model'; import { environment } from '../../../../environments/environment'; @@ -23,7 +26,7 @@ import { TOOLBAR_OPTIONS } from '../../utils/defaults'; @Component({ selector: 'commercial-property-listing', standalone: true, - imports: [SharedModule, ArrayToStringPipe, AngularCropperjsModule, DragDropModule, MixedCdkDragDropModule], + imports: [SharedModule, ArrayToStringPipe, AngularCropperjsModule, DragDropModule, MixedCdkDragDropModule, QuillModule, NgxCurrencyDirective, NgSelectModule], providers: [], templateUrl: './edit-commercial-property-listing.component.html', styleUrl: './edit-commercial-property-listing.component.scss', @@ -68,6 +71,9 @@ export class EditCommercialPropertyListingComponent { typesOfCommercialProperty = []; env = environment; ts = new Date().getTime(); + quillModules = { + toolbar: [['bold', 'italic', 'underline', 'strike'], [{ list: 'ordered' }, { list: 'bullet' }], [{ header: [1, 2, 3, 4, 5, 6, false] }], [{ color: [] }, { background: [] }], ['clean']], + }; constructor( public selectOptions: SelectOptionsService, private router: Router, @@ -197,4 +203,7 @@ export class EditCommercialPropertyListingComponent { changeListingCategory(value: 'business' | 'commercialProperty') { routeListingWithState(this.router, value, this.listing); } + drop(event: CdkDragDrop) { + moveItemInArray(this.listing.imageOrder, event.previousIndex, event.currentIndex); + } }