Merge-Konflikte gelöst und Feldreihenfolge korrigiert
This commit is contained in:
@@ -251,30 +251,31 @@
|
||||
|
||||
resultCount.textContent = `${results.length} Ergebnisse`;
|
||||
|
||||
const resultsList = results.map(customer => {
|
||||
return `
|
||||
const resultsList = results.map(customer => `
|
||||
<div class="card mb-3">
|
||||
<div class="card-body">
|
||||
<div class="d-flex justify-content-between align-items-start">
|
||||
<h5 class="card-title">${customer.name}</h5>
|
||||
<div class="d-flex align-items-center">
|
||||
<span class="result-tag ${customer.tag === 'medisoft' ? 'tag-medisoft' : 'tag-mediconsult'} me-2">${customer.tag}</span>
|
||||
<button class="btn btn-sm btn-outline-primary" onclick="copyCustomerLink('${customer.nummer}')">
|
||||
<i class="fas fa-share-alt"></i> Teilen
|
||||
</button>
|
||||
</div>
|
||||
<button class="btn btn-sm btn-outline-primary" onclick="copyCustomerLink('${customer.nummer}')">
|
||||
<i class="fas fa-share-alt"></i> Teilen
|
||||
</button>
|
||||
</div>
|
||||
<div class="card-text">
|
||||
<p><strong>Nummer:</strong> ${createCustomerLink(customer.nummer)}</p>
|
||||
<p><strong>Adresse:</strong> ${createAddressLink(customer.strasse, customer.plz, customer.ort)}</p>
|
||||
<p><strong>Nummer:</strong> ${customer.nummer}</p>
|
||||
<p><strong>Adresse:</strong> ${customer.strasse}, ${customer.plz} ${customer.ort}</p>
|
||||
<p><strong>Telefon:</strong> ${createPhoneLink(customer.telefon)}</p>
|
||||
<p><strong>Mobil:</strong> ${createPhoneLink(customer.mobil)}</p>
|
||||
<p><strong>E-Mail:</strong> ${createEmailLink(customer.email)}</p>
|
||||
<p><strong>Fachrichtung:</strong> ${customer.fachrichtung}</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('')}
|
||||
</p>
|
||||
` : ''}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`}).join('');
|
||||
`).join('');
|
||||
|
||||
resultsDiv.innerHTML = resultsList;
|
||||
}
|
||||
|
Reference in New Issue
Block a user