<td class="tableTD" >
{% for s in arrStatusTime %}
{% if s == t %}
{% for key,value in arrUslugaName.items %}
{% if key == t %}
<strong style="color: #ff1200;">{{value}} </strong>
<script>
const all = document.getElementsByClassName('tableID');
for(let el of all) {
if (
el.id === undefined) {
el.id = 'Тут сгенерированный id';
console.log('Тут сгенерированный id: ' +
el.id);
}
}
</script>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% if not arrStatusTime and not arrUslugaName %}
<strong style="color: #0d7f00;">Время свободно</strong>
{% endif %}
</td>
<td>