Verbesserte Tag-Anzeige: Badge neben dem Teilen-Button mit farblicher Hervorhebung
This commit is contained in:
@@ -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('')}
|
||||
|
Reference in New Issue
Block a user