Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 

50 lignes
2.9 KiB

  1. <div *ngIf="contact" class="spt-container">
  2. <div class="card contacts-detail">
  3. <div class="card-body row">
  4. <div class="spt-col col-12 col-sm-6 col-lg-8">
  5. <div class="row">
  6. <div class="col-12 col-lg-6">
  7. <h1>{{ contact.firstName }} {{ contact.lastName }}</h1>
  8. <dl>
  9. <dt *ngIf="contact.position">{{'form.position' | translate}}:</dt>
  10. <dd *ngIf="contact.position">{{ contact.position }}</dd>
  11. <dt *ngIf="contact.phone">{{'form.phone' | translate}}:</dt>
  12. <dd *ngIf="contact.phone">{{ contact.phone }}</dd>
  13. <dt *ngIf="contact.email">{{'form.email' | translate}}:</dt>
  14. <dd *ngIf="contact.email"><a href="mailto:{{contact.email}}">{{ contact.email }}</a></dd>
  15. <dt *ngIf="contact.birthday">{{'form.birthday' | translate}}:</dt>
  16. <dd *ngIf="contact.birthday">{{ contact.birthday | date:'dd.MM.YYYY' }}</dd>
  17. </dl>
  18. </div>
  19. <div class="col-12 col-lg-6">
  20. <ul *ngFor="let contactPartnerProduct of contactPartnerProducts">
  21. <!-- TODO: contactPartnerProduct.productName ist falsch, hier muss die ID rein -->
  22. <li><a href="/products/{{this.appHelperService.extractId(contactPartnerProduct.product?.id)}}">{{contactPartnerProduct.product?.name}}</a></li>
  23. </ul>
  24. </div>
  25. </div>
  26. </div>
  27. <div class="col-12 col-sm-6 col-lg-4 has-image">
  28. <img *ngIf="contact.imageUrl !== null && contact.imageUrl !== undefined" src="{{contact.imageUrl}}" width="247" height="94"
  29. alt="{{contact.firstName}} {{contact.lastName}}" title="{{contact.firstName}} {{contact.lastName}}" />
  30. <img *ngIf="contact.imageUrl === null || contact.imageUrl === undefined"
  31. src="/assets/images/icons/dummy-person.png" width="247" height="94" alt="" />
  32. </div>
  33. <span class="position-absolute bi bi-pencil p-2" data-type="user-tool" data-action="edit"
  34. (click)="openModalEditContact()">
  35. </span>
  36. </div>
  37. </div>
  38. </div>
  39. <app-toggle #togglePosts [headline]="'basic.posts' | translate">
  40. <app-post-list *ngIf="togglePosts.isOpened" #postListComponent
  41. [partner]="partner"
  42. [contact]="contact"
  43. ></app-post-list>
  44. </app-toggle>
  45. <app-toggle #toggleProducts [headline]="'basic.products' | translate">
  46. <app-product-list *ngIf="toggleProducts.isOpened" #productListComponent
  47. [contact]="contact">
  48. </app-product-list>
  49. </app-toggle>