{% if event.expanded==True %} {% with id=event.event.id, event=event.event, event_attr=event.event_attr, event_logs=event.event_logs, event_history=event.event_history, event_msgs=event.event_msgs, is_selected=event.selected %} {% with padding='px-2 py-1' %} {% with color=event.color if event.color %} {% if is_selected %} {% include "/components/row/event-checked-box.html" %} {% else %} {% include "/components/row/event-unchecked-box.html" %} {% endif %} {% endwith %} {% with event=event %} {% include "/components/row/data-cells.html" %} {% endwith %} {% with id=id, color=event.color %} {% include "/components/row/collapse-btn.html" %} {% endwith %} {% endwith %} {% include "/components/accordion/event-details-content.html" %} {% endwith %} {% else %} {% with id=event.event.id, event=event.event, is_selected=event.selected %} {% with padding='px-2 py-1' %} {% with color=event.color if event.color %} {% if is_selected %} {% include "/components/row/event-checked-box.html" %} {% else %} {% include "/components/row/event-unchecked-box.html" %} {% endif %} {% endwith %} {% with event=event %} {% include "/components/row/data-cells.html" %} {% endwith %} {% with id=id, color=event.color %} {% include "/components/row/expand-btn.html" %} {% endwith %} {% endwith %} {% endwith %} {% endif %}