Commit 4a2bdd9a authored by Kostis Trantzas's avatar Kostis Trantzas
Browse files

minor text changes

parent e2d3e85b
Loading
Loading
Loading
Loading
Loading
+13 −12
Original line number Diff line number Diff line
@@ -151,9 +151,9 @@
                                </div>
                                <!-- END OF Main Properties Tab -->

                                <!-- Linked Product Specification Characteristics Tab -->
                                <!-- Product Offering Characteristics Tab -->
                                <div class="tab-pane active disable"
                                    *ngIf="activeListItem === 'Linked Product Specification Characteristics'"
                                    *ngIf="activeListItem === 'Product Offering Characteristics'"
                                    role="tabpanel">
                                    <form>
                                        <div class="card mat-elevation-z1 bg-light">
@@ -169,10 +169,11 @@
                                                    <div *ngIf="editForm.value.productSpecification" class="col-12">

                                                        <div class="col-12 mb-4">
                                                            <h5>Choose Characteristics from: 
                                                                <dfn class="text-primary">{{editForm.value.productSpecification.name}}</dfn>
                                                            <h5>Choose Configurable Characteristics to expose from: 
                                                                <a routerLink='/{{appService.portalDomain}}/product_spec_update/{{editForm.value.productSpecification.id}}'>{{editForm.value.productSpecification.name}}</a>
                                                                <dfn class="text-primary"></dfn>
                                                            </h5>
                                                            <small class="text-muted">Select the characteristics to include. Expand to select specific values.</small>
                                                            <small class="text-muted">Select the configurable characteristics to include in the product offering. Expand to select specific characteristic values.</small>
                                                        </div>

                                                        <div *ngIf="availableSpecCharacteristics.length === 0" class="alert alert-warning">
@@ -217,7 +218,7 @@
                                                                            <div class="row">
                                                                                <div class="col-md-6 col-lg-4" *ngFor="let val of char.productSpecCharacteristicValue | sortByValue">
                                                                                    
                                                                                    <mat-checkbox 
                                                                                    <mat-checkbox color="primary"
                                                                                        [checked]="isValueSelected(char, val)"
                                                                                        [disabled]="!isCharacteristicSelected(char)"
                                                                                        (change)="onValueToggle(char, val, $event)">
@@ -241,10 +242,10 @@
                                                                            </div>
                                                                            
                                                                            <div class="mt-2">
                                                                                <button mat-button color="primary" class="btn-sm px-0 mr-3" 
                                                                                <button mat-button color="primary" class="btn-sm px-2 mr-3" 
                                                                                    [disabled]="!isCharacteristicSelected(char)"
                                                                                    (click)="selectAllValues(char)">Select All Values</button>
                                                                                <button mat-button color="warn" class="btn-sm px-0" 
                                                                                <button mat-button color="warn" class="btn-sm px-2" 
                                                                                    [disabled]="!isCharacteristicSelected(char)"
                                                                                    (click)="deselectAllValues(char)">Deselect All</button>
                                                                            </div>
@@ -259,10 +260,10 @@
                                                    </div>
                                                </div>

                                                <div class="container-fluid mt-4" *ngIf="availableSpecCharacteristics.length > 0">
                                                <div class="container-fluid mt-3" *ngIf="availableSpecCharacteristics.length > 0">
                                                    <div class="row">
                                                        <button type="button" mat-stroked-button (click)="selectAllCharacteristics()" class="mr-2">Select All Chararacteristics</button>
                                                        <button type="button" mat-stroked-button (click)="deselectAllCharacteristics()">Deselect All Characteristics</button>
                                                        <button type="button" color="primary" mat-button (click)="selectAllCharacteristics()" class="mr-2">Select All Characteristics</button>
                                                        <button type="button" color="warn" mat-button (click)="deselectAllCharacteristics()">Deselect All Characteristics</button>
                                                    </div>
                                                </div>
                                            </div>
@@ -277,7 +278,7 @@
                                    </form>
                                </div>

                                <!-- END OF Linked Product Specification Characteristics Tab -->
                                <!-- END OF Product Offering Characteristics Tab -->

                            </div>
                        </div>
+3 −0
Original line number Diff line number Diff line
.nav-link:hover {
    cursor: pointer;
}
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,7 @@ export class EditProductOfferingsComponent implements OnInit {
  selectedCharacteristics: Set<string> = new Set(); 
  selectedCharValues: Map<string, string[]> = new Map(); 

  listItems = ["Main Properties", "Linked Product Specification Characteristics"]
  listItems = ["Main Properties", "Product Offering Characteristics"]
  activeListItem = "Main Properties"
  lifecycleStatuses = ["In study", "In design", "In test", "Active", "Launched", "Retired", "Obsolete", "Rejected"]

+2 −0
Original line number Diff line number Diff line
@@ -45,6 +45,8 @@ export class ListProductOfferingsComponent implements OnInit {
      error => { console.error(error) },
      () => {
        this.dataSource.data = this.productOfferings
        this.sort.active = 'lastUpdate'
        this.sort.direction = 'desc'
        this.dataSource.sort = this.sort
        this.dataSource.paginator = this.paginator;
        this.dataSource.sortingDataAccessor = (item, property): string | number => {