This commit is contained in:
@ -335,7 +335,11 @@ function profileScoreBlockHTML(p, clientCode = '') {
|
|||||||
return `
|
return `
|
||||||
<div class="client-profile-score-block is-incomplete">
|
<div class="client-profile-score-block is-incomplete">
|
||||||
<div class="client-profile-score-block-title">${esc(p.name)}</div>
|
<div class="client-profile-score-block-title">${esc(p.name)}</div>
|
||||||
<p class="client-profile-score-hint">Profile incomplete — not all member questionnaires are done.</p>
|
<div class="client-profile-score-row">
|
||||||
|
<span class="client-profile-score-label">Calculated</span>
|
||||||
|
${bandBadgeHTML(null, { incomplete: true })}
|
||||||
|
</div>
|
||||||
|
<p class="client-profile-score-hint">Not all questionnaires in this profile are completed yet.</p>
|
||||||
</div>`;
|
</div>`;
|
||||||
}
|
}
|
||||||
const coachPending = p.pendingReview !== false && !p.coachBand;
|
const coachPending = p.pendingReview !== false && !p.coachBand;
|
||||||
@ -451,11 +455,7 @@ function clientQnBlockHTML(clientCode, q) {
|
|||||||
|
|
||||||
function profileDotsHTML(profiles, clientCode) {
|
function profileDotsHTML(profiles, clientCode) {
|
||||||
if (!profiles?.length) {
|
if (!profiles?.length) {
|
||||||
return '<span class="client-profile-dots-empty">—</span>';
|
return '<span class="client-profile-dots-empty">No scoring profiles</span>';
|
||||||
}
|
|
||||||
const hasAny = profiles.some(p => p.calculatedBand || p.band);
|
|
||||||
if (!hasAny) {
|
|
||||||
return `<span class="client-profile-dots-empty" title="No complete scoring profiles yet">—</span>`;
|
|
||||||
}
|
}
|
||||||
return `<div class="client-profile-scores">${profiles.map(p => profileScoreBlockHTML(p, clientCode)).join('')}</div>`;
|
return `<div class="client-profile-scores">${profiles.map(p => profileScoreBlockHTML(p, clientCode)).join('')}</div>`;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user