{% load static %}

<link rel="stylesheet" href="{% static 'mycaldav/style.css' %}">
<div class="ifram_main_div">
{% if latest_task_list %}
    <table>
        {% for task in latest_task_list %}

            <tr>
                <td style="vertical-align: top;padding-bottom: 18px" class="td_key" >
                    <span style="font-weight: bold;">
                    {% if task.done %}
                        {{task.key}}
                    {% else %}
                         <a href="vhc/edit/{{task.uiid}}">{{task.key}}</a>
                    {% endif %}
                   </span><br>
                    {{task.str_start_date}} - {{task.str_end_date}}<br>
                    {{task.str_start_time}} - {{task.str_end_time}}
                </td>
                <td style="{% if task.done %}text-decoration:line-through;{% endif %}vertical-align: top;">
                    <span style="font-weight: bold;">{{task.name}}</span><br>
                    {{task.desc}}
                </td>
            </tr>
            <tr><td>&nbsp;</td></tr>
        {% endfor %}
    </table>
{% else %}
    <p>Aucune information véhicule</p>
{% endif %}
</div>
