feat(v3.4.0): support multi-career subjects with subject_careers Many-to-Many and enhance Google Sheets importer for 6 days
This commit is contained in:
@@ -148,7 +148,15 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td>
|
||||
{% if s.career_obj %}
|
||||
{% if s.careers and (s.careers|length > 0) %}
|
||||
<div class="d-flex flex-wrap gap-1">
|
||||
{% for c_obj in s.careers %}
|
||||
<span class="badge bg-secondary-subtle text-secondary border">
|
||||
<i class="bi bi-mortarboard me-1"></i>{{ c_obj.name }}
|
||||
</span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% elif s.career_obj %}
|
||||
<span class="badge bg-secondary-subtle text-secondary border">
|
||||
<i class="bi bi-mortarboard me-1"></i>{{ s.career_obj.name }}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user