<div class="card mt-3">
    <h2 class="card-header">Warranty <a href="{% url 'warranty_create' pk %}" class="add" title="Add" data-toggle="tooltip"><i class="material-icons">add</i></a></h2>
    <div class="card-body">
        {% if warranty_relations %}
        {% for warranty in warranty_relations %}
        <table class="table table-bordered">
            <tr>
            <td><b>Valid From:</b></td>
            <td>
                {{ warranty.valid_from }}<br>
            </td>
            </tr>
            <tr>
            <td><b>Valid Until:</b></td>
            <td>
                {{ warranty.valid_until }}<br>
            </td>
            </tr>
            <tr>
            <td><b>Duration:</b></td>
            <td>
                {{ warranty.duration_in_years }}<br>
            </td>
            </tr>
            <tr>
            <td><b>Type:</b></td>
            <td>
                {{ warranty.warranty_type }}<br>
            </td>
            </tr>
        </table>
            <a href="{% url 'warranty_update' warranty.pk %}" class="edit" title="Edit" data-toggle="tooltip"><i class="material-icons">edit</i></a>
            <a href="{% url 'warranty_delete' warranty.pk %}" class="delete" title="Delete" data-toggle="tooltip"><i class="material-icons">delete</i></a>
        {% endfor %}
        {% endif %}
    </div>
</div>
