Verbesserte Tag-Anzeige: Badge neben dem Teilen-Button mit farblicher Hervorhebung

This commit is contained in:
2025-03-19 14:07:58 +01:00
parent 465a6f058a
commit 06576b08d9
2 changed files with 107 additions and 84 deletions

View File

@@ -256,9 +256,12 @@
<div class="card-body">
<div class="d-flex justify-content-between align-items-start">
<h5 class="card-title">${customer.name}</h5>
<button class="btn btn-sm btn-outline-primary" onclick="copyCustomerLink('${customer.nummer}')">
<i class="fas fa-share-alt"></i> Teilen
</button>
<div class="d-flex align-items-center gap-2">
<span class="badge ${customer.tag === 'medisoft' ? 'bg-primary' : 'bg-warning text-dark'}">${customer.tag.toUpperCase()}</span>
<button class="btn btn-sm btn-outline-primary" onclick="copyCustomerLink('${customer.nummer}')">
<i class="fas fa-share-alt"></i> Teilen
</button>
</div>
</div>
<div class="card-text">
<p><strong>Nummer:</strong> ${customer.nummer}</p>
@@ -267,6 +270,7 @@
<p><strong>Mobil:</strong> ${createPhoneLink(customer.mobil)}</p>
<p><strong>E-Mail:</strong> ${createEmailLink(customer.email)}</p>
<p><strong>Fachrichtung:</strong> ${customer.fachrichtung}</p>
<p><strong>Tag:</strong> ${customer.tag}</p>
${customer.tags && customer.tags.length > 0 ? `
<p><strong>Tags:</strong>
${customer.tags.map(tag => `<span class="badge bg-primary me-1">${tag}</span>`).join('')}