| @@ -1,5 +1,5 @@ | |||||
| <div class="card"> | |||||
| <h4 class="card-header">Login</h4> | |||||
| <div class="card login-form"> | |||||
| <h1 class="card-header">Login</h1> | |||||
| <div class="card-body"> | <div class="card-body"> | ||||
| <form [formGroup]="form" (ngSubmit)="onSubmit()"> | <form [formGroup]="form" (ngSubmit)="onSubmit()"> | ||||
| <div class="mb-3"> | <div class="mb-3"> | ||||
| @@ -19,7 +19,7 @@ | |||||
| <div class="col-6"> | <div class="col-6"> | ||||
| <ul *ngFor="let contactPartnerProduct of contactPartnerProducts"> | <ul *ngFor="let contactPartnerProduct of contactPartnerProducts"> | ||||
| <!-- TODO: contactPartnerProduct.productName ist falsch, hier muss die ID rein --> | <!-- TODO: contactPartnerProduct.productName ist falsch, hier muss die ID rein --> | ||||
| <li><a href="/products/{{this.appHelperService.extractId(contactPartnerProduct.productName)}}">{{contactPartnerProduct.productName}}</a></li> | |||||
| <li><a href="/product/{{this.appHelperService.extractId(contactPartnerProduct.productName)}}">{{contactPartnerProduct.productName}}</a></li> | |||||
| </ul> | </ul> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -33,7 +33,7 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div class="container mb-5"> | |||||
| <div class="container"> | |||||
| <div class="row pt-4 pb-4 d-flex"> | <div class="row pt-4 pb-4 d-flex"> | ||||
| <div class="col d-flex"> | <div class="col d-flex"> | ||||
| <a class="card" routerLink="/product" routerLinkActive="active"> | <a class="card" routerLink="/product" routerLinkActive="active"> | ||||
| @@ -58,5 +58,31 @@ | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <div class="container"> | |||||
| <div class="row pt-4 pb-4 d-flex"> | |||||
| <div class="col d-flex"> | |||||
| <a class="card" routerLink="/sale" routerLinkActive="active"> | |||||
| <div class="card-body position-relative" data-cat="sale"> | |||||
| <h3 class="position-absolute m-0">{{ 'basic.sales' | translate }}</h3> | |||||
| </div> | |||||
| </a> | |||||
| </div> | |||||
| <div class="col d-flex"> | |||||
| <a class="card" routerLink="/profile" routerLinkActive="active"> | |||||
| <div class="card-body position-relative" data-cat="profile"> | |||||
| <h3 class="position-absolute m-0">{{ 'basic.profile' | translate }}</h3> | |||||
| </div> | |||||
| </a> | |||||
| </div> | |||||
| <div class="col d-flex"> | |||||
| <a class="card" routerLink="/user" routerLinkActive="active"> | |||||
| <div class="card-body position-relative" data-cat="user"> | |||||
| <h3 class="position-absolute m-0">{{ 'basic.users' | translate }}</h3> | |||||
| </div> | |||||
| </a> | |||||
| </div> | |||||
| </div> | |||||
| </div> | |||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| @@ -7,8 +7,6 @@ | |||||
| .card { | .card { | ||||
| width: 100%; | width: 100%; | ||||
| text-decoration: none; | text-decoration: none; | ||||
| border-radius: 0; | |||||
| border: none; | |||||
| border-top: 3px solid #c1c1c1; | border-top: 3px solid #c1c1c1; | ||||
| } | } | ||||
| .card-body { | .card-body { | ||||
| @@ -22,7 +22,7 @@ | |||||
| {{ 'overview.logo' | translate }} | {{ 'overview.logo' | translate }} | ||||
| </th> | </th> | ||||
| <td mat-cell *matCellDef="let element"> | <td mat-cell *matCellDef="let element"> | ||||
| <img role="button" src="{{ element.logoUrl }}" (click)="navigateToPartnerDetails(element)" width="40" | |||||
| <img src="{{ element.logoUrl }}" width="40" | |||||
| height="40" /> | height="40" /> | ||||
| </td> | </td> | ||||
| </ng-container> | </ng-container> | ||||
| @@ -33,7 +33,7 @@ | |||||
| {{ partnerColumnHeadline }} | {{ partnerColumnHeadline }} | ||||
| </th> | </th> | ||||
| <td mat-cell *matCellDef="let element"> | <td mat-cell *matCellDef="let element"> | ||||
| <span role="button" (click)="navigateToPartnerDetails(element)">{{ element.name }}</span> | |||||
| {{ element.name }} | |||||
| </td> | </td> | ||||
| </ng-container> | </ng-container> | ||||
| @@ -58,6 +58,16 @@ | |||||
| </td> | </td> | ||||
| </ng-container> | </ng-container> | ||||
| <ng-container matColumnDef="details"> | |||||
| <th mat-header-cell *matHeaderCellDef> | |||||
| {{ 'overview.details' | translate }} | |||||
| </th> | |||||
| <td mat-cell *matCellDef="let element"> | |||||
| <span class="btn btn-primary bi bi-zoom-in p-2-4" | |||||
| data-type="user-tool" data-action="edit" (click)="navigateToPartnerDetails(element)"></span> | |||||
| </td> | |||||
| </ng-container> | |||||
| <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||||
| <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> | <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> | ||||
| </table> | </table> | ||||
| @@ -52,7 +52,7 @@ export class PartnerListComponent implements OnInit, AfterViewInit { | |||||
| private translateService: TranslateService, | private translateService: TranslateService, | ||||
| protected appHelperService: AppHelperService, | protected appHelperService: AppHelperService, | ||||
| ) { | ) { | ||||
| this.displayedColumns = ['pos', 'image', 'name', 'address', 'website']; | |||||
| this.displayedColumns = ['pos', 'image', 'name', 'address', 'website', 'details']; | |||||
| this.sort = new MatSort(); | this.sort = new MatSort(); | ||||
| this.partnersSub = new Subscription(); | this.partnersSub = new Subscription(); | ||||
| this.partners = []; | this.partners = []; | ||||
| @@ -24,7 +24,7 @@ | |||||
| {{ 'overview.image' | translate }} | {{ 'overview.image' | translate }} | ||||
| </th> | </th> | ||||
| <td mat-cell *matCellDef="let element"> | <td mat-cell *matCellDef="let element"> | ||||
| <img role="button" src="{{element.imageUrl}}" (click)="navigateToProductDetails(element)" width="40" height="40"/> | |||||
| <img src="{{element.imageUrl}}" width="40" height="40"/> | |||||
| </td> | </td> | ||||
| </ng-container> | </ng-container> | ||||
| @@ -34,7 +34,7 @@ | |||||
| {{ 'overview.productname' | translate }} | {{ 'overview.productname' | translate }} | ||||
| </th> | </th> | ||||
| <td mat-cell *matCellDef="let element"> | <td mat-cell *matCellDef="let element"> | ||||
| <span role="button" (click)="navigateToProductDetails(element)">{{ element.name }}</span> | |||||
| {{ element.name }} | |||||
| </td> | </td> | ||||
| </ng-container> | </ng-container> | ||||
| @@ -56,6 +56,16 @@ | |||||
| </td> | </td> | ||||
| </ng-container> | </ng-container> | ||||
| <ng-container matColumnDef="details"> | |||||
| <th mat-header-cell *matHeaderCellDef> | |||||
| {{ 'overview.details' | translate }} | |||||
| </th> | |||||
| <td mat-cell *matCellDef="let element"> | |||||
| <span class="btn btn-primary bi bi-zoom-in p-2-4" | |||||
| data-type="user-tool" data-action="edit" (click)="navigateToProductDetails(element)"></span> | |||||
| </td> | |||||
| </ng-container> | |||||
| <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr> | ||||
| <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> | <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr> | ||||
| </table> | </table> | ||||
| @@ -47,7 +47,7 @@ export class ProductListComponent implements OnInit, AfterViewInit { | |||||
| protected appHelperService: AppHelperService, | protected appHelperService: AppHelperService, | ||||
| ) { | ) { | ||||
| this.sort = new MatSort(); | this.sort = new MatSort(); | ||||
| this.displayedColumns = ['pos', 'image', 'name', 'storage', 'number']; | |||||
| this.displayedColumns = ['pos', 'image', 'name', 'storage', 'number', 'details']; | |||||
| this.productsSub = new Subscription(); | this.productsSub = new Subscription(); | ||||
| this.products = []; | this.products = []; | ||||
| @@ -44,7 +44,7 @@ | |||||
| {{ 'overview.productname' | translate }} | {{ 'overview.productname' | translate }} | ||||
| </th> | </th> | ||||
| <td mat-cell *matCellDef="let element"> | <td mat-cell *matCellDef="let element"> | ||||
| <a [routerLink]="['/products', appHelperService.extractId(element.product)]">{{ element.productName }}</a> | |||||
| <a [routerLink]="['/product', appHelperService.extractId(element.product)]">{{ element.productName }}</a> | |||||
| </td> | </td> | ||||
| </ng-container> | </ng-container> | ||||
| @@ -32,14 +32,14 @@ | |||||
| </app-toggle> | </app-toggle> | ||||
| <app-toggle #toggleSales [headline]="(isCurrentUser ? (('user.my' | translate) + ' ') : '') + ('basic.sales' | translate)"> | <app-toggle #toggleSales [headline]="(isCurrentUser ? (('user.my' | translate) + ' ') : '') + ('basic.sales' | translate)"> | ||||
| <app-sale-summary *ngIf="toggleSales.isOpened" #saleSummaryComponent | |||||
| [user]="user" | |||||
| > | |||||
| </app-sale-summary> | |||||
| <app-sale-list *ngIf="toggleSales.isOpened" #saleListComponent | <app-sale-list *ngIf="toggleSales.isOpened" #saleListComponent | ||||
| [user]="user" | [user]="user" | ||||
| > | > | ||||
| </app-sale-list> | </app-sale-list> | ||||
| <app-sale-summary *ngIf="toggleSales.isOpened" #saleSummaryComponent | |||||
| [user]="user" | |||||
| > | |||||
| </app-sale-summary> | |||||
| </app-toggle> | </app-toggle> | ||||
| <app-toggle #toggleProducts [headline]="(isCurrentUser ? (('user.my' | translate) + ' ') : '') + ('basic.products' | translate)"> | <app-toggle #toggleProducts [headline]="(isCurrentUser ? (('user.my' | translate) + ' ') : '') + ('basic.products' | translate)"> | ||||
| @@ -89,15 +89,21 @@ img { | |||||
| background: #f6f6f6; | background: #f6f6f6; | ||||
| } | } | ||||
| .card { | |||||
| border-radius: 0; | |||||
| border: none; | |||||
| .card-header:first-child { | |||||
| border-radius: 0; | |||||
| } | |||||
| } | |||||
| .spt-sidebar { | .spt-sidebar { | ||||
| //background: #2b3a44; | //background: #2b3a44; | ||||
| padding: 0; | padding: 0; | ||||
| .card { | .card { | ||||
| background: transparent; | background: transparent; | ||||
| color: #fff; | color: #fff; | ||||
| border: none; | |||||
| border-bottom: 1px solid #fff; | border-bottom: 1px solid #fff; | ||||
| border-radius: 0; | |||||
| width: 100%; | width: 100%; | ||||
| text-decoration: none; | text-decoration: none; | ||||
| .card-body { | .card-body { | ||||
| @@ -241,8 +247,6 @@ img { | |||||
| .posts .post, | .posts .post, | ||||
| .tasks { | .tasks { | ||||
| .card { | .card { | ||||
| border: none; | |||||
| border-radius: 0; | |||||
| background: #fafafa; | background: #fafafa; | ||||
| .spt-border { | .spt-border { | ||||
| border-left: 1px solid #c1c1c1; | border-left: 1px solid #c1c1c1; | ||||
| @@ -269,8 +273,6 @@ img { | |||||
| padding-bottom: 20px; | padding-bottom: 20px; | ||||
| } | } | ||||
| .card { | .card { | ||||
| border: none; | |||||
| border-radius: 0; | |||||
| background: #f2f2f2; | background: #f2f2f2; | ||||
| border-top: 2px solid #c1c1c1; | border-top: 2px solid #c1c1c1; | ||||
| margin-top: 20px; | margin-top: 20px; | ||||
| @@ -7,9 +7,11 @@ | |||||
| .btn-primary { | .btn-primary { | ||||
| background-color: $color-matsen; | background-color: $color-matsen; | ||||
| border-color: $color-matsen; | border-color: $color-matsen; | ||||
| &:hover { | |||||
| background-color: #b71e18; | |||||
| border-color: #b71e18; | |||||
| &:hover, | |||||
| &:focus, | |||||
| &:active { | |||||
| background-color: $color-matsen-dark !important; | |||||
| border-color: $color-matsen-dark !important; | |||||
| } | } | ||||
| } | } | ||||
| @@ -1,3 +1,7 @@ | |||||
| .form-control { | |||||
| border-radius: 0; | |||||
| } | |||||
| .spt-form { | .spt-form { | ||||
| .delete-image { | .delete-image { | ||||
| display: flex; | display: flex; | ||||
| @@ -45,6 +45,7 @@ strong { | |||||
| font-family: "Montserrat", "Helvetica Neue", sans-serif !important; | font-family: "Montserrat", "Helvetica Neue", sans-serif !important; | ||||
| } | } | ||||
| .login-form h1, | |||||
| .home-container .mat-h1, | .home-container .mat-h1, | ||||
| .home-container .mat-headline-5, | .home-container .mat-headline-5, | ||||
| .home-container .mat-typography .mat-h1, | .home-container .mat-typography .mat-h1, | ||||
| @@ -88,7 +89,14 @@ dl, | |||||
| color: $color-matsen; | color: $color-matsen; | ||||
| @include transition(); | @include transition(); | ||||
| &:hover { | &:hover { | ||||
| color: #b71e18; | |||||
| color: $color-matsen-dark; | |||||
| } | } | ||||
| } | } | ||||
| } | |||||
| .btn-link { | |||||
| color: $color-matsen; | |||||
| @include transition(); | |||||
| &:hover { | |||||
| color: $color-matsen-dark; | |||||
| } | |||||
| } | } | ||||
| @@ -1 +1,2 @@ | |||||
| $color-matsen: rgba(229,38,30,1); | |||||
| $color-matsen: rgba(229,38,30,1); | |||||
| $color-matsen-dark: rgba(160,27,21,1); | |||||