<span id="stageDisplay" class="badge bg-{% if candidate.stage == 'Applied' %}primary{% elif candidate.stage == 'Exam' %}info{% elif candidate.stage == 'Interview' %}warning{% elif candidate.stage == 'Offer' %}success{% else %}secondary{% endif %}">
    Stage: {{ candidate.get_stage_display }}
</span>